R0106-HP MSR Router Series Layer 2 - LAN Switching Command Reference(V7)
57
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 the time interval configured
by using the shutdown-interval command (see Fundamentals Command Reference).
Usage guidelines
To configure 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-list | all }
undo loopback-detection global enable vlan { vlan-list | all }
Default
The loop detection function is globally disabled.
Views
System view
Predefined user roles
network-admin
Parameters
vlan-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
value for vlan-id2 must be equal to or greater than the value for vlan-id1.
all: Specifies all existing VLANs.
Usage guidelines
To enable loop detection on a per-port basis, use the loopback-detection enable command in interface
view.