(Optional) Configuring an Action to Perform After a Loopback Is Detected
Context
After loopback detection is enabled on an interface, the interface periodically sends detection packets and checks whether loopback packets are received. When a loopback is detected on an interface, the system sets the interface status to loopback, minimizing impact on the system and the entire network.
Procedure
- Configuring an action to perform after a loopback is detected in the system view
- Configuring an action to perform after a loopback is detected in the interface view
Follow-up Procedure
When the action is set to error-down, if a loopback occurs on the interface, the interface enters the Error-Down state. The device records the status of an interface as Error-Down when it detects that a fault occurs. The interface in Error-Down state cannot receive or send packets and the interface indicator is off. You can run the display error-down recovery command to check information about all interfaces in Error-Down state on the device.
Manual (after the interface enters the Error-Down state)
When there are few interfaces in Error-Down state, you can run the shutdown and undo shutdown commands in the interface view or run the restart command to restore the interface.
Auto (before the interface enters the Error-Down state)
If there are many interfaces in Error-Down state, the manual mode brings in heavy workload and the configuration of some interfaces may be ignored. To prevent this problem, run the error-down auto-recovery cause loopback-detect interval interval-value command in the system view to enable an interface in error-down state to go Up and set a recovery delay. You can run the display error-down recovery command to view automatic recovery information about the interface.
This mode is invalid for the interface that has entered the Error-Down state, and is only valid for the interface that enters the Error-Down state after the error-down auto-recovery cause loopback-detect interval interval-value command is used.