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

AR100-S, AR110-S, AR120-S, AR150-S, AR160-S, AR200-S, AR1200-S, AR2200-S, and AR3200-S V200R009 CLI-based Configuration Guide - Ethernet Switching

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

Configuring Selective QinQ

Context

You can configure either of the following selective QinQ modes:

  • VLAN ID-based selective QinQ

    When private networks connect to a carrier network through CEs and PEs, run the vlan stacking command on CE interfaces connected to PEs so that the CE interfaces add the outer VLAN tag allocated by the carrier to user packets. This implementation saves VLAN IDs and allows user packets to be transparently transmitted on the carrier network.

  • 802.1p priority-based selective QinQ

    An 802.1p priority indicates a packet priority. Generally, different services of a user use different priorities. A carrier can establish different data transmission networks for different services based on 802.1p priorities so that services on the carrier network can be differentiated.

Procedure

  • Configure VLAN ID-based VLAN stacking.
    • Configure VLAN ID-based VLAN stacking on a Layer 3 sub-interface.

      1. Run system-view

        The system view is displayed.

      2. Run bridge bridge-id

        A bridge group is created and the bridge group view is displayed.

      3. Run quit

        Exit from the bridge group view.

      4. Run interface { ethernet | gigabitethernet } interface-number.subinterface-number

        The Ethernet sub-interface view is displayed.

        NOTE:

        Sub-interfaces can only be created on Layer 3 Ethernet interfaces. If an interface works in Layer 2 mode and supports switching between Layer 2 and Layer 3 modes, run the undo portswitch command to switch the interface in Layer 3 mode before creating a sub-interface on the interface.

      5. Run bridge bridge-id

        The Ethernet sub-interface is added to the bridge group.

      6. Run bridge vlan-transmit enable

        The Ethernet sub-interface is enabled to transparently transmit VLAN IDs.

      7. Run vlan stacking { default | vid low-ce-vid [ to high-ce-vid ] } pe-vid pe-vid [ remark-8021p 8021p-value2 ]

        VLAN ID-based VLAN stacking is configured.

        NOTE:

        The VLANs allowed by all sub-interfaces of the same main interface cannot overlap.

        The vlan stacking default command can be executed on only one sub-interface of each main interface. Packets are forwarded through the default sub-interface when the packets do not match VLAN stacking entries on other sub-interfaces.

    • Configure VLAN ID-based VLAN stacking on a Layer 2 VE interface.

      1. Run system-view

        The system view is displayed.

      2. Run interface virtual-ethernet ve-number

        A VE interface is created and the VE interface view is displayed.

      3. Run portswitch

        The VE interface is switched from Layer 3 to Layer 2.

      4. Run port link-type hybrid

        The link type of the interface is set to hybrid.

        By default, the link type of an interface is hybrid.

      5. Run vlan stacking vid low-ce-vid [ to high-ce-vid ] pe-vid pe-vid-value[ remark-8021p 8021p-val ]

        VLAN ID-based VLAN stacking is configured on the Layer 2 VE interface.

        NOTE:
        • VLAN stacking and VLAN mapping can take effect, but VLAN IDs of multiple CEs must be unique, VLAN IDs in the original and mapped tags must be different, and VLAN IDs of multiple PEs must be unique.
        • Layer 2 Ethernet interfaces support only VLAN ID-based VLAN stacking, and do not support VLAN stacking based on 802.1p priorities or VLAN IDs and 802.1p priorities.
        • When VLAN stacking is canceled on a Layer 2 Ethernet interface, the VLAN ID range allowed must be the same as the configured VLAN ID range.
        • This command can be configured on an interface multiple times, and a maximum of 128 VLAN stacking entries can be configured on all interfaces.
  • Configure 802.1p priority-based selective QinQ.
    1. Run system-view

      The system view is displayed.

    2. Run bridge bridge-id

      A bridge group is created and the bridge group view is displayed.

    3. Run quit

      Exit from the bridge group view.

    4. Run interface { ethernet | gigabitethernet } interface-number.subinterface-number

      The Ethernet sub-interface view is displayed.

      NOTE:

      Sub-interfaces can only be created on Layer 3 Ethernet interfaces. If an interface works in Layer 2 mode and supports switching between Layer 2 and Layer 3 modes, run the undo portswitch command to switch the interface in Layer 3 mode before creating a sub-interface on the interface.

    5. Run bridge bridge-id

      The Ethernet sub-interface is added to the bridge group.

    6. Run bridge vlan-transmit enable

      The Ethernet sub-interface is enabled to transparently transmit VLAN IDs.

    7. Run vlan allow-pass { vid vlan-id1 [ to vlan-id2 ] | default }

      The VLANs allowed by the Ethernet sub-interface are configured.

      NOTE:

      VLANs allowed by all sub-interfaces of a main interface cannot overlap.

      The vlan allow-pass default command can be executed only on a sub-interface among all sub-interfaces of each main interface. Packets are forwarded through the default sub-interface when the packets do not match other QinQ or VLAN mapping entries on a sub-interface.

    8. Run vlan stacking 8021p 8021p-value1 pe-vid pe-vid [ remark-8021p 8021p-value2 ]

      802.1p priority-based selective QinQ is configured.

Translation
Download
Updated: 2019-05-17

Document ID: EDOC1000174108

Views: 55395

Downloads: 40

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