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

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

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 the Device to Add Double Tags to Untagged Packets

Configuring the Device to Add Double Tags to Untagged Packets

# Configure GE0/0/1 to add double tags to received untagged packets.
<HUAWEI> system-view
[HUAWEI] vlan 10   //Create VLAN 10 in the outer tag.
[HUAWEI-vlan10] quit
[HUAWEI] interface gigabitethernet0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type hybrid
[HUAWEI-GigabitEthernet0/0/1] qinq vlan-translation enable   //VLAN translation must be enabled on the fixed device. This command does not need to be used on the modular device.
[HUAWEI-GigabitEthernet0/0/1] port hybrid untagged vlan 10   //The interface joins VLAN 10 in untagged mode.
[HUAWEI-GigabitEthernet0/0/1] port vlan-stacking untagged stack-vlan 10 stack-inner-vlan 5   //The interface tags untagged packets with inner VLAN 5 and outer VLAN 10.
NOTE:
  • The S5700SI, S5700EI, ES0D0G24SA00, ES0D0G24CA00, EH1D2G24SSA0, and EH1D2S24CSA0 cards do not support this configuration.
  • When you configure the device to add double tags to untagged packets, run the port link-type hybrid command to change the link type of the interface to hybrid if the following message is displayed:
    [HUAWEI-GigabitEthernet0/0/1] port vlan-stacking untagged stack-vlan 10 stack-inner-vlan 5
    Error: The port is not a Trunk or Hybrid port.
  • When you configure the fixed device to add double tags to untagged packets, run the qinq vlan-translation enable command to enable VLAN translation if the following message is displayed:
    [HUAWEI-GigabitEthernet0/0/1] port vlan-stacking untagged stack-vlan 10 stack-inner-vlan 5
    Error: Please configure qinq vlan-translation enable on this port first.
  • When you configure the device to add double tags to untagged packets, run the undo port hybrid pvid vlan command to restore the PVID of the interface to be 1 if the following message is displayed:
    [HUAWEI-GigabitEthernet0/0/1] port vlan-stacking untagged stack-vlan 10 stack-inner-vlan 5
    Error: This port has been configured with default VLAN or PVID, please undo it first.
Translation
Download
Updated: 2018-09-03

Document ID: EDOC1000057410

Views: 89704

Downloads: 12196

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