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

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

Usage guidelines

To enable loop detection on a per-port basis, use the loopback-detection enable command in interface view.

The loop protection action on a port can be triggered even if loop detection is disabled on the port when the following requirements are met:

Example

# Globally enable loop detection for VLAN 10 through VLAN 20.

<Sysname> system-view
[System] loopback-detection global enable vlan 10 to 20

Related commands

display loopback-detection

loopback-detection enable