The loop-detect recovery-time command specifies a period for restoring an interface to normal state.
The undo loop-detect recovery-time command restores the default period for restoring an interface to normal state.
By default, an AC interface restores a blocked interface every 15 seconds.
Parameter | Description | Value |
---|---|---|
recovery-time recovery-time |
Specifies a period for an AC interface to restore a blocked interface. |
The value is an integer in the range of 15 to 255, in seconds. By default, the value is 15 seconds. |
Usage Scenario
After an AC interface enabled with L2VPN loop detection detects a loop, a period can be specified for the AC interface to restore a blocked interface. That is, if a blocked interface does not receive any L2VPN loop detection packet within the period specified by recovery-time, it will be restored to normal state.
If a device is on multiple loops, interfaces on the device may alternate between blocked and normal states during the initial detection stage. To prevent interface status flapping, you are advised to set recovery-time to a larger value.
Prerequisites
L2VPN loop detection has been enabled on the interface using the loop-detect enable command.
# Configure the Dot1q termination sub-interface GigabitEthernet0/0/1.1 to restore a blocked interface every 20 seconds.
<HUAWEI> system-view [HUAWEI] vcmp role silent [HUAWEI] interface gigabitethernet [HUAWEI-GigabitEthernet0/0/1] port link-type hybrid [HUAWEI-GigabitEthernet0/0/1] quit [HUAWEI] interface gigabitethernet 0/0/1.1 [HUAWEI-GigabitEthernet0/0/1.1] dot1q termination vid 1 to 10 [HUAWEI-GigabitEthernet0/0/1.1] l2 binding vsi company2 [HUAWEI-GigabitEthernet0/0/1.1] loop-detect enable [HUAWEI-GigabitEthernet0/0/1.1] loop-detect recovery-time 20