7506E_IRF2典型配置举例(BFD MAD检测方式)【2013第01期】
IRF典型配置举例(BFD MAD检测方式)
1. 组网需求
由于网络规模迅速扩大,当前中心交换机(Device A)转发能力已经不能满足需求,现需要在保护现有投资的基础上将网络转发能力提高一倍,并要求网络易管理、易维护。
3. 配置思路
l Device A处于局域网的汇聚层,为了将汇聚层的转发能力提高一倍,需要另外增加一台设备Device B。
l 鉴于第二代智能弹性架构IRF技术具有管理简便、网络扩展能力强、可靠性高等优点,所以本例使用IRF技术构建网络汇聚层(即在Device A和Device B上配置IRF功能),接入层设备通过聚合双链路上行。
l 为了防止万一IRF链路故障导致IRF分裂、网络中存在两个配置冲突的IRF,需要启用MAD检测功能。因为成员设备比较少,我们采用BFD MAD检测方式来监测IRF的状态。
l 通过配置IRF优先级,保证DeviceA成为IRF中的Master设备。
l 当IRF链路出现故障后,首先修复IRF链路,然后重启Recovery状态的设备,使其重新加入IRF。
4. 配置步骤
(1) 配置Device A
# 设置Device A的成员编号为1,创建IRF端口2,并将它与物理端口Ten-GigabitEthernet3/0/1绑定。
<DeviceA> system-view
[DeviceA] irf member 1
[DeviceA] irf-port 2
[DeviceA-irf-port2] port group interface ten-gigabitethernet 3/0/1
[DeviceA-irf-port2] quit
配置Device A的成员优先级为10,保证其在形成IRF后能够被选举为Master。
[DeviceA] irf priority 10
# 将当前配置保存到下次启动配置文件。
[DeviceA] quit
<DeviceA> save
# 将设备的运行模式切换到IRF模式。
<DeviceA> system-view
[DeviceA] chassis convert mode irf
The device will switch to IRF mode and reboot. You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? [Y/N]:y
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
Please wait...
Saving the converted configuration file to the main board succeeded.
Slot 1:
Saving the converted configuration file succeeded.
Now rebooting, please wait...
设备重启后Device A组成了只有一台成员设备的IRF,并成为Master设备。
(2) 配置Device B
# 配置Device B的成员编号为2,创建IRF端口1,并将它与物理端口Ten-GigabitEthernet3/0/1绑定。
<DeviceB> system-view
[DeviceB] irf member 2
[DeviceB] irf-port 1
[DeviceB-irf-port1] port group interface ten-gigabitethernet 3/0/1
[DeviceB-irf-port1] quit
# 将当前配置保存到下次启动配置文件。
[DeviceB] quit
<DeviceB> save
# 参照图1-12进行物理连线。
# 将设备的运行模式切换到IRF模式。
<DeviceB> system-view
[DeviceB] chassis convert mode irf
The device will switch to IRF mode and reboot. You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? [Y/N]:y
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
Please wait...
Saving the converted configuration file to the main board succeeded.
Slot 1:
Saving the converted configuration file succeeded.
Now rebooting, please wait...
设备B重启后与设备A形成IRF,Device A保持Master身份,IRF系统名称为“DeviceA”。
(3) 配置BFD MAD检测
# 创建VLAN 3,并将Device A(成员编号为1)上的端口1/4/0/1和Device B(成员编号为2)上的端口2/4/0/1加入VLAN中。
<DeviceA> system-view
[DeviceA] vlan 3
[DeviceA-vlan3] port gigabitethernet 1/4/0/1 gigabitethernet 2/4/0/1
[DeviceA-vlan3] quit
# 创建VLAN接口3,并配置MAD IP地址。
[DeviceA] interface vlan-interface 3
[DeviceA-Vlan-interface3] mad bfd enable
[DeviceA-Vlan-interface3] mad ip address 192.168.2.1 24 member 1
[DeviceA-Vlan-interface3] mad ip address 192.168.2.2 24 member 2
[DeviceA-Vlan-interface3] quit
# 因为BFD MAD和MSTP功能互斥,所以在GigabitEthernet1/4/0/1和GigabitEthernet2/4/0/1上关闭MSTP协议。
[DeviceA] interface gigabitethernet 1/4/0/1
[DeviceA-gigabitethernet-1/4/0/1] undo stp enable
[DeviceA-gigabitethernet-1/4/0/1] quit
[DeviceA] interface gigabitethernet 2/4/0/1
[DeviceA-gigabitethernet-2/4/0/1] undo stp enable
(4) 当IRF链路出现故障后,系统会输出MAD检测错误,提示用户修复链路。
%May 6 15:10:05:477 2010 H3C MAD/1/MAD_COLLISION_DETECTED: Multi-active devices
detected, please fix it.
# 由于DeviceB的成员编号为2,因此在MAD检测错误后将变为Recovery状态,设备上除保留端口之外的端口都会处于关闭状态。
# 此时需要您修复IRF链路,当IRF链路修复后,系统会提示出现IRF合并现象,需要重启IRF系统。
%May 6 15:12:52:935 2010 H3C STM/6/STM_LINK_STATUS_UP:
IRF port 1 is up.
%May 6 15:13:02:828 2010 H3C STM/4/STM_MERGE_NEED_REBOOT:
IRF merge occurs and the IRF system needs a reboot.
# 您可以登录到DeviceB的Console口(系统名称仍保持为DeviceA),重启DeviceB设备。
<DeviceA> reboot
Start to check configuration with next startup configuration file, please wait.
.........DONE!
This command will reboot the device. Continue? [Y/N]:y
#May 6 15:31:09:724 2010 H3C DEVM/1/REBOOT:
Reboot device by command.
%May 6 15:31:09:734 2010 H3C DEVM/5/SYSTEM_REBOOT: System is rebooting now.
# 在启动完成后,Device B将重新加入IRF,您可以通过display irf命令显示IRF拓扑信息。
<DeviceA> display irf topology
&nbs
p; Topology Info
-------------------------------------------------------------------------
IRF-Port1 IRF-Port2
Switch Link neighbor Link neighbor Belong To
2 DOWN -- UP 1 00e0-fc0f-8c02
1 UP 2 DIS -- 00e0-fc0f-8c02