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.


S1720, S2700, S3700, S5700, S6700, S7700, and S9700 Series Switches Common Operation Guide

This document describes the CLI-based configurations of universal protocols and common features for Huawei switches on basic networks.

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 VLAN Mapping

Configuring 2 to 1 VLAN Mapping

When an interface configured with 2 to 1 VLAN mapping receives a double-tagged packet, it maps the outer tag of the packet to the S-VLAN tag and transparently transmits the inner tag as the data.

For example, configure the switch to map the outer VLAN ID of 8 and inner VLAN ID of 7 in packets entering GE1/0/1 to the outer VLAN ID of 200 and to retain the inner VLAN ID.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet1/0/1
[HUAWEI-GigabitEthernet1/0/1] port link-type trunk  //Configure the interface as a trunk interface. VLAN mapping can only be configured on a trunk or hybrid interface.
[HUAWEI-GigabitEthernet1/0/1] qinq vlan-translation enable  //On a fixed device, VLAN translation must be enabled first. This configuration is not required on a modular device.
[HUAWEI-GigabitEthernet1/0/1] port vlan-mapping vlan 8 inner-vlan 7 map-vlan 200
Only the S1720X, S1720X-E, S3700HI, S5700EI, S5700HI, S5710EI, S5710HI, S5720EI, S5720HI, S5730HI, S5730S-EI, S5730SI, S6700EI, S6720EI, S6720HI, S6720LI, S6720S-EI, S6720S-LI, S6720S-SI, and S6720SI of fixed devices support this configuration. The modular device supports this configuration.
Updated: 2018-09-03

Document ID: EDOC1000057410

Views: 122276

Downloads: 13174

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next