The loop-detect detection pe-vid ce-vid command specifies a VLAN range to which a QinQ termination sub-interface sends L2VPN loop detection packets.
The undo loop-detect detection pe-vid ce-vid command deletes the VLAN range to which the QinQ termination sub-interface sends L2VPN loop detection packets.
By default, the QinQ termination sub-interface does not send L2VPN loop detection packets.
loop-detect detection pe-vid pe-vid ce-vid low-vid [ to high-vid ]
undo loop-detect detection pe-vid pe-vid ce-vid low-vid [ to high-vid ]
Parameter | Description | Value |
---|---|---|
pe-vid pe-vid |
Specifies the outer VLAN ID in L2VPN loop detection packets sent by the QinQ termination sub-interface. |
The value is an integer in the range of 2 to 4094. |
ce-vid low-vid |
Specifies the start inner VLAN ID in L2VPN loop detection packets sent by the QinQ termination sub-interface. |
The value is an integer in the range of 1 to 4094. |
high-vid |
Specifies the end inner VLAN ID in L2VPN loop detection packets sent by the QinQ termination sub-interface. |
The value is an integer in the range of 1 to 4094. The value of high-vid must be greater than that of low-vid. |
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
Usage Scenario
After you run the loop-detect enable command to enable L2VPN loop detection on an interface, the QinQ termination sub-interface does not send L2VPN loop detection packets by default. You need to run the loop-detect detection pe-vid ce-vid command to configure the VLAN range to which the QinQ 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.
# Configure the QinQ termination sub-interface GigabitEthernet0/0/1.1 to send L2VPN loop detection packets to VLANs 2 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] qinq termination pe-vid 300 ce-vid 2 to 20 [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 pe-vid 300 ce-vid 2 to 10