Got it

Configuring the Device to Add Double Tags to Untagged Packet

Latest reply: Jun 14, 2016 01:11:49 2244 1 0 0 0

Hi there,

In this post, we are going to introduce you the way to add double tags to a untagged packet.

# 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.


The S5700SI, S5700EI, ES0D0G24SA00 and ES0D0G24CA00 cards of the S7700, and EH1D2G24SSA0 and EH1D2S24CSA0 cards of the S9700 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.

That's all for this post.

If you have any further questions, please let us know.

Also, you can find more operations at Operation Guide For S Switch

  • x
  • convention:

Created Jun 14, 2016 01:11:49

Thank you.
View more
  • x
  • convention:


You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits


Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Please bind your phone number to obtain invitation bonus.