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 VLAN ID-based Selective QinQ

Configuring VLAN ID-based Selective QinQ

Context

VLAN ID-based selective QinQ allows an interface to add an outer VLAN tag to packets based on VLAN IDs of the packets.

NOTE:
  • Selective QinQ is recommended to be enabled on a hybrid interface and VLAN translation must be enabled using the qinq vlan-translation enable command. Selective QinQ can take effect on the interface only in the inbound direction.
  • When selective QinQ is configured on an interface, the interface can add only one outer VLAN tag to a received frame with an inner VLAN tag, and the outer VLAN ID must exist. If the outer VLAN ID does not exist, the services where selective QinQ is configured are unavailable.
  • When an interface configured with VLAN stacking needs to remove the outer tag from outgoing frames, the interface must join the VLAN specified by stack-vlan in untagged mode. If the outer VLAN does not need to be removed, the interface must join the VLAN specified by stack-vlan in tagged mode.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

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

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

  4. Run port hybrid untagged vlan vlan-id

    The interface is added to the VLAN in untagged mode.

    The specified VLAN ID must exist on the switch. You do not need to create a VLAN specified by the original VLAN tag of a received packet.

  5. Run qinq vlan-translation enable

    VLAN translation is enabled on the interface.

  6. Configure selective QinQ only or configure selective QinQ and VLAN mapping.

    • Configure only selective QinQ.

      Run the port vlan-stacking vlan vlan-id1 [ to vlan-id2 ] stack-vlan vlan-id3 [ remark-8021p 8021p-value1 ] command to configure only selective QinQ.

      By default, the priority in the outer VLAN tag is the same as that in the inner VLAN tag.

    • Configure selective QinQ and VLAN mapping.

      Run the port vlan-stacking vlan vlan-id1 stack-vlan vlan-id2 [ remark-8021p 8021p-value1 ] map-vlan vlan-id4 [ remark-inner-8021p 8021p-value2 ] command to configure selective QinQ and VLAN mapping.

      By default, the priority in the outer VLAN tag is the same as that in the inner VLAN tag.

      NOTE:

      When map-vlan vlan-id4 is configured, 1:1 VLAN mapping is supported, but N:1 VLAN mapping is not supported.

  7. Run quit

    Exit from the interface view.

  8. Run interface interface-type interface-number

    The view of another interface is displayed.

    This interface is the outbound interface for QinQ packets, different from the interface specified in step 2.

  9. Run port link-type trunk

    The link type of the interface is set to trunk.

  10. Run port trunk allow-pass vlan vlan-id3

    The outer VLAN ID (stack-vlan) added to the original tagged packet is set.

Verifying the Configuration

  • Run the display current-configuration interface interface-type interface-number command to check the selective QinQ configuration on the interface.

Configuration Tips

Deleting the QinQ configuration

Use either of the following methods to delete the selective QinQ configuration on an interface:
  • Run the undo port vlan-stacking vlan vlan-id1 [ to vlan-id2 ] [ stack-vlan vlan-id3 ] command in the interface view to delete a selective QinQ entry on the interface.
  • Run the undo port vlan-stacking all command in the interface view to delete all selective QinQ entries on the interface.
Translation
Download
Updated: 2018-12-24

Document ID: EDOC1100038339

Views: 169308

Downloads: 703

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