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.
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)
Parameter |
Description |
Value |
---|---|---|
recovery-time |
Interface recovery time. |
The value is an integer that ranges from 1 to 1000, in seconds. |
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
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.