loopback-detection enable

Use loopback-detection enable to enable loop detection on a per-port basis.

Use undo loopback-detection enable to disable loop detection on a port.

Syntax

loopback-detection enable vlan { vlan-id-list | all }

undo loopback-detection enable vlan { vlan-id-list | all }

Default

Loop detection is disabled on ports.

Views

Layer 2 Ethernet interface view

Layer 2 aggregate interface 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 no less than the ID for vlan-id1.

all: Specifies all existing VLANs.

Usage guidelines

To enable loop detection globally, use the loopback-detection global enable command.

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

# Enable loop detection on Ten-GigabitEthernet 1/0/1 for VLAN 10 through VLAN 20.

<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[System-Ten-GigabitEthernet1/0/1] loopback-detection enable vlan 10 to 20

Related commands

display loopback-detection

loopback-detection global enable