配置采用直连方式多主检测示例
组网需求
SwitchA和SwitchB组成堆叠系统,SwitchA的堆叠ID为0,SwitchB的堆叠ID为1。
为防止堆叠***时,网络中存在两个配置冲突的堆叠系统,用户可以启用多主检测功能,减少堆叠***给网络带来的影响。
配置思路
采用如下的思路配置MAD功能:
?配置指定接口采用直连方式多主检测功能。
操作步骤
配置接口采用直连方式多主检测功能
# 配置接口GigabitEthernet0/0/5采用直连方式多主检测功能。
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/5
[HUAWEI-GigabitEthernet0/0/5] 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
[HUAWEI-GigabitEthernet0/0/5] quit
[HUAWEI] quit
# 配置接口GigabitEthernet1/0/5采用直连方式多主检测功能。
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/5
[HUAWEI-GigabitEthernet1/0/5] 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
[HUAWEI-GigabitEthernet1/0/5] quit
[HUAWEI] quit
查看配置结果
# 查看堆叠系统多主检测详细配置信息。
<HUAWEI> display mad verboseCurrent MAD domain: 0
Current MAD status: Detect Mad direct detect interfaces configured:
GigabitEthernet0/0/5
GigabitEthernet1/0/5 Mad relay detect interfaces configured:
Excluded ports(configurable):
Excluded ports(can not be configured):
GigabitEthernet0/0/27
GigabitEthernet1/0/27
验证多主检测功能
多主检测功能配置成功后,如果堆叠系统***,设备会发出告警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
人为制造堆叠***:通过拔掉堆叠线缆的方式制造堆叠***;业务口堆叠环境时,也可以在逻辑堆叠端口视图下,通过shutdown interface命令关闭物理成员端口的方式来制造***。
终端屏幕上出现发现多主的告警: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 deviceS5700-28P-LI-AC’s Device status:Slot Sub Type Online Power Register Status Role
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
0 – S5700-28P-LI Present PowerOn Registered Normal Master
通过以上步骤,可以验证多主检测配置成功。
将堆叠线缆重新插上或通过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 deviceS5700-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
配置代理方式多主检测示例
配置需求
SwitchA、SwitchB和SwitchC组成堆叠系统,SwitchA、SwitchB和SwitchC通过接口Eth-Trunk1与SwitchD连接。
为防止堆叠***时,网络中存在两个配置冲突的堆叠系统,用户可以配置代理方式的多主检测功能,减少堆叠***给网络带来的影响。
配置思路
采用如下的思路配置:
1.在堆叠系统上,配置跨设备Eth-Trunk的代理方式多主检测功能。
2.在代理设备上,配置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 verboseCurrent 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 proxyMad 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。
如果当前堆叠系统上还没有配置业务,可以通过以下步骤验证多主检测功能是否配置成功:
1.在用户视图下,打开告警信息开关。
<HUAWEI> terminal monitor
<HUAWEI> terminal trapping
2.人为制造堆叠***:通过拔掉SwitchB与SwitchC、SwitchC与SwitchA之间堆叠线缆的方式制造堆叠***;业务口堆叠环境时,也可以在逻辑堆叠端口视图下,也可以通过shutdown interface命令关闭SwitchB与SwitchC、SwitchC与SwitchA之间物理成员端口的方式来制造***。
3.终端屏幕上出现发现多主的告警:MAD/4/MULTIACTIVEDETECTED(t):OID 1.3.6.1.4.1.2011.5.25.246.1.1 Multi-active scenario is detected.
4.查看堆叠成员交换机的数目是否减少。
通过display device命令,查看到成员交换机的数目由原来的三台变为两台(当前堆叠成员交换机以S5700-28P-LI-AC为例)。
<HUAWEI> display deviceS5700-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 deviceS5700-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
来源:丹鱼先生
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!