免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: mike_yuan
打印 上一主题 下一主题

linux lvs 的DR 模式CENT OS 4.4 三台linux 的http负载均衡安装步骤,arp问题修正: [复制链接]

论坛徽章:
0
11 [报告]
发表于 2006-12-30 06:46 |只看该作者
呵呵,,以后多学习:--)

[ 本帖最后由 nntp 于 2006-12-30 17:27 编辑 ]

论坛徽章:
0
12 [报告]
发表于 2007-07-17 11:20 |只看该作者
    7.  进入 192.168.1.232
        把下面四句添加在/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
         // 以上关闭arp


我觉得这里有点问题,arp_ignore和arp_announce是应用在与VIP相连的网卡上的:

On the realservers the VIP will still be on lo (as for the hidden method). If the reply packets to the client are routed through eth0, then the arp announcements/requests are made through eth0 and you will apply the arp_ignore/arp_announce sysctls to eth0, not to lo (you cannot use arp_ignore/arp_announce on lo).

/etc/sysctl.conf
net.ipv4.conf.eth0.arp_ignore = 1
net.ipv4.conf.eth0.arp_announce = 2
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.all.arp_announce = 2
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP