< Home

loop-detect detection vid

Function

The loop-detect detection vid command specifies a VLAN range to which a Dot1q termination sub-interface sends L2VPN loop detection packets.

The undo loop-detect detection vid command deletes the VLAN range to which the Dot1q termination sub-interface sends L2VPN loop detection packets.

By default, the Dot1q termination sub-interface does not send L2VPN loop detection packets.

Format

loop-detect detection vid low-vid [ to high-vid ]

undo loop-detect detection vid low-vid [ to high-vid ]

Parameters

Parameter Description Value

low-vid

Specifies the start VLAN ID in L2VPN loop detection packets sent by the Dot1q termination sub-interface.

The value is an integer in the range of 2 to 4094.

high-vid

Specifies the end VLAN ID in L2VPN loop detection packets sent by the Dot1q termination sub-interface.

The value is an integer in the range of 2 to 4094. The value of high-vid must be greater than that of low-vid.

Views

GE sub-interface view, XGE sub-interface view, MultiGE sub-interface view, 25GE sub-interface view, 40GE sub-interface view, 100GE sub-interface view, and Eth-Trunk sub-interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After L2VPN loop detection is enabled on an interface using the loop-detect enable command, the Dot1q termination sub-interface does not send L2VPN loop detection packets by default. You need to run the loop-detect detection vid command to configure the VLAN range to which the Dot1q termination sub-interface sends L2VPN loop detection packets. After the VLAN range is configured, the device sends L2VPN loop detection packets to the specified VLANs. If a loop is detected in a VLAN, the sub-interface will stop sending L2VPN loop detection packets to all these VLANs.

Prerequisites

L2VPN loop detection has been enabled on the interface using the loop-detect enable command.

Example

# Configure the Dot1q termination sub-interface GigabitEthernet0/0/1.1 to send L2VPN loop detection packets to VLANs 3 to 10.

<HUAWEI> system-view
[HUAWEI] vcmp role silent
[HUAWEI] interface gigabitethernet 
[HUAWEI-GigabitEthernet0/0/1] port link-type hybrid
[HUAWEI-GigabitEthernet0/0/1] quit
[HUAWEI] interface gigabitethernet 0/0/1.1
[HUAWEI-GigabitEthernet0/0/1.1] dot1q termination vid 2 to 10
[HUAWEI-GigabitEthernet0/0/1.1] l2 binding vsi company2
[HUAWEI-GigabitEthernet0/0/1.1] loop-detect enable
[HUAWEI-GigabitEthernet0/0/1.1] loop-detect detection vid 3 to 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >