167
Default
When the device detects a loop on a port, it generates a log but performs no action on the port.
Views
System view
Predefined user roles
network-admin
Parameters
shutdown: Enables the shutdown mode. If a loop is detected, the device generates a log and shuts
down the port. The device automatically sets the port to the forwarding state after you set the time
interval by using the
shutdown-interval command (see Fundamentals Command Reference).
Usage guidelines
To set the loop protection action on a per-port basis, use the loopback-detection action
command in interface view.
The global configuration applies to all ports. The per-port configuration applies to the individual ports.
The per-port configuration takes precedence over the global configuration.
Example
# Set the global loop protection action to shutdown.
<Sysname> system-view
[System] loopback-detection global action shutdown
Related commands
display loopback-detection
loopback-detection action
loopback-detection global enable
Use loopback-detection global enable to enable loop detection globally.
Use
undo loopback-detection global enable to disable loop detection globally.
Syntax
loopback-detection global enable vlan { vlan-id-list | all }
undo loopback-detection global enable vlan
{ vlan-id-list | all }
Default
Loop detection is globally disabled.
Views
System view
Predefined user roles
network-admin
Parameters
vlan-id-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a
VLAN ID or a range of VLAN IDs in the form of
vlan-id1 to vlan-id2. The value range for VLAN
IDs is 1 to 4094. The ID for
vlan-id2 must be equal to or greater than the ID for vlan-id1.
all: Specifies all existing VLANs.