VMware下通过2.4.20-8系统,升级到2.6.0,在2.6.0下安装ipvs后,就是不知道ipvs是否安装成功?

# ipvsadm -l
IP Virtual Server version 1.1.8 (size=65536)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 10.0.0.1:http rr
-> 192.168.2.3:http Route 1 0 1
-> 192.168.2.2:http Route 1 0 2
已经显示到这步了,
但# modprobe -l |grep ipvs 或lsmod | grep ip_vs
看不到任何东西?
正常么?

我的VS1:
echo "1" > /proc/sys/net/ipv4/ip_forward

sysctl -p

ifconfig eth0 192.168.2.1 netmask 255.255.255.0
ifconfig eth0:0 10.0.0.1 borcast 10.0.0.1 netmask 255.255.255.255 up
route add -host 10.0.0.1 dev eth0:0

ipvsadm -C
ipvsadm -A -t 10.0.0.1:80 -s rr
ipvsadm -a -t 10.0.0.1:80 -r 192.168.2.2:80 -g -w 1
ipvsadm -a -t 10.0.0.1:80 -r 192.168.2.3:80 -g -w 1

我的RS1:
echo "1" > /proc/sys/net/ipv4/ip_forward
echo "1" > /proc/sys/net/ipv4/conf/lo/arp_ignore
echo "2" > /proc/sys/net/ipv4/conf/lo/arp_announce
echo "1" > /proc/sys/net/ipv4/conf/all/arp_ignore
echo "2" > /proc/sys/net/ipv4/conf/all/arp_announce

sysctl -p

ifconfig eth0 192.168.2.2 netmask 255.255.255.0
ifconfig lo:0 10.0.0.1 borcast 10.0.0.1 netmask 255.255.255.255 up
route add -host 10.0.0.1 dev lo:0

我的RS2:
echo "1" > /proc/sys/net/ipv4/ip_forward
echo "1" > /proc/sys/net/ipv4/conf/lo/arp_ignore
echo "2" > /proc/sys/net/ipv4/conf/lo/arp_announce
echo "1" > /proc/sys/net/ipv4/conf/all/arp_ignore
echo "2" > /proc/sys/net/ipv4/conf/all/arp_announce

sysctl -p

ifconfig eth0 192.168.2.3 netmask 255.255.255.0
ifconfig lo:0 10.0.0.1 borcast 10.0.0.1 netmask 255.255.255.255 up
route add -host 10.0.0.1 dev lo:0

我在虚拟机下安装,死活不能通过DR方式http://10.0.0.1访问apache啊!
我能在192.168.2.1(vip: 10.0.0.1)使用http://192.168.2.2,http://192.168.2.3访问的apache的内容。

我的邮箱是happy.every.day@126.com

Forums:

有人能帮助一下么?谢谢!
支持一下,也好啊。
谢谢!

randomness