Enables the loop detection (LD) feature at the interface level, VLAN, or bridge domain (BD) level, and enters Protocol Loop Detection configuration mode.
This feature is disabled.
Interface subtype configuration mode (Ethernet or port-channel)
VLAN configuration mode
Bridge domain configuration mode
When configured at the interface level, this command applies to LD strict mode.
When configured at the VLAN level, this command is applied to all ports in the VLAN.
When configured at the bridge domain (BD) level this command is applied to all the attachment circuit (AC) logical interfaces (LIFs) and VXLAN tunnels under the BD.
Use the no form of this command to disable loop detection at the interface, VLAN, or BD level.
The following example enables loop detection on an Ethernet interface and enters Protocol Loop Detection configuration mode:
device# configure terminal device(config)# interface ethernet 2/6 device(conf-if-eth-2/6)# loop-detection device(config-loop-detect)#
The following example disables loop detection on an Ethernet interface.
device# configure terminal device(config)# interface ethernet 2/6 device(conf-if-eth-2/6)# no loop-detection
The following example enables loop detection on a port-channel interface and enters Protocol Loop Detection configuration mode.
device# configure terminal device(config)# interface port-channel 20 device(config-port-channel-20)# loop-detection device(config-loop-detect)#
The following example enables loop detection on a VLAN and enters Protocol Loop Detection configuration mode.
device# configure terminal device(config)# vlan 5 device(config-vlan-5)# loop-detection device(config-loop-detect)#
The following example enables loop detection on a BD and enters Protocol Loop Detection configuration mode.
device# configure terminal device(config)# bridge-domain 8 device(config-bridge-domain-8)# loop-detection device(config-loop-detect)#