lvs配置步骤

【lvs配置步骤】开启ipv4 转发
/etc/init.d/ipvsadm start
ipvsadm -L -n --stats
ifconfig eth0:2 10.211.55.22 netmask 255.255.255.255 up
ipvsadm -A -t 10.211.55.22:80 -s wrr -p 20
ipvsadm -a -t 10.211.55.22:80 -r 10.211.55.20 -g -w 1
ipvsadm -a -t 10.211.55.22:80 -r 10.211.55.19 -g -w 1
ipvsadm -L -n
/////////////////////RS上面操作
ifconfig lo:29 140.143.88.29 netmask 255.255.255.255 up
/////////禁止arp
echo "1" > /proc/sys/net/ipv4/conf/lo/arp_ignore
echo "1" >/proc/sys/net/ipv4/conf/all/arp_ignore
echo "2" >/proc/sys/net/ipv4/conf/lo/arp_announce
echo "2" >/proc/sys/net/ipv4/conf/all/arp_announce

    推荐阅读