< Home

loopback-detect packet vlan

Function

The loopback-detect packet vlan command configures loopback detection in a specified VLAN.

The undo loopback-detect packet vlan command cancels the configuration.

By default, loopback detection is disabled in a VLAN.

Format

loopback-detect packet vlan { vlan-id1 [ to vlan-id2 ] } &<1-8>

undo loopback-detect packet vlan [ { vlan-id1 [ to vlan-id2 ] } &<1-8> ]

Parameters

Parameter

Description

Value

vlan-id1 [ to vlan-id2 ]

Specifies the VLAN IDs of loopback detection packets.
  • vlan-id1 specifies the start VLAN ID.
  • to vlan-id2 specifies the end VLAN ID. The value of vlan-id2 must be greater than the value of vlan-id1.
  • The value of vlan-id1 is an integer that ranges from 1 to 4094.
  • The value of vlan-id2 is an integer that ranges from 1 to 4094.

Views

Ethernet interface view, GE interface view, XGE interface view, 40GE interface view, MultiGE interface view, 100GE interface view, 25GE interface view, port group view, Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, loopback detection is disabled in VLANs. After the loopback-detect packet vlan command is executed on an interface, the interface sends multiple copies of tagged loopback detection packets with the specified VLAN tags.

Prerequisites

The specified VLANs exist and the interface has been added to the VLANs in tagged mode.

Before running this command, check whether loopback detection is enabled. If not, run the loopback-detect enable (interface view) command to enable loopback detection.

Precautions

If you run the loopback-detect packet vlan command multiple times in the same interface view, multiple VLAN IDs are specified.

Each interface can send detection packets with a maximum of eight VLAN IDs.

Example

# Configure loopback detection in VLAN30 on the GE0/0/1 interface.

<HUAWEI> system-view
[HUAWEI] vlan 30
[HUAWEI-vlan30] quit
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type trunk
[HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 30
[HUAWEI-GigabitEthernet0/0/1] loopback-detect enable
[HUAWEI-GigabitEthernet0/0/1] loopback-detect packet vlan 30
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >