(1) 配置Device A
# 配置IRF端口1/2,并将它与物理端口Ten-GigabitEthernet1/1/2绑定,并保存配置。
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/1/2
[Sysname-Ten-GigabitEthernet1/1/2] shutdown
[Sysname-Ten-GigabitEthernet1/1/2] quit
[Sysname] irf-port 1/2
[Sysname-irf-port1/2] port group interface ten-gigabitethernet 1/1/2
[Sysname-irf-port1/2] quit
[Sysname] interface ten-gigabitethernet 1/1/2
[Sysname-Ten-GigabitEthernet1/1/2] undo shutdown
[Sysname-Ten-GigabitEthernet1/1/2] quit
[Sysname] save
# 激活IRF端口下的配置。
[Sysname] irf-port-configuration active
(2) 配置Device B
# 将Device B的成员编号配置为2,并重启设备使新编号生效。
<Sysname> system-view
[Sysname] irf member 1 renumber 2
Warning: Renumbering the member ID may result in configuration change or loss. Continue? [Y/N]:y
[Sysname] quit
<Sysname> reboot
# 参照上图进行物理连线。
# 重新登录到设备,配置IRF端口2/1,并将它与物理端口Ten-GigabitEthernet2/1/1绑定,并保存配置。
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 2/1/1
[Sysname-Ten-GigabitEthernet2/1/1] shutdown
[Sysname-Ten-GigabitEthernet2/1/1] quit
[Sysname] irf-port 2/1
[Sysname-irf-port2/1] port group interface ten-gigabitethernet 2/1/1
[Sysname-irf-port2/1] quit
[Sysname] interface ten-gigabitethernet 2/1/1
[Sysname-Ten-GigabitEthernet2/1/1] undo shutdown
[Sysname-Ten-GigabitEthernet2/1/1] quit
[Sysname] save
# 激活IRF端口下的配置。
[Sysname] irf-port-configuration active
(3) Device A和Device B间将会进行主设备竞选,竞选失败的一方将重启,重启完成后,IRF形成。
(4) 配置BFD MAD检测
# 创建三层聚合接口3。
<Sysname> system-view
[Sysname] interface route-aggregation 3
[Sysname-Route-Aggregation3] quit
# 分别将Device A(成员编号为1)上的端口1/0/1和Device B(成员编号为2)上的端口2/0/1加入聚合组3中。
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] port link-aggregation group 3
[Sysname-GigabitEthernet1/0/1] quit
[Sysname] interface gigabitethernet 2/0/1
[Sysname-GigabitEthernet2/0/1] port link-aggregation group 3
[Sysname-GigabitEthernet2/0/1] quit
# 配置三层聚合接口3的MAD IP地址。
[Sysname] interface route-aggregation 3
[Sysname-Route-Aggregation3] mad bfd enable
[Sysname-Route-Aggregation3] mad ip address 192.168.2.1 24 member 1
[Sysname-Route-Aggregation3] mad ip address 192.168.2.2 24 member 2
[Sysname-Route-Aggregation3] quit
暂无评论