点击(此处)折叠或打开
-
# ifconfig e1000g0 plumb 192.168.1.2 netmask + broadcast + group ipmp0 up addif 192.168.1.3 netmask + broadcast + deprecated -failover up
-
#
-
# ifconfig e1000g1 plumb 192.168.1.4 netmask + broadcast + deprecated -failover group ipmp0 up
-
-
-
To ensure persistent configuration across reboots edit the files :
-
/etc/hostname.e1000g0:
-
192.168.1.2 netmask + broadcast + group ipmp0 up
-
addif 192.168.1.3 netmask + broadcast + deprecated -failover up
-
-
/
-
/etc/hostname.e1000g1:
-
-
192.168.1.4 netmask + broadcast + deprecated -failover group ipmp0 up
-
Before failure :
-
# ifconfig -a
-
-
lo0: flags=2001000849[UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL] mtu 8232 index 1
-
-
inet 127.0.0.1 netmask ff000000
-
-
e1000g0: flags=1000843[UP,BROADCAST,RUNNING,MULTICAST,IPv4] mtu 1500 index 9
-
-
inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255
-
-
groupname ipmp0
-
-
ether 0:c:29:f6:ef:67
-
-
e1000g0:1: flags=9040843[UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER] mtu 1500 index 9
-
-
inet 192.168.1.3 netmask ffffff00 broadcast 192.168.1.255
-
-
e1000g1: flags=9040843[UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER] mtu 1500 index 10
-
-
inet 192.168.1.4 netmask ffffff00 broadcast 192.168.1.255
-
-
groupname ipmp0
-
-
ether 0:c:29:f6:ef:71
-
-
-
After failure :
-
# ifconfig -a
-
-
lo0: flags=2001000849[UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL] mtu 8232 index 1
-
-
inet 127.0.0.1 netmask ff000000
-
-
e1000g0: flags=19000802[BROADCAST,MULTICAST,IPv4,NOFAILOVER,FAILED] mtu 0 index 9
-
-
inet 0.0.0.0 netmask 0
-
-
groupname ipmp0
-
-
ether 0:c:29:f6:ef:67
-
-
e1000g0:1: flags=19040803[UP,BROADCAST,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,FAILED] mtu 1500 index 9
-
-
inet 192.168.1.3 netmask ffffff00 broadcast 192.168.1.255
-
-
e1000g1: flags=9040843[UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER] mtu 1500 index 10
-
-
inet 192.168.1.4 netmask ffffff00 broadcast 192.168.1.255
-
-
groupname ipmp0
-
-
ether 0:c:29:f6:ef:71
-
-
e1000g1:1: flags=1000843[UP,BROADCAST,RUNNING,MULTICAST,IPv4] mtu 1500 index 10
-
-
inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255
2. Active – Standby
The only difference in case of a active-standby configuration is – the interface configured as standby is not used to send any out bound traffic. Thus disabling the load balancing feature of an active-active configuration.
Groupname: ipmp0
Active interface(s): e1000g0
Standby interface(s): e1000g1
Data IP addresse(s): 192.168.1.2
Test IP addresse(s): 192.168.1.3
192.168.1.4
Command line :
(编辑:我爱故事小小网_铜陵站长网)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|