# SW1
[H3C]int range Ten-GigabitEthernet 1/0/49 Ten-GigabitEthernet 1/0/50
[H3C-if-range]shu
[H3C]irf-port 1/1
[H3C-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/49
[H3C-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/50
[H3C]int range Ten-GigabitEthernet 1/0/49 Ten-GigabitEthernet 1/0/50
[H3C-if-range]undo shutdown
[H3C]irf-port-configuration active
[H3C]irf member 1 priority 32
<H3C>save
# SW2
[H3C]int range Ten-GigabitEthernet 1/0/49 Ten-GigabitEthernet 1/0/50
[H3C-if-range]shu
[H3C]irf-port 1/2
[H3C-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/49
[H3C-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/50
[H3C]int range Ten-GigabitEthernet 1/0/49 Ten-GigabitEthernet 1/0/50
[H3C-if-range]undo shutdown
[H3C]irf-port-configuration active
[H3C]irf member 1 renumber 2
<H3C>save
<H3C>reboot
SW1 irf port 1 <-> SW2 irf port 2
查看irf状态
<H3C>dis irf
MemberID Role Priority CPU-Mac Description
*+1 Master 32 4074-bd26-0204 ---
2 Standby 1 4074-b915-0104 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The bridge MAC of the IRF is: 4074-bd26-0200
Auto upgrade : yes
Mac persistent : 6 min
Domain ID : 0
<H3C>dis irf topology
Topology Info
-------------------------------------------------------------------------
IRF-Port1 IRF-Port2
MemberID Link neighbor Link neighbor Belong To
2 DIS --- UP 1 4074-bd26-0204
1 UP 2 DIS --- 4074-bd26-0204
BFD MAD配置
[H3C]int Route-Aggregation 1
[H3C-Route-Aggregation1]mad bfd enable
[H3C-Route-Aggregation1]mad ip address 1.1.1.2 255.255.255.252 member 2
[H3C-Route-Aggregation1]mad ip address 1.1.1.1 255.255.255.252 member 1
[H3C]int range GigabitEthernet 1/0/1 GigabitEthernet 2/0/1
[H3C-if-range]port link-mode route
[H3C-if-range]port link-aggregation group 1
状态查看
[H3C]dis mad verbose
Multi-active recovery state: No
Excluded ports (user-configured):
Excluded ports (system-configured):
IRF physical interfaces:
Ten-GigabitEthernet1/0/49
Ten-GigabitEthernet1/0/50
Ten-GigabitEthernet2/0/49
Ten-GigabitEthernet2/0/50
BFD MAD interfaces:
GigabitEthernet1/0/1
GigabitEthernet2/0/1
Route-Aggregation1
MAD ARP disabled.
MAD ND disabled.
MAD LACP disabled.
MAD BFD enabled interface: Route-Aggregation1
MAD status : Normal
Member ID MAD IP address Neighbor MAD status
1 1.1.1.1/30 2 Normal
2 1.1.1.2/30 1 Normal
[H3C]dis bfd session
Total sessions: 1 Up sessions: 0 Init mode: Active
IPv4 session working in control packet mode:
LD/RD SourceAddr DestAddr State Holdtime Interface
32833/0 1.1.1.1 1.1.1.2 Down / RAGG1
标签:H3C,Ten,GigabitEthernet,range,port,irf
From: https://www.cnblogs.com/moyuning/p/18520242