Example for Configuring DAD in Relay Mode on Eth-Trunk
Networking Requirements
As shown in Figure 1-34, SwitchA and SwitchB set up a stack and connect to the upstream and downstream devices through Eth-Trunk. It is expected that stack split detection will be performed through Eth-Trunk.
Configuration Roadmap
Use SwitchC as a DAD relay agent. On the stack, configure DAD in relay mode on Eth-Trunk10 connected to SwitchC.
On SwitchC, enable the DAD relay function on Eth-Trunk10 so that DAD packets can be forwarded through Eth-Trunk10.
To enable DAD packets to be forwarded over Eth-Trunk member links, use a switch that supports the DAD relay function as the relay agent. All Huawei CloudEngine series switches support the DAD relay function. Huawei S series switches support this function since V200R003C00. On S series switches, DAD is also called multi-active detection (MAD).
Procedure
- On the stack, configure DAD in relay mode on Eth-Trunk10.
<HUAWEI> system-view [~HUAWEI] interface eth-trunk 10 [*HUAWEI-Eth-Trunk10] trunkport 10ge 1/1/0/5 [*HUAWEI-Eth-Trunk10] trunkport 10ge 2/1/0/5 [*HUAWEI-Eth-Trunk10] dual-active detect mode relay [*HUAWEI-Eth-Trunk10] commit [~HUAWEI-Eth-Trunk10] return
- On SwitchC, enable the DAD relay function on Eth-Trunk10.
<HUAWEI> system-view [~HUAWEI] sysname SwitchC [*HUAWEI] commit [~SwitchC] interface eth-trunk 10 [*SwitchC-Eth-Trunk10] trunkport 10ge 1/0/1 [*SwitchC-Eth-Trunk10] trunkport 10ge 1/0/2 [*SwitchC-Eth-Trunk10] dual-active proxy [*SwitchC-Eth-Trunk10] commit [~SwitchC-Eth-Trunk10] return
- Verify the configuration.
# Check the detailed DAD configuration on the stack.
<HUAWEI> display dual-active Stack domainID: 10 Dual-active status: Normal Dual-active detect mode: Relay Dual-active detect configuration of MEth: Disable Dual-active direct detect interfaces configured: -- Dual-active relay detect interfaces configured: Eth-Trunk10 10GE1/1/0/5 up (Physical) up (Protocol) 10 (PeerDomain) 10GE2/1/0/5 up (Physical) up (Protocol) 10 (PeerDomain) 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
# Check DAD relay information on SwitchC.
<SwitchC> display dual-active proxy Dual-active proxy interfaces configured: Eth-Trunk10 10GE1/0/1 up 10GE1/0/2 up
- 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 ports with stack cables connected or removing all stack cables.
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 ports used for stack connections or reconnecting stack cables so that the stack can be set up again.
Configuration Files
Stack configuration file
# interface 10GE1/1/0/5 eth-trunk 10 # interface 10GE2/1/0/5 eth-trunk 10 # interface Eth-Trunk10 dual-active detect mode relay # return
SwitchC configuration file
# sysname SwitchC # interface 10GE1/0/1 eth-trunk 10 # interface 10GE1/0/2 eth-trunk 10 # interface Eth-Trunk10 dual-active proxy # return