The dot1q termination vid command enables VLAN tag termination for single-tagged packets.
The undo dot1q termination vid command disables VLAN tag termination for single-tagged packets.
By default, VLAN tag termination for single-tagged packets is disabled on a sub-interface.
Parameter | Description | Value |
---|---|---|
to high-pe-vid |
Specifies the end VLAN ID in user packets. The high-pe-vid value must be greater than the low-pe-vid value. |
The value is an integer ranging from 1 to 4094. |
vlan-group group-id |
Specifies the ID of a VLAN group to which the sub-interface for Dot1q VLAN tag termination is bound. Statistics about Dot1q packets are collected based on VLAN groups. To collect statistics about Dot1q packets, specify vlan-group in the dot1q termination vid command. You can apply QoS policies for user groups by specifying the VLAN group ID. |
The value is an integer ranging from 1 to 16. |
vid low-pe-vid |
Specifies the start VLAN ID in user packets. |
The value is an integer ranging from 1 to 4094. |
100ge sub-interface view, 10GE sub-interface view, 200GE sub-interface view, 25GE sub-interface view, 400GE sub-interface view, 40GE sub-interface view, 50GE sub-interface view, Eth-Trunk sub-interface view, GE sub-interface view, Global VE sub-interface view, PW-VE sub-interface view, VE sub-interface view
Usage Scenario
Prerequisites
The encapsulation type of the sub-interface has been configured as Dot1q termination using the encapsulation dot1q-termination command in the sub-interface view.
The encapsulation dot1q-termination command is replaced by the control-vid dot1q-termination command.Configuration Impact
After the
qinq termination pe-vid ce-vid command is used, the VLAN tag termination sub-interface processes packets in the following ways:Precautions
Each time after you run the dot1q termination vid command, you are advised to run the commit command. If you do not run the commit command, traffic may be interrupted.
This command is exclusive with the mpls te command under sub-interface view. This command is exclusive with the mpls ldp command under sub-interface view.<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet0/1/1.1 [*HUAWEI-GigabitEthernet0/1/1.1] encapsulation dot1q-termination [*HUAWEI-GigabitEthernet0/1/1.1] vlan-group 1 [*HUAWEI-GigabitEthernet0/1/1.1-vlangroup1] quit [*HUAWEI-GigabitEthernet0/1/1.1] dot1q termination vid 100 to 200 vlan-group 1
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet0/1/1.1 [*HUAWEI-GigabitEthernet0/1/1.1] encapsulation dot1q-termination [*HUAWEI-GigabitEthernet0/1/1.1] vlan-group 1 [*HUAWEI-GigabitEthernet0/1/1.1-vlangroup1] quit [*HUAWEI-GigabitEthernet0/1/1.1] dot1q termination vid 100 to 200 vlan-group 1