< Home

loopback-detect recovery-time

Function

The loopback-detect recovery-time command sets the interface recovery time after a loopback is detected.

The undo loopback-detect recovery-time command restores the interface recovery time after a loopback is detected.

The default recovery time is three times the loopback detection interval.

Format

loopback-detect recovery-time recovery-time

undo loopback-detect recovery-time [ recovery-time ] (Ethernet interface view, GE interface view, XGE interface view, 40GE interface view, MultiGE interface view, 25GE interface view, 100GE interface view, Eth-Trunk interface view)

undo loopback-detect recovery-time (port group view)

Parameters

Parameter

Description

Value

recovery-time

Interface recovery time.

The value is an integer that ranges from 1 to 1000, in seconds.

Views

Ethernet interface view, GE interface view, XGE interface view, 40GE interface view, MultiGE interface view, 100GE interface view, 25GE interface view, port group view, Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenarios

After loopback detection is enabled on an interface, the device sends loopback detection packets at intervals through the interface, performs the preconfigured action on the interface after a loopback is detected, and starts timing. You can configure the interface recovery time. After the configured interface recovery time, the system will attempt to recover the interface. If the loopback is removed on the interface, the system recovers the interface from the error-down state.

Precautions

If you run the loopback-detect recovery-time command multiple times, only the latest configuration takes effect.

After a loop is eliminated, the interface recovery time is the same as the value of recovery-time or two times the value of recovery-time.

It is recommended that the interface recovery time be three times the packet sending interval. If the packet sending interval has been set to a small value, the interface recovery time should be at least 10 seconds longer than the packet sending interval.

If the action is set to shutdown, the shutdown interface cannot be automatically restored after a loopback is eliminated. You must run the shutdown and undo shutdown commands or run the restart command to enable the interface again. In addition to the preceding methods, the interface that is manually shut down or enters the Error-Down state due to other protocols will be automatically restored after the recovery time. However, the interface that is disabled only by LBDT cannot be restored after the recovery time.

The default recovery time is three times the loopback detection interval and is not restricted by the value ranging from 1 to 1000. If you configure the command manually, the recovery time can only be set to a value from 1 to 1000.

Example

# Sets the recovery time of the GE0/0/1 interface to 50 seconds.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] loopback-detect recovery-time 50
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >