[Linux-cluster] ipvs/ipvsadm

Sam Wun swun2010 at gmail.com
Tue May 19 08:45:24 UTC 2009


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




More information about the Linux-cluster mailing list