初学者关于ipmp疑惑,请大侠指点一二

发布于 2022-09-14 08:25:02 字数 4318 浏览 22 评论 9

我是在虚拟机中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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

就是爱搞怪 2022-09-15 16:27:33

进来学习

忘东忘西忘不掉你 2022-09-15 16:27:33

回复 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

天生の放荡 2022-09-15 16:27:33

回复 7# yulemi

    您是说host的?host是浮动IP,是用来切换的啊,本地网卡上的ip应该不用于切换啊。

给我一枪 2022-09-15 16:27:31

failover up
前面是不是少-

雨后彩虹 2022-09-15 16:27:19

回复 5# lg700587

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

怪我鬧 2022-09-15 16:24:26

回复 2# yqx1986

    没设网关

独孤求败 2022-09-15 15:57:13

回复 3# yuhuohu

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

儭儭莪哋寶赑 2022-09-15 07:56:33

自己ping自己死活都是通的吧,你拔插网线还通的话才不正常

有网关么?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文