Configuring Loopback Detection
Context
- After the loopback detection is enabled on an interface using the loopback command, the POS interface or link on the interface cannot function properly. When the loopback detection is not required, run the undo loopback command to disable it.
When testing some special functions, for example, diagnosing POS interface faults, enable loopback detection.
Table 15-2 describes the loopback detection classification.
Classification |
|
---|---|
Hardware loopback Connect a short-circuiting cable on the transceiver so that the device receives the signals sent by itself. |
|
Software loopback |
Remote loopback Remote loopback means that the local interface sends a packet from the peer interface back to the peer interface, rather than forwarding the packet to the destination address. |
Internal loopback Internal loopback means that a packet from an interface is sent back to this interface inside the system. |
Procedure
- Run the system-view command to enter the system view.
- Run the interface pos interface-number command to enter the POS interface view.
- Run the loopback { local | remote } command to enable the loopback detection for the POS interface and configure the detection mode.
By default, loopback detection is disabled on a POS interface.