免费注册 查看新帖 |

Chinaunix

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

初学者关于ipmp疑惑,请大侠指点一二 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-02-24 16:12 |只看该作者 |倒序浏览
我是在虚拟机中Solaris配置的ipmp,下面是我的配置文件信息:我配的是227是浮动ip,可当我手动把e1000g0 down掉后,227还是在e1000g0上,再把e1000g1 down掉,227还能通,这正常么?2个网卡都down掉了,浮动ip怎么通的?
# uname -a
SunOS host 5.10 Generic_137138-09 i86pc i386 i86pc
#
#
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
e1000g0: flags=9040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 2
        inet 192.168.205.224 netmask ffffff00 broadcast 192.168.205.255
        groupname ipmp
        ether 0:c:29:8a:29:d5
e1000g0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.205.227 netmask ffffff00 broadcast 192.168.205.255
e1000g1: flags=9040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 3
        inet 192.168.205.225 netmask ffffff00 broadcast 192.168.205.255
        groupname ipmp
        ether 0:c:29:8a:29:df
#
#
# cd etc
# more hosts
#
# Internet host table
#
::1     localhost      
127.0.0.1       localhost      
192.168.205.224 host-1  loghost
192.168.205.225 host-2
192.168.205.227  host
#
# more hostname.e1000g0
host-1 netmask + broadcast + group ipmp deprecated -failover up addif host netmask + broadcast + group ipmp failover up
# more hostname.e1000g1
host-2 netmask + broadcast + group ipmp deprecated -failover stand up
#
# ifconfig e1000g0 down
# ping 192.168.205.224
^C#
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
e1000g0: flags=9040842<BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 2
        inet 192.168.205.224 netmask ffffff00 broadcast 192.168.205.255
        groupname ipmp
        ether 0:c:29:8a:29:d5
e1000g0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.205.227 netmask ffffff00 broadcast 192.168.205.255
e1000g1: flags=9040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 3
        inet 192.168.205.225 netmask ffffff00 broadcast 192.168.205.255
        groupname ipmp
        ether 0:c:29:8a:29:df
#
# ifconfig e1000g1 down
# ping 192.168.205.225
^C#
# ping 192.168.205.227
192.168.205.227 is alive
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
e1000g0: flags=9040842<BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 2
        inet 192.168.205.224 netmask ffffff00 broadcast 192.168.205.255
        groupname ipmp
        ether 0:c:29:8a:29:d5
e1000g0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.205.227 netmask ffffff00 broadcast 192.168.205.255
e1000g1: flags=9040842<BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 3
        inet 192.168.205.225 netmask ffffff00 broadcast 192.168.205.255
        groupname ipmp
        ether 0:c:29:8a:29:df
#

论坛徽章:
0
2 [报告]
发表于 2011-02-24 16:20 |只看该作者
有网关么?

论坛徽章:
0
3 [报告]
发表于 2011-02-24 16:58 |只看该作者
自己ping自己死活都是通的吧,你拔插网线还通的话才不正常

论坛徽章:
0
4 [报告]
发表于 2011-02-24 21:09 |只看该作者
回复 3# yuhuohu


    我就是不懂我两个网卡全down掉了,227的地址还能通,我觉得e1000g0如果down掉的话,227这个地址应该跑到e1000g1上,可他没有

论坛徽章:
0
5 [报告]
发表于 2011-02-24 21:11 |只看该作者
回复 2# yqx1986


    没设网关

论坛徽章:
0
6 [报告]
发表于 2011-02-24 21:55 |只看该作者
回复 5# lg700587


    你这是Probe-based的IPMP,应该是通过ping网关来判断网卡是否正常的吧,不设网关自然无法进行切换

论坛徽章:
0
7 [报告]
发表于 2011-02-25 11:41 |只看该作者
failover up
前面是不是少-

论坛徽章:
10
处女座
日期:2015-01-22 16:08:50技术图书徽章
日期:2018-09-13 11:25:52技术图书徽章
日期:2018-09-13 11:25:45技术图书徽章
日期:2018-09-13 11:25:37技术图书徽章
日期:2018-09-13 11:25:29黑曼巴
日期:2018-06-04 09:03:192017金鸡报晓
日期:2017-01-10 15:19:56极客徽章
日期:2016-12-07 14:03:402015年迎新春徽章
日期:2015-03-04 09:50:28技术图书徽章
日期:2018-09-13 11:26:01
8 [报告]
发表于 2011-02-25 12:29 |只看该作者
进来学习

论坛徽章:
0
9 [报告]
发表于 2011-03-02 13:13 |只看该作者
回复 6# yqx1986


    我把网络配置好了,也有网关,同一网段的,但还是不行,down掉e1000g0,227的ip照样还挂在e1000g0的网卡上,怎么回事啊?

# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
e1000g0: flags=9040842<BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 2
        inet 192.168.205.224 netmask ffffff00 broadcast 192.168.205.255
        groupname ipmp
        ether 0:c:29:8a:29:d5
e1000g0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.205.227 netmask ffffff00 broadcast 192.168.205.255
e1000g1: flags=9040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 3
        inet 192.168.205.225 netmask ffffff00 broadcast 192.168.205.255
        groupname ipmp
        ether 0:c:29:8a:29:df

论坛徽章:
0
10 [报告]
发表于 2011-03-02 13:15 |只看该作者
回复 7# yulemi


    您是说host的?host是浮动IP,是用来切换的啊,本地网卡上的ip应该不用于切换啊。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP