您好,登錄后才能下訂單哦!
這篇文章主要介紹了SOLARIS IPMP如何配置,具有一定借鑒價值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓小編帶著大家一起了解一下。
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!
感謝你能夠認真閱讀完這篇文章,希望小編分享的“SOLARIS IPMP如何配置”這篇文章對大家有幫助,同時也希望大家多多支持億速云,關注億速云行業資訊頻道,更多相關知識等著你來學習!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。