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

Configuration Guide - Ethernet Switching

S1720, S2700, S5700, and S6720 V200R012(C00 and C20)

This document describes the configuration of Ethernet services, including configuring MAC address table, link aggregation, VLANs, VLAN aggregation, MUX VLAN, VLAN termination, 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 the Switch to Add Double VLAN Tags to Untagged Packets

Configuring the Switch to Add Double VLAN Tags to Untagged Packets

Context

Generally, two switches are required to add double tags to packets. Configuring one switch to add double VLAN tags to untagged packets can simplify configuration. In addition, a Layer 2 interface can add double tags to untagged packets to differentiate services or users.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run vlan vlan-id

    An outer VLAN is created.

  3. Run quit

    Return to the system view.

  4. Run interface interface-type interface-number

    The interface view is displayed.

  5. Run port link-type hybrid

    The link type of the interface is set to hybrid.

    By default, the link type of an interface on the S1720GF, S1720GFR, S1720GW, S1720GW-E, S1720GWR, S1720GWR-E, S1720X, S1720X-E, S2720EI, S2750EI, S5700LI, S5700S-LI, S5710-X-LI, S5720I-SI, S5720LI, S5720S-LI, S5720S-SI, S5720SI, S5730S-EI, S5730SI, S6720LI, S6720S-LI, S6720S-SI, and S6720SI is negotiation-auto, and the link type of an interface on other models is negotiation-desirable.

  6. Run qinq vlan-translation enable

    VLAN translation is enabled on the interface.

  7. Run port hybrid untagged vlan vlan-id

    The interface is added to the outer VLAN.

  8. Run port vlan-stacking untagged stack-vlan vlan-id1 stack-inner-vlan vlan-id2

    The interface is configured to add double VLAN tags to untagged packets.

    NOTE:

    To enable an interface to add double VLAN tags to an untagged packet, you must set the link type of the interface to hybrid, and add the interface to the outer VLAN in untagged mode.

    If the PVID of the interface is not VLAN 1, restore the PVID to VLAN 1 before running the port vlan-stacking untagged command.

    The port vlan-stacking untagged command actually configures a VLAN assignment mode. On the S1720GF, S1720GFR, S1720GW, S1720GW-E, S1720GWR, S1720GWR-E, S1720X, S1720X-E, S2720EI, S2750EI, S5700LI, S5700S-LI, S5710-X-LI, S5720I-SI, S5720LI, S5720S-LI, S5720S-SI, S5720SI, S5730S-EI, S5730SI, S6720LI, S6720S-LI, S6720S-SI, and S6720SI, different VLAN assignment modes are in the following descending order of priority: interface-based VLAN assignment > voice VLAN include-untagged > MAC address-based VLAN assignment > IP subnet-based VLAN assignment > port vlan-stacking untagged > protocol-based VLAN assignment > interface-based VLAN assignment. On other models, different VLAN assignment modes are in the following order of priority: policy-based VLAN assignment > voice VLAN include-untagged > MAC address-based VLAN assignment > IP subnet-based VLAN assignment > protocol-based VLAN assignment > interface-based VLAN assignment.

Translation
Download
Updated: 2018-12-24

Document ID: EDOC1100038339

Views: 155955

Downloads: 674

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