# 创建IRF端口 [SWA]irf-port 1/1 [SWA-irf-port1/1]port group interface 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. [SWA-irf-port1/1]quit
# 重命名member号为2 [SWB]irf member 1 renumber 2 Renumbering the member ID may result in configuration change or loss. Continue?[Y/N]:y [SWB]quit <SWB>reboot
[SWA]dis irf MemberID Role Priority CPU-Mac Description *+1 Master 30 7490-4d85-0104 --- 2 Standby 1 7490-51eb-0204 --- -------------------------------------------------- * indicates the device is the master. + indicates the device through which the user logs in.
The bridge MAC of the IRF is: 7490-4d85-0100 Auto upgrade : yes Mac persistent : 6 min Domain ID : 0
[SWA]dis irf topology Topology Info ------------------------------------------------------------------------- IRF-Port1 IRF-Port2 MemberID Link neighbor Link neighbor Belong To 2 DIS --- UP 1 7490-4d85-0104 1 UP 2 DIS --- 7490-4d85-0104
[SWA]dis irf MemberID Role Priority CPU-Mac Description *1 Master 30 7490-4d85-0104 --- +2 Standby 1 7490-51eb-0204 --- -------------------------------------------------- * indicates the device is the master. + indicates the device through which the user logs in.
The bridge MAC of the IRF is: 7490-4d85-0100 Auto upgrade : yes Mac persistent : 6 min Domain ID : 0
[SWA]dis irf topology Topology Info ------------------------------------------------------------------------- IRF-Port1 IRF-Port2 MemberID Link neighbor Link neighbor Belong To 2 DIS --- UP 1 7490-4d85-0104 1 UP 2 DIS --- 7490-4d85-0104
# SWA上配置LACP [SWA]interface Bridge-Aggregation 2 [SWA-Bridge-Aggregation2]link-aggregation mode dynamic [SWA-Bridge-Aggregation2]mad enable You need to assign a domain ID (range: 0-4294967295) [Current domain is: 0]: 0 The assigned domain ID is: 0 [SWA-Bridge-Aggregation2]quit
[SWA]int range g1/0/1 g2/0/1 [SWA-if-range]port link-aggregation group 2 [SWA-if-range]quit
[SWA]dis mad MAD ARP disabled. MAD ND disabled. MAD LACP enabled. MAD BFD enabled. [SWA]dis 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 BFD enabled interface: Vlan-interface3 MAD status : Faulty Member ID MAD IP address Neighbor MAD status 1 192.168.2.1/24 2 Faulty 2 192.168.2.2/24 1 Faulty
此时在SWA上断掉Ten1/0/49口模拟线缆中断,再从SWA查看MAD信息:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
[SWA]dis mad verbose Multi-active recovery state: No Excluded ports (user-configured): Excluded ports (system-configured): Ten-GigabitEthernet1/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 MAD BFD enabled interface: Vlan-interface3 MAD status : Faulty Member ID MAD IP address Neighbor MAD status 1 192.168.2.1/24 2 Faulty
再到SWB上查看MAD信息:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
[SWA]dis mad verbose Multi-active recovery state: Yes Excluded ports (user-configured): Excluded ports (system-configured): Ten-GigabitEthernet2/0/49 MAD ARP disabled. MAD ND disabled. MAD LACP enabled interface: Bridge-Aggregation2 MAD status : Faulty Member ID Port MAD status 2 GigabitEthernet2/0/1 Faulty MAD BFD enabled interface: Vlan-interface3 MAD status : Faulty Member ID MAD IP address Neighbor MAD status 2 192.168.2.2/24 1 Faulty