LVS配置命令

Posted by Vincent on Saturday, May 2, 2015

DirectorServer

ifconfig eth0:0 192.168.0.251 broadcast 192.168.0.251  netmask 255.255.255.255 up

route add -host 192.168.0.251 dev eth0:0 

echo "1" >/proc/sys/net/ipv4/ip_forward

realserver

ifconfig lo:0 192.168.0.251 broadcast 192.168.0.251 netmask 255.255.255.255 up


 vi /etc/sysctl.conf

net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.all.arp_announce = 2
net.ipv4.conf.tunl0.arp_ignore = 1
net.ipv4.conf.tunl0.arp_announce = 2

2014-02-21

「真诚赞赏,手留余香」

我的乐与怒

真诚赞赏,手留余香

使用微信扫描二维码完成支付