Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RH/CentOS network configurations



Hi All,

I trying to configure heartbeat-ldirectord on a pair of Centos boxes
that form part of a mysql cluster. The cluster works and is totally
happy. I am just trying to load balance the two SQL servers (APIs)

In the 'debian way' I can add the following line to a network
interface :

#vi /etc/network/interfaces

auto lo:0
iface lo:0 inet static
  address 10.6.1.75
  netmask 255.255.255.255
  pre-up sysctl -p > /dev/null

however in RedHat/Centos when I edit the equivalent file and add the 'pre-up' line :

#vi /etc/sysconfig/network-scripts/ifcfg-lo:0

    DEVICE=lo:0
    IPADDR=10.6.1.75
    NETMASK=255.255.255.255
    NETWORK=10.6.1.0
    BROADCAST=10.6.1.255
    ONBOOT=yes
    pre-up sysctl -p > /dev/null


I get a 'command not found' ....

IS there a way to do the pre-up in RH/Centos ? 

I also apologize in advance to the RedHat folks for lumping CentOS in with them. I have to use 
it at work (at home I am a Debian fan) and although it is 'code from the upstream provider' it 
doesnt always act in the same way as 'code from the upstream provider'. Also, RedHat docs don't 
always apply to CentOS setups, and CentOs docs dont .... well they just dont, really.

in hope,

Richard









BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org