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

CloudEngine 8800, 7800, 6800, and 5800 V200R003C00

This document describes the configuration of Ethernet services, including configuring MAC address table, link aggregation, VLANs, MUX VLAN, 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 Basic QinQ

Configuring Basic QinQ


Basic QinQ enables the device to add a public tag to incoming packets so that user packets can be forwarded on the public network. To separate private networks from public networks and conserve VLAN resources, configure double 802.1Q tags on QinQ interfaces of the device. Inner VLAN tags are used on internal networks and outer VLAN tags are used on external networks. QinQ expands VLAN space to 4094x4094 VLANs and allows packets on different private networks with the same VLAN IDs to be transparently transmitted.


  1. Run system-view

    The system view is displayed.

  2. Run vlan vlan-id

    A VLAN used on the public network is created.

  3. Run quit

    Exit from the VLAN view.

  4. Run interface interface-type interface-number

    The interface view is displayed.

    The interface can be a physical interface or an Eth-Trunk interface.

  5. Run port link-type dot1q-tunnel

    The link type of the interface is set to Dot1q-tunnel.

    By default, the link type of an interface is access. Dot1q-tunnel interfaces do not support Layer 2 multicast.

  6. Run port default vlan vlan-id

    The VLAN ID of the public VLAN tag, that is, the default VLAN of the interface, is configured.

    By default, VLAN 1 is the default VLAN of all interfaces.

  7. Run commit

    The configuration is committed.

Verifying the Configuration

  • Run the display current-configuration interface interface-type interface-number command to check the QinQ configuration on the interface.
Updated: 2019-05-08

Document ID: EDOC1100004351

Views: 125708

Downloads: 295

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