RH/CentOS network configurations

theBlueSage tbs-Gb/NUjX2UK8 at public.gmane.org
Tue Sep 8 12:06:26 EDT 2009


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








More information about the Discuss mailing list