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

S12700 V200R010C00 Configuration Guide - Ethernet Switching

This document describes the configuration of Ethernet services, including configuring link aggregation, VLANs, Voice VLAN, VLAN mapping, QinQ, GVRP, MAC table, STP/RSTP/MSTP, SEP, and so on.
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 802.1p Priority-based Selective QinQ

Configuring 802.1p Priority-based Selective QinQ

Context

802.1p priority-based selective QinQ allows an interface to add an outer VLAN tag based on 802.1p priorities and VLAN IDs of incoming packets. This ensures communication of high-priority users.

Procedure

  1. Configure 802.1p priority-based selective QinQ on an inbound interface.
    1. Run:

      system-view

      The system view is displayed.

    2. Run:

      interface interface-type interface-number

      The interface view is displayed.

    3. Run:

      port link-type hybrid

      The link type of the interface is set to hybrid.

      By default, the LNP negotiation mode of an interface is negotiation-desirable.

    4. Run:

      port hybrid untagged vlan vlan-id

      The interface is added to the stacked VLAN.

    5. Run the following commands as required on the inbound interface.

      • To configure 802.1p priority-based selective QinQ, run port vlan-stacking 8021p 8021p-value stack-vlan vlan-id.

      • To configure selective QinQ based on VLAN IDs and 802.1p priorities, run port vlan-stacking vlan vlan-id1 [ to vlan-id2 ] 8021p 8021p-value1 [ to 8021p-value2 ] stack-vlan vlan-id3 [ remark-8021p 8021p-value3 ].

      • To configure VLAN mapping and VLAN ID- and 802.1p priority-based selective QinQ on the incoming interface, run port vlan-stacking vlan vlan-id1 [ to vlan-id2 ] 8021p 8021p-value1 [ to 8021p-value2 ] stack-vlan vlan-id3 [ remark-8021p 8021p-value3 ] map-vlan vlan-id4.

        NOTE:

        X series cards do not support this function.

        If selective QinQ and VLAN mapping are configured, the device can only map incoming packets.

      NOTE:
      • VLAN stacking based on 802.1p priorities takes effect only for incoming packets.
      • VLAN stacking based on 802.1p priorities can only be enabled on a trunk or hybrid interface.

  2. (Optional) Configure VLAN priority mapping on an outbound interface.

    When a DiffServ domain has been created and priority mapping has been configured on the inbound interface, the internal priority may be different from the 802.1p priority. Therefore, you are advised to configure priority mapping on the outbound interface.

    1. Run:

      system-view

      The system view is displayed.

    2. Run:

      diffserv domain ds-domain-name

      A DiffServ domain is created and its view is displayed.

    3. Run:

      8021p-outbound service-class color map 8021p-value

      The device is configured to map the internal priority of outgoing packets to the 802.1p priority in the DiffServ domain.

    4. Run:

      quit

      Exit from the DiffServ domain view.

    5. Run:

      interface interface-type interface-number

      The interface view is displayed.

    6. Run:

      port link-type hybrid

      The link type of the interface is set to hybrid.

      By default, the LNP negotiation mode of an interface is negotiation-desirable.

    7. Run:

      port hybrid tagged vlan vlan-id

      The interface is added to the stacked VLAN.

    8. Run:

      trust upstream ds-domain-name

      The interface is bound to the DiffServ domain, and the mapping in the DiffServ domain is applied to the interface.

      By default, the internal priority is copied to the external priority.

Checking the Configuration

  • Run the display this command in the inbound interface view to check the configuration of VLAN stacking based on 802.1p priorities.
  • Run the display this command in the outbound interface view to check the configuration of VLAN stacking based on 802.1p priorities.
Translation
Download
Updated: 2019-08-21

Document ID: EDOC1000142081

Views: 254754

Downloads: 408

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