The loop-detect identifier command configures an authentication identifier for L2VPN loop detection on an interface.
The undo loop-detect identifier command deletes the configured authentication identifier for L2VPN loop detection on an interface.
By default, no authentication identifier for L2VPN loop detection is configured on an interface.
Usage Scenario
L2VPN loop detection detects whether a loop exists between the AC interfaces of two PEs on a VPLS or VLL network when a CE is dual-homed to the PEs. To prevent an AC interface from being unexpectedly blocked, run the loop-detect identifier command on the two PEs to configure the same authentication identifier. After a PE receives a detection packet, it checks whether the identifier in the packet is the same as its local one. The PE considers the packet valid only when the identifiers are the same.
Prerequisites
L2VPN loop detection has been enabled globally and on an interface.
Precautions
The loop-detect identifier command takes effect only for L2VPN loop detection.
If an authentication identifier for L2VPN loop detection is configured in both the interface view and global view, the configuration in the interface view is preferentially used. After an authentication identifier is configured on the local device, if the identifier in the detection packet received from a peer device is different from the local one, the local device discards the packet.<HUAWEI> system-view [~HUAWEI] loop-detection enable [~HUAWEI] interface GigabitEthernet0/1/0.1 [~HUAWEI-GigabitEthernet0/1/0.1] loop-detect enable [*HUAWEI-GigabitEthernet0/1/0.1] loop-detect identifier abc