The loop-detect enable command enables L2VPN loop detection on an interface.
The undo loop-detect enable command disables L2VPN loop detection on the interface.
By default, L2VPN loop detection is disabled on the interface.
Usage Scenario
Redundant links are used on an Ethernet switching network to provide link backup and enhance network reliability. The use of redundant links, however, may produce loops, causing broadcast storms and unstable MAC address entries. This degrades communication quality or even interrupts communication. On a traditional Layer 2 network, the Spanning Tree Protocol (STP) is usually used to prevent loops.
STP needs to be deployed on CEs, having high dependency on the customer network. The complex and changing features of the customer network increase the maintenance difficulty of the carrier.
To prevent loops on an L2VPN network, you can run the loop-detect enable command on an AC interface of a PE to configure L2VPN loop detection on the AC interface. After this function is enabled, when detecting a loop on the L2VPN network, the PE will automatically block an interface on the loop, report an alarm, and eliminate the loop.
Prerequisites
The interface has been bound to a VSI instance using the l2 binding command on the interface.