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.


Configuration Guide - Ethernet Switching

S1720, S2700, S5700, and S6720 V200R012(C00 and C20)

This document describes the configuration of Ethernet services, including configuring MAC address table, link aggregation, VLANs, VLAN aggregation, MUX VLAN, VLAN termination, Voice VLAN, VLAN mapping, QinQ, GVRP, VCMP, STP/RSTP/MSTP, VBST, SEP, RRPP, ERPS, LBDT, and Layer 2 protocol transparent transmission.
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:2 VLAN Mapping

Configuring 2:2 VLAN Mapping


QinQ is used to send double-tagged packets, which prevents the conflict between C-VLAN IDs and S-VLAN IDs and differentiates services and users. However, the interface will discard the packets because C-VLAN IDs are different from S-VLAN IDs. To ensure communication continuity, configure 2:2 VLAN mapping on the PE and replace double C-VLAN tags with double S-VLAN tags.


Only the S1720X, S1720X-E, S5720EI, S5720HI, S5730HI, S5730S-EI, S5730SI, S6720EI, S6720HI, S6720LI, S6720S-EI, S6720S-LI, S6720S-SI, and S6720SI support this configuration.


  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The Ethernet interface view is displayed.

  3. Run port link-type { hybrid | trunk }

    The port link-type is set.

  4. Run qinq vlan-translation enable

    VLAN translation is enabled on the interface.

  5. Run port vlan-mapping vlan vlan-id1 inner-vlan vlan-id2 map-vlan vlan-id3 map-inner-vlan vlan-id4 [ remark-8021p 8021p-value ]

    The outer and inner VLAN tags are replaced.

Updated: 2018-12-24

Document ID: EDOC1100038339

Views: 158661

Downloads: 685

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