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

CloudEngine 8800, 7800, 6800, and 5800 V200R003C00

This document describes the configuration of Ethernet services, including configuring MAC address table, link aggregation, VLANs, MUX VLAN, 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-based VLAN Mapping

Configuring VLAN-based VLAN Mapping

Context

VLAN mapping allows an interface to map the single VLAN tag, double VLAN tags, or outer VLAN tag in double VLAN tags in received single-tagged or double-tagged packets to the public VLAN tag or tags.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. Configure the link type of the interface as trunk or hybrid.

    NOTE:
    • VLAN mapping can only be configured on a trunk or hybrid interface. The interface must be added to the VLAN after mapping in tagged mode.

    • When 2 to 1 or 2 to 2 VLAN mapping is configured, the VLAN ID allowed by the interface enabled with VLAN mapping must be the outer VLAN ID.

    • On the CE5810EI, if remark-8021p 8021p-value is specified, Configuring MQC-based VLAN Mapping is recommended. Do not configure 2 to 1 or 2 to 2 VLAN mapping in this situation.

    Run either of the following commands as needed:

    • Set the link type of the interface to trunk.

      1. Run port link-type trunk

        The link type of the interface is set to trunk.

      2. Run port trunk allow-pass vlan { vlan-id1 [ to vlan-id2 ] } &<1-40>

        The VLAN allowed by the interface configured with VLAN mapping is specified. Here, the VLAN is the one after VLAN mapping.

    • Set the link type of the interface to hybrid.

      1. Run port link-type hybrid

        The link type of the interface is set to hybrid.

      2. Run port hybrid tagged vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>

        The VLAN allowed by the interface configured with VLAN mapping is specified. Here, the VLAN is the one after VLAN mapping.

  4. Configure VLAN mapping. (CE6870EI and CE6875EI only support 1 to 1 VLAN mapping.)

    Run the following command as required.

    NOTE:

    If the trill enable command has been executed, delete the trill enable command configuration before running the port vlan-mapping command.

    • Configure 1 to 1 VLAN mapping.

      Run port vlan-mapping vlan vlan-id1 map-vlan vlan-id3 [ remark-8021p 8021p-value ]

      The interface is configured to map a single tag of packets to a specified tag.

    • Configure 2 to 1 VLAN mapping.

      Run port vlan-mapping vlan vlan-id1 inner-vlan vlan-id2 map-vlan vlan-id3 [ remark-8021p 8021p-value ]

      The interface is configured to map the outer VLAN tag in double-tagged packets to a specified tag and to transparently transmit the inner VLAN tag.

    • Configure 2 to 2 VLAN mapping.

      Run port vlan-mapping vlan vlan-id1 inner-vlan vlan-id2 map-vlan vlan-id3 map-inner-vlan vlan-id4 [ remark-8021p 8021p-value ]

      The interface is configured to map double tags of packets to specified double tags.

  5. Run commit

    The configuration is committed.

Verifying the Configuration

  • Run the display vlan vlan-id command to check whether the interface is added to the VLAN specified by the mapped public VLAN ID.
  • Run the display current-configuration command to check the VLAN mapping configuration on an interface.
Translation
Download
Updated: 2019-05-08

Document ID: EDOC1100004351

Views: 97331

Downloads: 276

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