R3102-R3103-HP 6600/HSR6600 Routers Interface Command Reference
40
Table 12 Actions to take upon detection of a loop condition
Port type
Actions
No
p
rotective action is confi
g
ured
A
p
rotective action is confi
g
ured
Access port
• Place the interface in controlled mode. The
interface discards all incoming packets, but
still forwards outgoing traffic.
• Generate traps.
• Delete all MAC address entries of the
interface.
• Perform the configured protective
action.
• Generate traps and log messages.
• Delete all MAC address entries of the
interface.
Hybrid or trunk
port
• Generate traps.
• If loopback detection control is enabled, set
the interface to controlled mode. The
interface discards all incoming packets, but
still forwards outgoing packets.
• Delete all MAC address entries of the
interface.
• Generate traps and log messages.
• If loopback detection control is
enabled, take the configured
protective action on the interface.
• Delete all MAC address entries of the
interface.
Examples
# Enable loopback detection on GigabitEthernet 4/0/1.
<Sysname> system-view
[Sysname] loopback-detection enable
[Sysname] interface gigabitethernet 4/0/1
[Sysname-GigabitEthernet4/0/1] loopback-detection enable
Related commands
loopback-detection control enable
loopback-detection interval-time
Use loopback-detection interval-time to set the loopback detection interval.
Use undo loopback-detection interval-time to restore the default loopback detection interval.
Syntax
loopback-detection interval-time time
undo loopback-detection interval-time
Default
The loopback detection interval is 30 seconds.
Views
System view
Default command level
2: System level
Parameters
time: Specifies the loopback detection interval, in the range of 5 to 300 seconds.










