To do...
Enter
Ethernet
interface
view or port
group view
Enable loopback detection on the
interface
Enable loopback detection control
Enable loopback detection in all
VLANs on the trunk or hybrid
interface
Set the protective action to take on
the interface when a loop is
detected
NOTE:
•
To use single-port loopback detection on an Ethernet interface, you must enable the function both
globally and on the interface.
To disable loopback detection on all interfaces, run the undo loopback-detection enable command in
•
system view.
•
To enable a hybrid or trunk interface to take the administratively specified protective action, you must
perform the loopback-detection control enable command on the interface.
When you change the link type of an Ethernet interface with 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 the
Enabling multi-port loopback detection
When an interface receives packets sent out another interface on the same switch, a loop occurs
between the two interfaces. Such a loop is called a "multi-port loop". As shown in
Use the command...
Enter Ethernet
interface interface-type
interface view
interface-number
Enter port group
port-group manual
view
port-group-name
loopback-detection enable
loopback-detection control enable
loopback-detection per-vlan
enable
loopback-detection action
{ shutdown | semi-block |
no-learning }
Layer 2—LAN Switching Command Reference
.
14
Remarks
Use either command.
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.
Required
Disabled by default.
Optional
Disabled by default.
Optional
By default, a trunk or hybrid
interface performs loopback
detection only in its default VLAN.
Optional
By default, a looped interface
discards all incoming packets but
still forwards outgoing packets; the
system generates traps and deletes
all MAC address entries of the
looped interface.
With the shutdown keyword used,
the switch shuts down looped
Ethernet interfaces, and sets their
physical state to Loop down. When
a looped interface recovers, you
must use the undo shutdown
command to restore its forwarding
capability.
Figure
5, if Port 1