免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1107 | 回复: 0
打印 上一主题 下一主题

How to deploy IPMP [复制链接]

论坛徽章:
7
荣誉会员
日期:2011-11-23 16:44:17水瓶座
日期:2013-08-28 21:20:16丑牛
日期:2013-10-02 21:01:462015年迎新春徽章
日期:2015-03-04 09:54:45操作系统版块每日发帖之星
日期:2016-06-05 06:20:0015-16赛季CBA联赛之吉林
日期:2016-06-20 08:24:0515-16赛季CBA联赛之四川
日期:2016-08-18 15:02:02
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-08 11:07 |只看该作者 |倒序浏览

In order to setup a failover configuration for IPMP I would recommend doing it via this way around:
create some relative configuration files such as /etc/hostname.NICn and so on;
/etc/hostname.ce0
RIP01 deprecated -failover netmask + broadcast + group group1 up \
addif VIP01 netmask + broadcast + up
/etc/hostname.ce1
RIP02 deprecated -failover netmask + broadcast + standby group group1 up
/etc/hosts
10.10.10.1 RIP01
10.10.10.2 RIP02
10.10.10.3 VIP01 #this is the ip the users will connect to
/etc/defaultrouter
router's ip
Now reboot servers
Notes :
a) you don't want the ip's you assign to the physical interfaces to failover. configure them as nofailover (-failover)
b) you don't want load spreading on both physical interfaces, so the VIP will only "belong" to the active interface. don't do another addif for the 2nd physical interface
c) you want the 2nd physical interface to take over if the first one fails. configure it as standby and nofailover (-failover)
To test this:
#ifconfig -a (should give u something like this)
ce0: flags=9040843 mtu 1500 index 2
inet 10.10.10.1 netmask fffffc00 broadcast 10.10.10.255
groupname grp1
ce0:1: flags=1000843 mtu 1500 index 2
inet 10.10.10.3 netmask fffffc00 broadcast 10.10.10.255
ce1: flags=9040843 mtu 1500 index 3
inet 10.10.10.2 netmask fffffc00 broadcast 10.10.10.255
groupname grp1
1. open a terminal window on another server
2. #ping -s 10.10.10.3
3. pull out the cable from ce0
4. the ping should continue with messages being echoed to the /var/adm/messages file along these lines :
in.mpathd[573]: [ID 215189 daemon.error] The link has gone down on ce0
in.mpathd[573]: [ID 594170 daemon.error] NIC failure detected on ce0 of group1
in.mpathd[573]: [ID 832587 daemon.error] Successfully failed over from NIC ce0 to NIC ce1
5. plug the cable back and there should be an auto-failover back to ce0


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/43/showart_96824.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP