(1) 配置Device A
# 将用作IRF物理端口的Ten-GigabitEthernet1/0/1~Ten-GigabitEthernet1/0/4的手工关闭。使用端口批量配置功能可以更快速的完成配置。
<DeviceA> system-view
[DeviceA] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/4
[DeviceA-if-range] shutdown
[DeviceA-if-range] quit
# 创建IRF端口1,与端口Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/2绑定。
[DeviceA] irf-port 1/1
[DeviceA-irf-port1/1] port group interface ten-gigabitethernet 1/0/1
[DeviceA-irf-port1/1] port group interface ten-gigabitethernet 1/0/2
[DeviceA-irf-port1/1] quit
# 创建IRF端口2,与端口Ten-GigabitEthernet1/0/3和Ten-GigabitEthernet1/0/4绑定。
[DeviceA] irf-port 1/2
[DeviceA-irf-port1/2] port group interface ten-gigabitethernet 1/0/3
[DeviceA-irf-port1/2] port group interface ten-gigabitethernet 1/0/4
[DeviceA-irf-port1/2] quit
# 开启Ten-GigabitEthernet1/0/1~Ten-GigabitEthernet1/0/4端口。
[DeviceA] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/4
[DeviceA-if-range] undo shutdown
[DeviceA-if-range] quit
# 配置Device A的成员优先级为31,以保证其成为IRF中的主设备。
[DeviceA] irf member 1 priority 31
# 将当前配置保存到下次启动配置文件。
[DeviceA] quit
<DeviceA> save
# 激活IRF端口的配置。
<DeviceA> system-view
[DeviceA] irf-port-configuration active
(2) 配置Device B
# 配置Device B的成员编号为2,并重启设备使配置生效。
<DeviceB> system-view
[DeviceB] irf member 1 renumber 2
Renumbering the member ID may result in configuration change or loss. Continue? [Y/N]:y
[DeviceB] quit
<DeviceB> reboot
# 将用作IRF物理端口的Ten-GigabitEthernet2/0/1~Ten-GigabitEthernet2/0/4的手工关闭。使用端口批量配置功能可以更快速的完成配置。
<DeviceB> system-view
[DeviceB] interface range ten-gigabitethernet 2/0/1 to ten-gigabitethernet 2/0/4
[DeviceB-if-range] shutdown
[DeviceB-if-range] quit
# 创建IRF端口1,与端口Ten-GigabitEthernet2/0/1和Ten-GigabitEthernet2/0/2绑定。
[DeviceB] irf-port 2/1
[DeviceB-irf-port2/1] port group interface ten-gigabitethernet 2/0/1
[DeviceB-irf-port2/1] port group interface ten-gigabitethernet 2/0/2
[DeviceB-irf-port2/1] quit
# 创建IRF端口2,与端口Ten-GigabitEthernet2/0/3和Ten-GigabitEthernet2/0/4绑定。
[DeviceB] irf-port 2/2
[DeviceB-irf-port2/2] port group interface ten-gigabitetherne