分类: LINUX
2009-07-05 15:55:44
net.ipv4.conf.all.send_redirects = 1 net.ipv4.conf.default.send_redirects = 1 net.ipv4.conf.eth0.send_redirects = 1 #sysctl -p
#ifconfig eth0:0 192.168.10.5 broadcast 192.168.10.5 netmask 255.255.255.255 up #route add -host 192.168.10.5 dev eth0:0
ipvsadm -A -t 192.168.10.5:http -s rr ipvsadm -a -t 192.168.10.5:http -r 192.168.10.43 -g -w 1 ipvsadm -a -t 192.168.10.5:http -r 192.168.10.107 -g -w 1
#vi /etc/sysctl.conf
net.ipv4.conf.lo.arp_ignore = 1 net.ipv4.conf.lo.arp_announce = 2 net.ipv4.conf.all.arp_ignore = 1 net.ipv4.conf.all.arp_announce = 2
#ifconfig lo:0 192.168.10.5 broadcast 192.168.10.5 netmask 255.255.255.255 up #route add -host 192.168.10.5 dev lo:0
#/etc/init.d/ipvsadm restart (*之前一直配置不了,结果是没有用这条命令.......)
#/etc/init.d/httpd start