下面這個是主備模式
[P750A01][9672adm][/home/9672adm]#lsattr -El ent4
adapter_names ent1 EtherChannel Adapters True
alt_addr 0x000000000000 Alternate EtherChannel Address True
auto_recovery yes Enable automatic recovery after failover True
backup_adapter ent3 Adapter used when whole channel fails True
hash_mode default Determines how outgoing adapter is chosen True
interval long Determines interval value for IEEE 802.3ad mode True
mode standard EtherChannel mode of operation True
netaddr 190.2.242.240 Address to ping True
noloss_failover yes Enable lossless failover after ping failure True
num_retries 60 Times to retry ping before failing True
retry_time 1 Wait time (in seconds) between pings True
use_alt_addr no Enable Alternate EtherChannel Address True
use_jumbo_frame no Enable Gigabit Ethernet Jumbo Frames True
下面是雙活模式
[P750B05][root][/]#lsattr -El ent4
adapter_names ent1,ent3 EtherChannel Adapters True
alt_addr 0x000000000000 Alternate EtherChannel Address True
auto_recovery yes Enable automatic recovery after failover True
backup_adapter NONE Adapter used when whole channel fails True
hash_mode default Determines how outgoing adapter is chosen True
interval long Determines interval value for IEEE 802.3ad mode True
mode standard EtherChannel mode of operation True
netaddr 0 Address to ping True
noloss_failover yes Enable lossless failover after ping failure True
num_retries 3 Times to retry ping before failing True
retry_time 1 Wait time (in seconds) between pings True
use_alt_addr no Enable Alternate EtherChannel Address True
use_jumbo_frame no Enable Gigabit Ethernet Jumbo Frames True
後來網上找了下相關資料,關於網卡聚合,有三種概念
在Aix5.2以後,我們看看三種典型的配置方式
1、雙通道或者多通道的共同active模式,這個模式下,所有的網卡都處於active狀態,也就是每個網卡都處於工作狀態,他們共有一個IP地址與MAC地址,但是,所有網卡的目標必須在同一個交換機上,並且交換機的對應端口也要綁定。
這樣做最大的好處就是,當其中一個網卡失效,或者一根網線失效的時候,不影響整個網絡的工作,只有當所有的網卡通道失效的時候,網絡才失效。而且,多個網卡的同時工作,可以增加網絡帶寬,不過,要注意,默認的分配方式是根據目標機器的Ip來分配使用哪個網卡,如果目標機器只有一臺,不適合使用默認設置。這種模式下,最大的問題就是所有的網卡目標必須在同一個交換機上,並且綁定在一起,不能防止目標交換機故障。
2、activestandby模式,這樣的模式下,一個網卡接到主交換機,一個網卡接到備用交換機,當active通道失效的時候,自動切換到standby通道,當主通道恢復正常的時候,再自動切換到主通道(這裏是否切換回去,是可以配置的)。這種方式最大的好處就是可以防止交換機的故障。
3、複合式配置,在這種配置中,結合以上2種方式的優點。如一個3塊網卡的環境中,我們可以把其中2片網卡配置成雙active模式,以增加網絡帶寬以及網絡的可靠性,另外一塊網卡作爲後備模式,接在另外一個交換機上,當前面2個網卡都失效,或者前面2個網卡接的交換機失效的時候,切換到後備網卡上。