Example for Configuring DAD Through Stack Ports
Networking Requirements
As shown in Figure 1-36, SwitchA and SwitchB set up a stack. It is expected that stack split detection will be performed through a stack forwarding link.
Configuration Roadmap
Configure the DAD function on stack ports.
Procedure
- Configure the DAD function on stack ports.
<HUAWEI> system-view [~HUAWEI] interface stack-port 1/1 [~HUAWEI-Stack-Port1/1] dual-active detect mode direct [*HUAWEI-Stack-Port1/1] quit [*HUAWEI] interface stack-port 2/1 [*HUAWEI-Stack-Port2/1] dual-active detect mode direct [*HUAWEI-Stack-Port2/1] commit [~HUAWEI-Stack-Port2/1] return
- Verify the configuration.
# Check the DAD configuration.
<HUAWEI> display dual-active Stack domainID: 10 Dual-active status: Normal Dual-active detect mode: Direct Dual-active detect configuration of MEth: Disable Dual-active direct detect interfaces configured: Stack-Port1/1 up (Physical) up (Protocol) 10 (PeerDomain) Stack-Port2/1 up (Physical) up (Protocol) 10 (PeerDomain) Dual-active relay detect interfaces configured: -- Excluded ports(configurable): -- Excluded ports(can not be configured): 10GE1/1/0/1 10GE1/1/0/2 10GE1/1/0/3 10GE1/1/0/4 10GE2/1/0/1 10GE2/1/0/2 10GE2/1/0/3 10GE2/1/0/4
- Verify the DAD function.After the DAD function is configured:
- If a stack split occurs, the alarm "DAD_1.3.6.1.4.1.2011.5.25.246.1.1 hwDadConflictDetect" is generated.
- If the stack recovers from a split, the alarm "DAD_1.3.6.1.4.1.2011.5.25.246.1.2 hwDadConflictResume" is generated.
If no service is configured in the stack, simulate a stack split situation to check whether the DAD function is configured successfully.Do not trigger a stack split when services are running on the stack. Otherwise, services are affected.
Trigger a stack split by disabling all SIP ports used for stack connections on MPUs or removing all stack cables of SIP ports.
Run the display stack command to check whether the number of stack member switches reduces. If so, the stack has split.
- Run the display trapbuffer command to check whether there are DAD alarms.
<HUAWEI> display trapbuffer ...... Aug 15 2016 14:32:35 HUAWEI %%01DAD/1/hwDadConflictDetect(t):CID=0x807f0419-OID=1.3.6.1.4.1.2011.5.25.246.1.1;Dual-active scenario is detected.
The preceding operations verify that the DAD function has been configured successfully.
Restore the stack by enabling all SIP ports used for stack connections or reconnecting stack cables of SIP ports so that the stack can be set up again.