盛大云主机上配置 LVS求助

在盛大云服务上租了3个服务器,打算配置lvs负载均衡.
公网ip映射在DR

RS使用lighttpd 监听80端口.直接访问可以得到测试页面
使用公网ip 访问时,总是返回"couldn't connect to host"

网络上众说纷纭,照着修改了一些,具体配置如下,可能有点乱

VIP = 192.168.11.200
DR = 192.168.11.93
RS = 192.168.2.87

DR
ipvsadm -C
ipvsadm -A -t 192.168.11.200:80 -s rr
ipvsadm -a -t 192.168.11.200:80 -r 192.168.2.87 -g
ipvsadm -a -t 192.168.11.200:80 -r 192.168.20.142 -g

#vim /etc/sysctl.conf
net.ipv4.ip_forward = 1
net.ipv4.conf.default.rp_filter = 0
net.ipv4.conf.eth0.rp_filter = 0

# vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.11.93
NETMASK=255.255.224.0
GATEWAY=192.168.0.6
ONBOOT=yes

# vim /etc/sysconfig/network-scripts/ifcfg-eth0:0
DEVICE=eth0:0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.11.200
NETMASK=255.255.255.0

RS 服务器配置

# vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.2.87
NETMASK=255.255.224.0
GATEWAY=192.168.0.1
ONBOOT=yes

# vim /etc/sysconfig/network-scripts/ifcfg-lo:0
DEVICE=lo:0
ONBOOT=yes
IPADDR=192.168.11.200
NETMASK=255.255.255.255

#vim /etc/sysctl.conf
net.ipv4.ip_forward = 1
net.ipv4.conf.default.rp_filter = 0
net.ipv4.conf.lo.rp_filter = 0

net.ipv4.conf.eth0.arp_ignore=1
net.ipv4.conf.eth0.arp_announce=2
net.ipv4.conf.eth0.arp_filter=0
net.ipv4.conf.all.arp_ignore=1
net.ipv4.conf.all.arp_announce=2
net.ipv4.conf.all.arp_filter=0

使用tcpdump 无法看到任何导向 VIP 或RS的记录
折腾了好几天了,网上查过好多资料,但还是没有搞通.
望各位大人帮忙看看!

Forums:

randomness