网工面试必读 华为交换机堆叠故障检测方法
IE-LAB网络实验室
2020年04月17日 21:16

双主检测DAD(Dual-Active Detect)是一种检测和处理堆叠分裂的协议,可以实现堆叠分裂的检测、冲突处理和故障恢复,降低堆叠分裂对业务的影响。DAD是华为私有的一种协议。双主检测方式有两种方式:直连检测方式以及relay代理检测方式。

1.直连检测方式:成员交换机使用专用的直连链路进行双主检测。

 

 

<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

 

2.relay 代理检测方式:成员交换机之间使用relay 代理功能的交换机进行双主检测。

 

 

<HUAWEI> system-view

[HUAWEI] interface eth-trunk 1

[HUAWEI-Eth-Trunk1] mad detect mode relay

[HUAWEI] interface gigabitethernet 0/0/5

[HUAWEI-GigabitEthernet0/0/5] eth-trunk 1

[HUAWEI] interface gigabitethernet 1/0/5

[HUAWEI-GigabitEthernet1/0/5] eth-trunk 1

[HUAWEI] interface gigabitethernet 2/0/5

[HUAWEI-GigabitEthernet2/0/5] eth-trunk 1