略去导航.
主页
The image verification code you entered is incorrect.

LVS/NAT 客户端访问不了,请帮忙看看好不?

VIP和LB地址同网段的,单网卡
VIP 192.168.1.200
LB地址 192.168.1.203
RS1 192.168.1.215
RS2 192.168.1.121

echo 1 >/proc/sys/net/ipv4/ip_forward
echo 0 >/proc/sys/net/ipv4/conf/all/send_redirects
echo 0 >/proc/sys/net/ipv4/conf/default/send_redirects
echo 0 >/proc/sys/net/ipv4/conf/eth0/send_redirects

/sbin/ifconfig eth0:0 192.168.1.200 broadcast 192.168.1.200 netmask 255.255.255.255 up
/sbin/route add -host 192.168.1.200 dev eth0:0

/sbin/ipvsadm -C

/sbin/ipvsadm -A -t 192.168.1.200:80 -s wlc

/sbin/ipvsadm -a -t 192.168.1.200:80 -r 192.168.1.121:80 -m -w 10

/sbin/ipvsadm -a -t 192.168.1.200:80 -r 192.168.1.215:80 -m -w 8

LB转发不出去,在LB上访问192.168.1.200可以切换RS1和RS2,但是除了LB以外此地址都不可被访问

回复

  • 允许 HTML标签: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 行和段被自动切分。
  • 你可以用[inline:xx] 标记来内嵌显示上传的文件或者图片。
更多格式化选项信息 Captcha Image: you will need to recognize the text in it.
Please type in the letters/numbers that are shown in the image above.