loopback-detection global action

Use loopback-detection global action to set the global loop protection action.

Use undo loopback-detection global action to restore the default.

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. 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