R3102-R3103-HP 6600/HSR6600 Routers Interface Configuration Guide

13
To enable a hybrid or trunk port to take the administratively specified protective action, you must use
the loopback-detection control enable command on the port.
When you change the link type of an Ethernet interface by using the port link-type command, the
switch removes the protective action configured on the interface. For more information about the
port link-type command, see Layer 2—LAN Switching Command Reference.
Configuration procedure
To configure loopback detection:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enable global loopback
detection.
loopback-detection enable
By default, global loopback detection is
disabled.
3. Enable multi-port loopback
detection.
loopback-detection
multi-port-mode enable
Optional.
By default, multi-port loopback detection
is disabled, and the router can detect
only single-port loops.
4. Set the loopback detection
interval.
loopback-detection
interval-time time
Optional.
The default setting is 30 seconds.
5. Enter Ethernet interface view
or port group view.
Enter Ethernet interface
view:
interface interface-type
interface-number
Enter port group view:
port-group manual
port-group-name
Use one of the commands.
To configure loopback detection on one
interface, enter Ethernet interface view.
To configure loopback detection on a
group of Ethernet interfaces, enter port
group view.
6. Enable loopback detection on
the interface.
loopback-detection enable
By default, loopback detection is
disabled.
7. Enable loopback detection
control on a trunk port or a
hybrid port.
loopback-detection control
enable
Optional.
By default, loopback detection control is
disabled.
8. Enable loopback detection in
all VLANs on the trunk or
hybrid port.
loopback-detection per-vlan
enable
Optional.
By default, a trunk or hybrid port
performs loopback detection only in its
PVID.
9. Set the protective action to
take on the interface when a
loop is detected.
loopback-detection action
{ no-learning | semi-block |
shutdown }
Optional.
By default, when a loop is detected on an
interface, the interface does not forward
any data packet.
With the shutdown keyword specified,
the looped port is automatically shut
down and its physical state changes to
Loop down. After the loop is removed,
use the undo shutdown command on the
port to recover its forwarding capability.