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.


S12700 V200R010C00 Configuration Guide - Ethernet Switching

This document describes the configuration of Ethernet services, including configuring link aggregation, VLANs, Voice VLAN, VLAN mapping, QinQ, GVRP, MAC table, STP/RSTP/MSTP, SEP, and so on.
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 2-to-1 QinQ Mapping

Configuring 2-to-1 QinQ Mapping


2-to-1 QinQ mapping allows a sub-interface to map an outer tag in a received double-tagged packet to a specified tag and retain the inner VLAN tag.


  1. Run:


    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The interface view is displayed.

  3. Run:

    port link-type { hybrid | trunk }

    The port link-type is set.

  4. Run:


    Return to the system view.

  5. Run:

    interface interface-type interface-number.subinterface-number

    The view of the CE-side Ethernet or Eth-Trunk sub-interface of the PE is displayed.

  6. Run:

    qinq mapping pe-vid vlan-id1 ce-vid vlan-id2 [ to vlan-id3 ] map-vlan vid vlan-id4

    The sub-interface is configured to map the outer tag of double-tagged packets to a specified tag.

    The original outer tag of double-tagged packets specified in the command must be different from outer tags specified on all the other sub-interfaces.

    • QinQ mapping cannot be used with stacking, QinQ termination, and Dot1q termination commands on the same sub-interface.

    • If the PW-side interface is a Layer 3 interface switched by the undo portswitch command, the AC-side interface cannot be a Layer 3 interface or subinterface belonging to a Layer 3 interface; otherwise, traffic forwarding is abnormal.

Updated: 2019-08-21

Document ID: EDOC1000142081

Views: 260610

Downloads: 412

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Previous Next