No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Common Operation Guide

CloudEngine 12800, 12800E, 8800, 7800, 6800, and 5800 Series Switches

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring VLAN-based Selective QinQ

Configuring VLAN-based Selective QinQ

Selective QinQ, also called VLAN stacking, adds different outer tags to frames with inner VLAN tags or frames matching traffic classification rules. It provides accurate VLAN assignment.

# On 10GE1/0/1, configure selective QinQ and add VLAN 100 in the outer tag to the tagged frame with the VLAN ID range of 10 to 13.
<HUAWEI> 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
  • The CE12800E that has the ED-E/EG-E/EGA-E series cards installed and CE6880EI do not support VLAN-based selective QinQ.

  • Selective QinQ must be enabled on hybrid or trunk interfaces and takes effect only in the inbound direction.

  • The outer VLAN ID must exist and the interface must be added to the outer VLAN in untagged mode.

  • If the port vlan-stacking command has been executed at least three times with specified VLAN ranges 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 31 to 60 stack-vlan 100, port vlan-stacking vlan 20 to 30 stack-vlan 100, and port vlan-stacking vlan 61 to 70 stack-vlan 100 commands are used, VLAN ranges 20 to 60 and 20 to 70 are combined twice. The configuration of each command needs to be committed.

Updated: 2018-10-08

Document ID: EDOC1000102369

Views: 237815

Downloads: 3272

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next