[sw2]irf member 1 renumber 2 //更改設備編號爲2
Renumbering the member ID may result in configuration change or loss. Continue?[Y/N]:y
[sw2]save //保存
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg](To leave the existing filename unchanged, press the enter key):
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
[sw2]reboot //重啓設備以啓動設置
2、修改IRF優先級爲5
[sw1]irf member 1 priority 5 //讓其在競選Master時獲勝
3、創建IRF端口,並綁定
[sw1]int Ten-GigabitEthernet 1/0/49
[sw1-Ten-GigabitEthernet1/0/49]shutdown
[sw1-Ten-GigabitEthernet1/0/49]quit
[sw1]irf-port 1/2 //創建設備的IRF端口1
[sw1-irf-port1/2]port group interface Ten-GigabitEthernet 1/0/49 //與物理端口Ten-GigabitEthernet 1/0/49綁定
You must perform the following tasks for a successful IRF setup:
Save the configuration after completing IRF configuration.
Execute the "irf-port-configuration active"command to activate the IRF ports.
[sw1-irf-port1/2]quit
[sw1]int Ten-GigabitEthernet 1/0/49
[sw1-Ten-GigabitEthernet1/0/49]un sh
[sw1-Ten-GigabitEthernet1/0/49]quit
[sw1]save
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg](To leave the existing filename unchanged, press the enter key):
flash:/startup.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
[sw2]int Ten-GigabitEthernet 2/0/49
[sw2-Ten-GigabitEthernet2/0/49]shutdown
[sw2-Ten-GigabitEthernet2/0/49]quit
[sw2]irf-port 2/1 //創建設備的IRF端口2
[sw2-irf-port2/1]port group interface Ten-GigabitEthernet 2/0/49 //與物理端口Ten-GigabitEthernet 2/0/49綁定
You must perform the following tasks for a successful IRF setup:
Save the configuration after completing IRF configuration.
Execute the "irf-port-configuration active"command to activate the IRF ports.
[sw2-irf-port2/1]quit
[sw2]int Ten-GigabitEthernet 2/0/49
[sw2-Ten-GigabitEthernet2/0/49]un sh
[sw2-Ten-GigabitEthernet2/0/49]quit
[sw2]save
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg](To leave the existing filename unchanged, press the enter key):
flash:/startup.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
4、激活IRF端口配置
[sw1]irf-port-configuration active
[sw2]irf-port-configuration active
三、配置LACP MAD檢測
1、創建兩個動態聚合端口,並配置trunk
[sw1]interface Bridge-Aggregation 2
[sw1-Bridge-Aggregation2]port link trunk
[sw1-Bridge-Aggregation2]port trunk permit vlan all
[sw1-Bridge-Aggregation2]link-aggregation mode dynamic
[sw1-Bridge-Aggregation2]mad enable
You need to assign a domain ID (range: 0-4294967295)[Current domain is: 0]:
The assigned domain ID is: 0
MAD LACP only enable on dynamic aggregation interface.
[sw1-Bridge-Aggregation2]quit
[sw1]int Bridge-Aggregation 3
[sw1-Bridge-Aggregation3]port link trunk
[sw1-Bridge-Aggregation3]port trunk permit vlan all
[sw1-Bridge-Aggregation3]link-aggregation mode dynamic
[sw1-Bridge-Aggregation3]mad enable
You need to assign a domain ID (range: 0-4294967295)[Current domain is: 0]:
The assigned domain ID is: 0
MAD LACP only enable on dynamic aggregation interface.
[sw1-Bridge-Aggregation3]quit
2、創建相應的聚合端口組,並配置trunk
[SW3]interface Bridge-Aggregation 2
[SW3-Bridge-Aggregation2]port link trunk
[SW3-Bridge-Aggregation2]port trunk permit vlan all
[SW3-Bridge-Aggregation2]link-aggregation mode dynamic
[SW3-Bridge-Aggregation2]quit
3、在聚合接口上添加成員,並配置trunk
[sw1]interface GigabitEthernet 1/0/1
[sw1-GigabitEthernet1/0/1]port link-type trunk
[sw1-GigabitEthernet1/0/1]port trunk permit vlan all
[sw1-GigabitEthernet1/0/1]port link-aggregation group 2 //加入2組(要相應的組號)
[sw1-GigabitEthernet1/0/1]quit
四、查看IRF和MAD配置的顯示和維護信息
1、查看設備的IRF配置信息
[sw1]display irf
MemberID Role Priority CPU-Mac Description
*+1 Master 5 2c63-c480-0304 ---
2 Standby 1 2c63-c8c5-0404 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The bridge MAC of the IRF is: 2c63-c480-0300
Auto upgrade :yes
Mac persistent : 6 min
Domain ID : 0
[sw1]display irf topology
Topology Info
-------------------------------------------------------------------------
IRF-Port1 IRF-Port2
MemberID Link neighbor Link neighbor Belong To
1 DIS --- UP 2 2c63-c480-0304
2 UP 1 DIS --- 2c63-c480-0304
[sw1]display mad verbose
Multi-active recovery state: No
Excluded ports (user-configured):
Excluded ports (system-configured):
Ten-GigabitEthernet1/0/49
Ten-GigabitEthernet2/0/49
MAD ARP disabled.
MAD ND disabled.
MAD LACP enabled interface: Bridge-Aggregation2
MAD status : Normal
Member ID Port MAD status
1 GigabitEthernet1/0/1 Normal
2 GigabitEthernet2/0/1 Normal
MAD LACP enabled interface: Bridge-Aggregation3
MAD status : Normal
Member ID Port MAD status
1 GigabitEthernet1/0/2 Normal
2 GigabitEthernet2/0/2 Normal
MAD BFD disabled.