on the real hosts (i.e. on 192.168.1.246), add an interface lo:0 (e.g. rh in /etc/sysconfig/network-scripts/ifcfg-lo:0), add the HA ip's: DEVICE=lo:0 IPADDR=192.168.1.240 MASK=255.255.255.255 ONBOOT=yes You should also configure the kernel for arp requests, as follows (either in /etc/sysctl.conf per persistent or via /proc) net.ipv4.conf.all.arp_ignore = 1 net.ipv4.conf.eth0.arp_ignore = 1 net.ipv4.conf.all.arp_announce = 2 net.ipv4.conf.eth0.arp_announce = 2 On Tue, May 19, 2009 at 10:45 AM, Sam Wun <swun2010@xxxxxxxxx> wrote: > Hi, > > I used the following commands setup a loadbalancer, however, it doesn't work. > > ipvsadm -A -t 192.168.1.240:ssh -s wlc -p > ipvsadm -a -t 192.168.1.240:ssh -r 192.168.1.246 -i -w 3 > > Here is the IP configuration: > eth0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 > options=8<VLAN_MTU> > ether 00:13:20:65:ad:bd > inet 192.168.1.248 netmask 0xffffff00 broadcast 192.168.1.255 > inet 192.168.1.240 netmask 0xffffff00 broadcast 192.168.1.255 > media: Ethernet autoselect (100baseTX <full-duplex>) > status: active > > If I remove the ipvsadm setup with "ipvsadm -C", ssh into > 192.168.1.240 works for 192.168.1.240 host. > > With the above ipvadm rules in-placed, > I can't ssh thru 192.168.1.240 and ipvsadm shown: > # ipvsadm > IP Virtual Server version 1.0.10 (size=4096) > Prot LocalAddress:Port Scheduler Flags > -> RemoteAddress:Port Forward Weight ActiveConn InActConn > TCP 192.168.1.240:ssh wlc persistent 360 > -> 192.168.1.246:ssh Tunnel 3 0 1 > > What is the correct steps to setup ipvs and use ipvsadm? > > Your help is very much appreciated. > Thanks > > -- > Linux-cluster mailing list > Linux-cluster@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/linux-cluster > -- Linux-cluster mailing list Linux-cluster@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/linux-cluster