最佳答案
您好,请知:
以下是IRF的配置案例,请参考:
如图1-16所示,配置Device A和Device B组成IRF设备,接入层设备通过聚合双链路上行。因为成员设备比较少,配置BFD MAD进行分裂检测。
图1-16 IRF典型配置组网图(VLAN接口/聚合接口配置BFD MAD)
设备出厂为独立运行模式,为减少IRF搭建过程中设备重启的次数,本举例采用以下配置思路:
(1) 在独立运行模式下,完成IRF端口和参数的配置。
(2) 切换到IRF模式,在设备重启过程中,连接IRF物理接口。设备启动完成,IRF搭建成功。
(3) 配置MAD检测。
如果您采用先将设备切换到IRF模式,再绑定IRF端口的方式搭建IRF。请在完成IRF端口等参数配置后,执行save命令保存当前配置,再执行irf-port-configuration active命令手工激活IRF端口的配置,才能形成IRF。
(1) 搭建IRF(Device A上的配置)
# 设置Device A的成员编号为1,创建IRF端口2,并将它与物理端口Ten-GigabitEthernet2/0/1和Ten-GigabitEthernet3/0/1绑定。
<Sysname> system-view
[Sysname] irf member 1
[Sysname] irf-port 2
[Sysname-irf-port2] port group interface ten-gigabitethernet 2/0/1
[Sysname-irf-port2] port group interface ten-gigabitethernet 3/0/1
[Sysname-irf-port2] quit
# 将当前配置保存到下次启动配置文件。
[Sysname] quit
<Sysname> save
# 将设备的运行模式切换到IRF模式。
<Sysname> system-view
[Sysname] chassis convert mode irf
The device will switch to IRF mode and reboot. Continue? [Y/N]:y
You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? [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.
Slot 1:
Save next configuration file successfully.
Do you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? [Y/N]:y
Now rebooting, please wait...
设备重启后Device A组成了只有一台成员设备的IRF。
(2) 搭建IRF(Device B上的配置)
# 配置Device B的成员编号为2,创建IRF端口1,并将它与物理端口Ten-GigabitEthernet2/0/1和Ten-GigabitEthernet3/0/1绑定。
<Sysname> system-view
[Sysname] irf member 2
[Sysname] irf-port 1
[Sysname-irf-port1] port group interface ten-gigabitethernet 2/0/1
[Sysname-irf-port1] port group interface ten-gigabitethernet 3/0/1
[Sysname-irf-port1] quit
# 将当前配置保存到下次启动配置文件。
[Sysname] quit
<Sysname> save
# 参考图1-16进行物理连线。
# 将设备的运行模式切换到IRF模式。
<Sysname> system-view
[Sysname] chassis convert mode irf
The device will switch to IRF mode and reboot. Continue? [Y/N]:y
You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? [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.
Slot 1:
Save next configuration file successfully.
Do you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? [Y/N]:y
Now rebooting, please wait...
设备B重启后与设备A形成IRF。
(3) 配置BFD MAD检测
# 创建VLAN 3,并将Device A(成员编号为1)上的端口Ten-GigabitEthernet1/2/0/2和Device B(成员编号为2)上的端口Ten-GigabitEthernet2/2/0/2加入VLAN中。
<Sysname> system-view
[Sysname] vlan 3
[Sysname-vlan3] port ten-gigabitethernet 1/2/0/2 ten-gigabitethernet 2/2/0/2
[Sysname-vlan3] quit
# 创建VLAN接口3,并配置MAD IP地址。
[Sysname] interface vlan-interface 3
[Sysname-Vlan-interface3] mad bfd enable
[Sysname-Vlan-interface3] mad ip address 192.168.2.1 24 member 1
[Sysname-Vlan-interface3] mad ip address 192.168.2.2 24 member 2
[Sysname-Vlan-interface3] quit
# 因为BFD MAD和生成树功能互斥,所以在Ten-GigabitEthernet1/2/0/2和Ten-GigabitEthernet2/2/0/2上关闭生成树协议。
[Sysname] interface ten-gigabitethernet 1/2/0/2
[Sysname-Ten-GigabitEthernet1/2/0/2] undo stp enable
[Sysname-Ten-GigabitEthernet1/2/0/2] quit
[Sysname] interface ten-gigabitethernet 2/2/0/2
[Sysname-Ten-GigabitEthernet2/2/0/2] undo stp enable
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论