How can I configure selective QinQ on CE switches

21

Selective QinQ is also called VLAN stacking. It adds different outer tags to the frames received on a Layer 2 QinQ interface according to different inner tags or the frames matching traffic classification rules. This function enables refined management of users and services. # Configure selective QinQ on 10GE1/0/1 and add VLAN 100 in the outer tag to the tagged frames with the VLAN range of 10 to 13. 
system-view
[~HUAWEI] vlan batch 10 to 13 100
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] port link-type hybrid
[*HUAWEI-10GE1/0/1] port hybrid untagged vlan 100 [*HUAWEI-10GE1/0/1] port vlan-stacking vlan 10 to 13 stack-vlan 100
[*HUAWEI-10GE1/0/1] commit
Description: - Selective QinQ can be enabled only on hybrid and trunk interfaces and applied to incoming packets. - The outer VLAN ID must exist and the interface must be added to the stack VLAN in untagged mode. - If the port vlan-stacking command with VLAN ranges specified has been executed for three or more times and VLAN ranges are combined twice at least, the configuration of each command must be committed. Otherwise, packets may be lost. For example, when port vlan-stacking vlan 30 to 60 stack-vlan 100, port vlan-stacking vlan 20 to 30 stack-vlan 100, and port vlan-stacking vlan 60 to 70 stack-vlan 100 commands are executed, VLAN ranges 20 to 60 and 20 to 70 are combined twice. Therefore, commit each command configuration.

Other related questions:
Whether CE switches support selective QinQ
All models of CE switches support selective QinQ since V100R003C00.

What are QinQ and selective QinQ
Switch QinQ is also called port QinQ or Dot1q-tunnel. The port adds the default VLAN tag to packets no matter whether the packets carry VLAN tags. Selective QinQ indicates VLAN stacking. Different from port QinQ, selective QinQ encapsulates outer VLAN tags according to different VLANs.

How Can I Select a Configuration File?
ere are two methods for system configuration: You can import a configuration file or manually enter configuration information. ? Importing a configuration file Subsequent configuration information will be automatically inputted as required based on the configuration file, simplifying the configuration process and reducing configuration time. This method is commonly used when the storage system is deployed for the second time and the configuration file of the first deployment must be used. ? Manually entering configuration information All configuration information must be manually entered. This method is used for initial deployment.

Configure QinQ
QinQ (802.1Q-in-802.1Q) expands VLAN space by adding an additional 802.1Q tag to 802.1Q tag packets. It allows services in a private network to be transparently transmitted over a public network. A packet transmitted on the backbone network carries two 802.1Q tags: a public VLAN tag and a private VLAN tag. QinQ implementation falls into two types: basic QinQ and flexible QinQ. Basic QinQ is implemented based on an interface. After this feature is configured on an interface, the interface will attach a default local tag to packets it receives, regardless of whether the packets carry a VLAN tag. For details about the configuration procedure, choose Configuration > CLI-based Configuration > Ethernet Switching Configuration Guide > QinQ Configuration > Configuration Examples > Example for Confituring Basic QinQ through the URL: Product Documentation. Flexible QinQ is implemented based on a combination of interfaces and VLANs. After receiving packets, an interface may forward packets based on one tag or two taggs. For details about the configuration procedure, choose Configuration > CLI-based Configuration > Ethernet Switching Configuration Guide > QinQ Configuration > Configuration Examples > Example for Confituring Selective QinQ through the URL: Product Documentation.

Can I rapidly delete all QinQ configurations of an interface
On a switch running V100R006 or a later version, the undo port vlan-stacking all command can be used to quickly delete all selective QinQ configurations from an interface.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top