SOLARIS IPMP如何配置

70次阅读
没有评论

共计 2867 个字符,预计需要花费 8 分钟才能阅读完成。

这篇文章主要介绍了 SOLARIS IPMP 如何配置,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让丸趣 TV 小编带着大家一起了解一下。

IPMP 配置

类型一:IPMP 组内所有网卡均启用
IP 规划如下:
e1000g0:数据 IP:192.168.77.1 测试 IP:192.168.77.11
e1000g1:数据 IP:192.168.77.2 测试 IP:192.168.77.22

# ifconfig e1000g0 group test_ipmp
# ifconfig e1000g1 group test_ipmp

# ifconfig e1000g0 addif 192.168.77.11 netmask + broadcast + -failover deprecated up
# ifconfig e1000g0 addif 192.168.77.22 netmask + broadcast + -failover deprecated up

或者(永久生效)
# cat /etc/hostname.e1000g0
192.168.77.1 netmask + broadcast + group test_ipmp up \
addif 192.168.77.11 deprecated -failover netmask + broadcast + up

# cat /etc/hostname.e1000g1
192.168.85.2 netmask + broadcast + group test_ipmp up \
addif 192.168.77.22 deprecated -failover netmask + broadcast + up

类型二:IPMP 组内部分网卡设置为 standby(待机)接口

设置 IPMP 为待机接口时,作为 standby 的网卡只设置测试 IP

IP 规划如下:
e1000g0:数据 IP:192.168.77.1 测试 IP:192.168.77.11
e1000g1:测试 IP:192.168.77.22

# ifconfig e1000g0 group test_ipmp
# ifconfig e1000g1 group test_ipmp
# ifconfig e1000g0 addif 192.168.77.11 netmask + broadcast + -failover deprecated up
# ifconfig e1000g1 plumb 192.168.77.22 netmask + broadcast + deprecated -failover standby up

或者(永久生效)
# cat /etc/hostname.e1000g0
192.168.77.1 group test_ipmp netmask + broadcast + up \
addif 192.168.77.11 netmask + broadcast + -failover deprecated up

# cat /etc/hostname.e1000g1
192.168.77.22 group test_ipmp netmask + broadcast + deprecated -failover standby up

重启网卡生效
# ifconfig e1000g0 unplumb
# ifconfig e1000g1 unplumb
# ifconfig e1000g0 plumb
# ifconfig e1000g1 plumb
# svcadm restart physical
# ifconfig -a
e1000g0: flags=1000843 UP,BROADCAST,RUNNING,MULTICAST,IPv4 mtu 1500 index 14
  inet 192.168.77.1 netmask ffffff00 broadcast 192.168.77.255
  groupname test_ipmp
  ether 0:c:29:c8:6d:b4
e1000g0:1: flags=9040843 UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER mtu 1500 index 14
  inet 192.168.77.11 netmask ffffff00 broadcast 192.168.77.255
e1000g1: flags=69040843 UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,STANDBY,INACTIVE mtu 1500 index 13
  inet 192.168.77.22 netmask ffffff00 broadcast 192.168.77.255
  groupname test_ipmp
  ether 0:c:29:c8:6d:be

注意:此时 e1000g1 网卡是 STANDBY,INACTIVE 的!

模拟故障:
bash-3.00# if_mpadm -d e1000g0  #停用 e1000g0 网卡
bash-3.00# ifconfig -a
lo0: flags=2001000849 UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL mtu 8232 index 1
  inet 127.0.0.1 netmask ff000000
e1000g0: flags=89000842 BROADCAST,RUNNING,MULTICAST,IPv4,NOFAILOVER,OFFLINE mtu 0 index 14
  inet 0.0.0.0 netmask 0
  groupname test_ipmp
  ether 0:c:29:c8:6d:b4
e1000g0:1: flags=89040842 BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,OFFLINE mtu 1500 index 14
  inet 192.168.77.11 netmask ffffff00 broadcast 192.168.77.255
e1000g1: flags=29040843 UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,STANDBY mtu 1500 index 13
  inet 192.168.77.22 netmask ffffff00 broadcast 192.168.77.255
  groupname test_ipmp
  ether 0:c:29:c8:6d:be
e1000g1:1: flags=21000843 UP,BROADCAST,RUNNING,MULTICAST,IPv4,STANDBY mtu 1500 index 13
  inet 192.168.77.1 netmask ffffff00 broadcast 192.168.77.255
在 IPMP 切换时,故障网卡会分配一个 0.0.0.0 的伪 IP!

感谢你能够认真阅读完这篇文章,希望丸趣 TV 小编分享的“SOLARIS IPMP 如何配置”这篇文章对大家有帮助,同时也希望大家多多支持丸趣 TV,关注丸趣 TV 行业资讯频道,更多相关知识等着你来学习!

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-08-25发表,共计2867字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)