華三交換機配置IRF檢測機制二:LACP MAD檢測
SW1配置
[SW1]irf member 1 priority 32 //配置優先順序,確保成為master
把要加入irf的介面先關閉
[SW1]interface Ten-GigabitEthernet 1/0/49
[SW1-Ten-GigabitEthernet1/0/49]shutdown
建立虛擬介面,並繫結物理介面
[SW1]irf-port 1/1
[SW1-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/49
[SW1]interface Ten-GigabitEthernet 1/0/49 //把加入的介面再開啟
[SW1-Ten-GigabitEthernet1/0/49]undo shutdown
[SW1]save force //一定要先儲存好配置
[SW1]irf-port-configuration active //待配置儲存完成後再啟用irf配置
————————————————————————————————————————————
SW2配置
先更改編號,優先順序用預設的即可
[SW2]irf member 1 renumber 2
儲存配置後重啟裝置
[SW2]save force
——————————————————————————————————————-
[SW2]interface Ten-GigabitEthernet 2/0/49
[SW2-Ten-GigabitEthernet2/0/49]shutdown
[SW2]irf-port 2/2 //建立虛擬介面,並繫結物理埠
[SW2-irf-port2/2]port group interface Ten-GigabitEthernet 2/0/49
[SW2]interface Ten-GigabitEthernet 2/0/49
[SW2-Ten-GigabitEthernet2/0/49]undo shutdown
[SW2]save force
//一定不要忘記儲存配置,至關重要,如果沒儲存配置,則IRF建立將會失敗
[SW2]irf-port-configuration active //待配置儲存完成後再啟用irf配置
————————————————————————————————————————————————————-
在裝置上配置檢測機制,此處採用LACP MAD檢測。
在irf裝置上配置
[SW1]interface Bridge-Aggregation 2 //建立名為2的聚合埠組
[SW1-Bridge-Aggregation2]link-aggregation mode
dynamic
//埠組模式改為動態
[SW1-Bridge-Aggregation2]
mad enable
//使能MAD檢測
把GE1/0/9和GE2/0/9埠加入到聚合口組
[SW1]interface range GigabitEthernet 1/0/9 GigabitEthernet 2/0/9
[SW1-if-range]port link-aggregation group 2
————————————————————————————————————————-
SW3裝置上的配置
新建聚合埠組名為2
[SW3]interface Bridge-Aggregation 2
設定為動態
[SW3-Bridge-Aggregation2]link-aggregation mode dynamic
把GE1/0/9和GE1/0/10加入到聚合口組
[SW3]interface range GigabitEthernet 1/0/9 to GigabitEthernet 1/0/10
[SW3-if-range]port link-aggregation group 2