初学者关于ipmp疑惑,请大侠指点一二
我是在虚拟机中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
#
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
进来学习
回复 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
回复 7# yulemi
您是说host的?host是浮动IP,是用来切换的啊,本地网卡上的ip应该不用于切换啊。
failover up
前面是不是少-
回复 5# lg700587
你这是Probe-based的IPMP,应该是通过ping网关来判断网卡是否正常的吧,不设网关自然无法进行切换
回复 2# yqx1986
没设网关
回复 3# yuhuohu
我就是不懂我两个网卡全down掉了,227的地址还能通,我觉得e1000g0如果down掉的话,227这个地址应该跑到e1000g1上,可他没有
自己ping自己死活都是通的吧,你拔插网线还通的话才不正常
有网关么?