lvs tunl问题求助
配置如下:
在10.204.79.234机器上虚拟一个10.204.79.245
Linux Director ifconfig tunl0 10.204.79.245 netmask 255.255.255.255 up route add -host 10.204.79.245 dev tunl0 ipvsadm -C ipvsadm -A -t 10.204.79.245:80 -s rr ipvsadm -a -t 10.204.79.245:80 -r 10.204.79.235:80 -i ipvsadm -a -t 10.204.79.245:80 -r 10.204.79.236:80 -i ipvsadm -L -n Real Servers ifconfig tunl0 down ifconfig tunl0 10.204.79.245 netmask 255.255.255.255 up route add -host 10.204.79.245 dev tunl0 echo 1 > /proc/sys/net/ipv4/conf/tunl0/arp_ignore echo 2 > /proc/sys/net/ipv4/conf/tunl0/arp_announce echo 1 > /proc/sys/net/ipv4/conf/all/arp_ignore echo 2 > /proc/sys/net/ipv4/conf/all/arp_announce sudo sysctl -p
[root@xxx ~]# ipvsadm -lnc
IPVS connection entries
pro expire state source virtual destination
TCP 00:10 SYN_RECV 10.204.79.241:2483 10.204.79.245:80 10.204.79.235:80
TCP 00:42 SYN_RECV 10.204.79.241:2506 10.204.79.245:80 10.204.79.235:80
TCP 00:10 SYN_RECV 10.204.79.241:2482 10.204.79.245:80 10.204.79.236:80
TCP 00:42 SYN_RECV 10.204.79.241:2507 10.204.79.245:80 10.204.79.236:80
TCP 00:13 SYN_RECV 10.204.79.241:2487 10.204.79.245:80 10.204.79.235:80
TCP 00:10 SYN_RECV 10.204.79.241:2484 10.204.79.245:80 10.204.79.236:80
TCP 00:42 SYN_RECV 10.204.79.241:2505 10.204.79.245:80 10.204.79.236:80
TCP 00:13 SYN_RECV 10.204.79.241:2485 10.204.79.245:80 10.204.79.235:80
TCP 00:13 SYN_RECV 10.204.79.241:2486 10.204.79.245:80 10.204.79.236:80
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是有什么配置弄错了吗,我也遇到这个问题
自己解决了!