1-18
View
System view, Ethernet port view
Default Level
2: System level
Parameters
None
Description
Use the loopback-detection enable command to enable loopback detection globally or on a specified
port.
Use the undo loopback-detection enable command to disable loopback detection globally or on a
specified port.
By default, loopback detection is disabled for an access, trunk, or hybrid port.
z When a loop is detected on an access port, the device puts the port in control mode. In this mode,
inbound packets on the port are all discarded, while outbound packets on the port are forwarded
normally. Meanwhile, the device sends trap messages to the terminal, and deletes the
corresponding MAC address forwarding entry.
z When a loop is detected on a trunk port or a hybrid port, the device sends a trap message to the
terminal. If loopback detection control is enabled on the port, the device places the port in control
mode and discards all inbound packets on the port while normally forwarding outbound packets on
it. Meanwhile, the device sends trap messages to the terminal, and deletes the corresponding MAC
address forwarding entry.
z 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.
z Loopback detection on all ports will be disabled after you configure the undo loopback-detection
enable command in system view.
Examples
# Enable loopback detection on GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] loopback-detection enable
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] loopback-detection enable
loopback-detection interval-time
Syntax
loopback-detection interval-time time