1-29
Table 1-11 Actions taken upon detection of a loop condition
Actions
Port type
No protective action configured A protective action configured
Access port
Put the port in controlled mode. The
port discards all incoming packets,
but still forwards outgoing traffic.
Create traps.
Delete all MAC address entries of
the port.
Perform the configured protective
action.
Create traps and log messages.
Delete all MAC address entries of the
port.
Hybrid or trunk port
Create traps.
If loopback detection control is
enabled, set the port in controlled
mode. The port discards all
incoming packets, but still forwards
outgoing packets.
Delete all MAC address entries of
the port.
Create traps and log messages.
If loopback detection control is
enabled, take the configured protective
action on the port.
Delete all MAC address entries of the
port.
Related commands: loopback-detection control enable.
Examples
# Enable loopback detection on GigabitEthernet 2/0/1.
<Sysname> system-view
[Sysname] loopback-detection enable
[Sysname] interface gigabitEthernet 2/0/1
[Sysname-GigabitEthernet2/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: Sets the loopback detection interval in seconds, in the range 5 to 300.
Description
Use the loopback-detection interval-time command to set the loopback detection interval.
Use the undo loopback-detection interval-time command to restore the default loopback detection
interval.
The default loopback detection interval is 30 seconds.
Related commands: display loopback-detection.