By default, loopback detection is disabled for an Access, Trunk, or Hybrid port.
With loopback detection enabled on a port (whose link type may be Access, Trunk, or Hybrid):
If an Access port has been detected with loopback, it will transit to the loopback detection control
state, where the incoming packets of the port are dropped and the outgoing packets of the port are
forwarded normally. A Trap message will be sent to the terminal and the corresponding MAC
address.
If a Trunk port or Hybrid port has been detected with loopback, a Trunk message will be sent to the
terminal. If the loopback detection control function is enabled on the port, the port will transit to the
loopback detection control state, where the incoming packets of the port are dropped and the
outgoing packets of the port are forwarded normally. In addition, a Trap message will be sent to the
terminal and the corresponding MAC address forwarding entries will be deleted.
Related commands: loopback-detection control enable.
Loopback detection on a given port is enabled only after the loopback-detection enable
command has been configured in both system view and interface view of the port.
Loopback detection on all ports will be disabled after the configuration of the undo
loopback-detection enable command in system view.
Examples
# Enable loopback detection on the interface Ethernet 2/0/1.
<Sysname> system-view
[Sysname] loopback-detection enable
[Sysname] interface ethernet 2/0/1
[Sysname-Ethernet2/0/1] loopback-detection enable
loopback-detection interval-time
Syntax
loopback-detection interval-time time
undo loopback-detection interval-time
View
System view
Default Level
2: System level
Parameters
time: Time interval for performing port loopback detection, in the range 5 to 300 (in seconds).
1-21