您好,欢迎来到神马库!

web

集群/堆叠多主检测配置

1、mad detect mode direct命令用来配置接口的直连多主检测功能。   undo mad detect命令用来取消接口的直连多主检测功能。2、mad detect mode relay命令用来配置接口的Relay代理多主检测功能。  undo mad detect命令用来取消接口的Relay代理多主检测功能。1、配置接口GigabitEthernet1/1/0/1的直连多主检测功能。<HUAWEI> system-view [HUAWEI] interface gigabitethernet 1/1/0/1 [HUAWEI-GigabitEthernet1/1/0/1] mad detect mode direct Warning: This command will block the port, and no other configuration running on this port is recommended. Continue?[Y/N]:y 2、配置接口Eth-Trunk10的Relay代理多主检测功能。 <HUAWEI> system-view [HUAWEI] interface eth-trunk 10 [HUAWEI-Eth-Trunk10] mad detect mode relay 配置代理方式多主检测示例 配置需求如图1所示,SwitchA、SwitchB和SwitchC组成堆叠系统,SwitchA、SwitchB和SwitchC通过接口Eth-Trunk1与SwitchD连接。为防止堆叠***时,网络中存在两个配置冲突的堆叠系统,用户可以配置代理方式的多主检测功能,减少堆叠***给网络带来的影响。 图1 配置Relay代理检测方式的MAD组网图 集群/堆叠多主检测配置-1626335-1 配置思路采用如下的思路配置:在堆叠系统上,配置跨设备Eth-Trunk的代理方式多主检测功能。在代理设备上,配置Eth-Trunk的代理功能,使其能够转发MAD报文。 操作步骤在堆叠系统上,配置跨设备Eth-Trunk的代理方式多主检测功能 <HUAWEI> system-view [HUAWEI] interface eth-trunk 1 [HUAWEI-Eth-Trunk1] mad detect mode relay [HUAWEI-Eth-Trunk1] quit [HUAWEI] interface gigabitethernet 0/0/5 [HUAWEI-GigabitEthernet0/0/5] eth-trunk 1 [HUAWEI-GigabitEthernet0/0/5] quit [HUAWEI] interface gigabitethernet 1/0/5 [HUAWEI-GigabitEthernet1/0/5] eth-trunk 1 [HUAWEI-GigabitEthernet1/0/5] quit [HUAWEI] interface gigabitethernet 2/0/5 [HUAWEI-GigabitEthernet2/0/5] eth-trunk 1 [HUAWEI-GigabitEthernet2/0/5] quit [HUAWEI] quit在代理设备上,配置Eth-Trunk的代理功能 <HUAWEI> system-view [HUAWEI] sysname SwitchD [SwitchD] interface eth-trunk 1 [SwitchD-Eth-Trunk1] mad relay [SwitchD-Eth-Trunk1] quit [SwitchD] interface gigabitethernet 0/0/1 [SwitchD-GigabitEthernet0/0/1] eth-trunk 1 [SwitchD-GigabitEthernet0/0/1] quit [SwitchD] interface gigabitethernet 0/0/2 [SwitchD-GigabitEthernet0/0/2] eth-trunk 1 [SwitchD-GigabitEthernet0/0/2] quit [SwitchD] interface gigabitethernet 0/0/3 [SwitchD-GigabitEthernet0/0/3] eth-trunk 1 [SwitchD-GigabitEthernet0/0/3] quit [SwitchD] quit查看配置结果 # 查看堆叠系统多主检测配置信息。<HUAWEI> display mad verbose Current MAD domain: 0 Current MAD status: Detect Mad direct detect interfaces configured: Mad relay detect interfaces configured: Eth-Trunk1 Excluded ports(configurable): Excluded ports(can not be configured): GigabitEthernet0/0/26 GigabitEthernet0/0/27 GigabitEthernet1/0/26 GigabitEthernet1/0/27 GigabitEthernet2/0/26 GigabitEthernet2/0/27 # 查看SwitchD的代理信息。<SwitchD> display mad proxy Mad relay interfaces configured: Eth-Trunk1 验证多主检测功能 多主检测功能配置成功后,如果堆叠系统***,设备会发出告警MAD_1.3.6.1.4.1.2011.5.25.246.1.1 hwMadConflictDetect;***故障恢复后,设备会发出告警MAD_1.3.6.1.4.1.2011.5.25.246.1.2 hwMadConflictResume。如果当前堆叠系统上还没有配置业务,可以通过以下步骤验证多主检测功能是否配置成功:在用户视图下,打开告警信息开关。 <HUAWEI> terminal monitor <HUAWEI> terminal trapping人为制造堆叠***:通过拔掉SwitchB与SwitchC、SwitchC与SwitchA之间堆叠线缆的方式制造堆叠***;业务口堆叠环境时,也可以在逻辑堆叠端口视图下,也可以通过shutdown interface命令关闭SwitchB与SwitchC、SwitchC与SwitchA之间物理成员端口的方式来制造***。终端屏幕上出现发现多主的告警:MAD/4/MULTIACTIVEDETECTED(t):OID 1.3.6.1.4.1.2011.5.25.246.1.1 Multi-active scenario is detected.查看堆叠成员交换机的数目是否减少。 通过display device命令,查看到成员交换机的数目由原来的三台变为两台(当前堆叠成员交换机以S5700-28P-LI-AC为例)。<HUAWEI> display device S5700-28P-LI-AC's Device status: Slot Sub Type Online Power Register Status Role - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - S5700-28P-LI Present PowerOn Registered Normal Master 1 - S5700-28P-LI Present PowerOn Registered Normal Standby通过以上步骤,可以验证多主检测配置成功。将堆叠线缆重新插上或通过undo shutdown命令将关闭的物理成员端口重新开启,使堆叠系统重新建立。终端屏幕上出现多主消除的告警:MAD/4/MULTIACTIVEMERGE(t):OID 1.3.6.1.4.1.2011.5.25.246.1.2 Multi-active scenario is merged.查看堆叠成员交换机的数目是否恢复。 通过display device命令,查看到成员交换机的数目恢复为原来的三台。<HUAWEI> display device S5700-28P-LI-AC's Device status: Slot Sub Type Online Power Register Status Role - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - S5700-28P-LI Present PowerOn Registered Normal Master 1 - S5700-28P-LI Present PowerOn Registered Normal Standby 2 - S5700-28P-LI Present PowerOn Registered Normal Slave