The encapsulation qinq vid command enables a Layer 2 sub-interface to receive packets with a specified QinQ tag.
The undo encapsulation qinq command disables a Layer 2 sub-interface from receiving packets with a specified QinQ tag.
By default, no encapsulation type is specified on an EVC Layer 2 sub-interface.
Parameter | Description | Value |
---|---|---|
pe-vid |
Specifies an outer VLAN ID for double-tagged packets to be received by an EVC Layer 2 sub-interface. |
The value is an integer ranging from 1 to 4094. |
low-ce-vid |
Specifies a range of inner VLAN IDs for double-tagged packets to be received by an EVC Layer 2 sub-interface. The cevid1 specifies the start VLAN ID in an inner tag. |
The value is an integer ranging from 1 to 4094. |
high-ce-vid |
Specifies a range of inner VLAN IDs for double-tagged packets to be received by an EVC Layer 2 sub-interface. The cevid2 specifies the end VLAN ID in an inner tag. cevid2 must be greater than or equal to cevid1. cevid2 and cevid1 define a range of VLAN IDs in an inner VLAN tag. If you do not specify to cevid2, cevid1 specifies the single VLAN ID in the inner VLAN tag carried in packets. If the cevid1 to cevid2 parameters are run more than once, all configurations take effect. |
The value is an integer ranging from 1 to 4094. |
default |
Enables default encapsulation to allow an EVC Layer 2 sub-interface to receive untagged, single-tagged, and double-tagged packets and packets each with more than two tags. |
- |
Usage Scenario
On a Layer 2 Ethernet network, packets may not carry VLAN Tags or carry one or two VLAN Tags. To enable different packets to be forwarded through different EVC Layer 2 sub-interfaces, run this command to configure different encapsulation modes for Layer 2 sub-interfaces of the EVC Layer 2 sub-interface. When two VLAN TAGs are carried, the packets can enter this interface if the preceding configurations are met.
Precautions
Only a single encapsulation type can be specified on each EVC Layer 2 sub-interface. Before changing an encapsulation type, run the undo encapsulation command to delete the existing encapsulation type and run the encapsulation to specify an encapsulation type.
In a data transparent transmission scenario, dot1q or QinQ encapsulation is configured on an EVC Layer 2 sub-interface, and a range of VLAN IDs is specified for VLAN tags carried in packets. In this situation, traffic may be returned or dropped if the undo encapsulation dot1q vid low-pe-vid or undo encapsulation qinq vid pe-vid ce-vid low-ce-vid command is run to delete the existing encapsulation type with the smallest VLAN ID specified. To prevent problems, perform the following operations: 1.Run the shutdown command on the EVC Layer 2 sub-interface. 2.Run the commit command to commit configuration. 3.Run the undo encapsulation qinq vid command to delete the minimum VLAN. 4.Run the undo shutdown command on the EVC Layer 2 sub-interface. 5.Run the commit command to commit configuration.