R211x-HP Flexfabric 11900 Layer 2 - LAN Switching Command Reference

162
Syntax
loopback-detection global action shutdown
undo loopback-detection global action
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
mdc-admin
Parameters
shutdown: Enables the shutdown mode. If a loop is detected, the device generates a log and shuts down
the port.
Usage guidelines
Use this command to configure the loop protection action globally.
To configure the loop protection action on specific ports, 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