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 Basic QinQ

Configuring Basic QinQ

Basic QinQ is also called common QinQ and is implemented based on interfaces. When an interface enabled with basic QinQ receives a packet, the device tags the packets with the default VLAN ID of the interface.
  • If the received packet carries one VLAN tag, the packet then has double tags.
  • If the received packet does not carry any VLAN tag, the packet then carries the default VLAN tag of an interface.
# Create VLAN 10 in the outer tag.
<HUAWEI> system-view
[HUAWEI] vlan 10
[HUAWEI-vlan10] quit
# Configure downlink interface GE1/0/1.
[HUAWEI] interface gigabitethernet1/0/1
[HUAWEI-GigabitEthernet1/0/1] port link-type dot1q-tunnel   //Set the link type to Dot1q-tunnel.
[HUAWEI-GigabitEthernet1/0/1] port default vlan 10   //GE1/0/1 tags all received data packets with VLAN 10.
# Configure uplink interface GE1/0/2 to transparently transmit packets with VLAN 10 in the outer tag.
[HUAWEI] interface gigabitethernet1/0/2
[HUAWEI-GigabitEthernet1/0/2] port link-type trunk
[HUAWEI-GigabitEthernet1/0/2] port trunk allow-pass vlan 10
Updated: 2018-09-03

Document ID: EDOC1000057410

Views: 123424

Downloads: 13192

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next