On Sun, 2010-03-28 at 14:28 +0100, Cyrus wrote:
> That's what I try and do.
> I edit the /etc/sysconfig/network-scripts/ifcfg-lo:0 file and add the VIP
> (174.121.60.28) as the IP address.
> 
> DEVICE=lo:0
> IPADDR=174.121.60.28
> NETMASK=255.255.255.248
> ONBOOT=yes
> NAME=loopback

If you configure the loopback adapter like this. RedHat's network
scripts will always send an arp broadcast first, which is exactly what
you don't want. Instead, put something like this in your /etc/rc.local
file:

# solve the ARP problem
echo 1 > /proc/sys/net/ipv4/conf/lo/arp_ignore
echo 1 > /proc/sys/net/ipv4/conf/eth0/arp_ignore
echo 2 > /proc/sys/net/ipv4/conf/lo/arp_announce
echo 2 > /proc/sys/net/ipv4/conf/eth0/arp_announce

# Bring up loopback interface
ifconfig lo:0 174.121.60.28 broadcast 174.121.60.28 netmask 0xffffffff
up

# Make sure traffic destined for the VIP gets handled by the loopback
adapter
route add -host 174.121.60.28 device lo:0



-- 
Léon


_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-requ...@linuxvirtualserver.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

Reply via email to