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 VLAN list, in the format of { vlan-id [ to vlan-id ] }&<1-10>, where vlan-id represents the VLAN ID in the range of 1 to 4094, and &<1-10> indicates that you can specify up to 10 vlan-id [ to vlan-id ] parameters.

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 global configuration applies to all ports in the specified VLAN. The per-port configuration applies to the individual port only when the port belongs to the specified VLAN. The per-port configuration takes precedence over the global configuration.

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