loopback-detection global action

Use loopback-detection global action to configure 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

Parameters

shutdown: Enables the shutdown mode. If a loop is detected, the device generates a log and shuts down the port. The device automatically brings up the port after the detection timer expires. You can use the shutdown-interval command to set the detection timer. For more information, 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