大橙子网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

SOLARISIPMP如何配置

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

创新互联是一家以成都网站建设、网页设计、品牌设计、软件运维、成都网站推广、小程序App开发等移动开发为一体互联网公司。已累计为成都石凉亭等众行业中小客户提供优质的互联网建站和软件开发服务。

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 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 mtu 1500 index 14
        inet 192.168.77.11 netmask ffffff00 broadcast 192.168.77.255
e1000g1: flags=69040843 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 mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
e1000g0: flags=89000842 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 mtu 1500 index 14
        inet 192.168.77.11 netmask ffffff00 broadcast 192.168.77.255
e1000g1: flags=29040843 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 mtu 1500 index 13
        inet 192.168.77.1 netmask ffffff00 broadcast 192.168.77.255
在IPMP切换时,故障网卡会分配一个0.0.0.0的伪IP!

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


网站名称:SOLARISIPMP如何配置
分享链接:http://dzwzjz.com/article/ieedsi.html
在线咨询
服务热线
服务热线:028-86922220
TOP