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

NE20E-S2 V800R010C10SPC500 Configuration Guide - LAN Access and MAN Access 01

This is NE20E-S2 V800R010C10SPC500 Configuration Guide - LAN Access and MAN Access
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 QinQ Mapping

Configuring QinQ Mapping

QinQ mapping allows a device to map a user virtual local area network (VLAN) ID to a carrier VLAN ID, shielding different user VLAN IDs in packets.

Usage Scenario

QinQ mapping is deployed on Layer 2 edge devices to map user VLAN IDs in packets from users. The devices map the VLAN IDs in user packets to specified VLAN IDs before forwarding the packets to the public network. QinQ mapping is applicable (but not limited) to the following scenarios:
  • VLAN IDs deployed in new sites and old sites conflict, but the new sites need to communicate with the old sites.
  • VLAN ID planning at each site on the public network is different. As a result, the VLAN IDs conflict. These sites, however, do not need to communicate with each other.
  • VLAN IDs on both ends of the public network are different.
The NE20E supports the following QinQ mapping mode:
  • 1 to 1 QinQ mapping

    When a QinQ mapping-enabled sub-interface receives a single-tagged packet, the sub-interface replaces the VLAN ID in the packet with a specified VLAN ID.

NOTE:
After receiving a user-destined Layer 2 multicast packet, a QinQ stacking or QinQ mapping sub-interface that connects to a VPLS network removes the outer tag from the packet, adds the learned inner and outer tags to the packet, and then forwards the packet to a downstream device.

Pre-configuration Tasks

Before configuring QinQ mapping, plan user VLANs so that user packets carry one or two VLAN tags.

Configuration Procedures

You can choose one or more configuration tasks (excluding "Checking the Configuration") as required.

Configuring 1 to 1 QinQ Mapping

When a 1 to 1 QinQ mapping-enabled sub-interface receives a single-tagged packet, the sub-interface replaces the virtual local area network (VLAN) ID in the packet with a specified VLAN ID.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number.subinterface-number

    The view of a CE-side Ethernet sub-interface on a PE is displayed.

  3. Run qinq mapping vid vid map-vlan vid map-vid [ vlan-group group-id ]

    The sub-interface is configured to map the VLAN ID in a single-tagged packet to a specified VLAN ID.

    The original VLAN ID in the single-tagged packet cannot be the same as the outer VLAN ID of packets on any other sub-interfaces.

    If the qinq mapping vid command has been run on an Ethernet sub-interface, any commands related to the QinQ stacking, QinQ termination, or dot1q termination function cannot be configured on the sub-interface.

  4. Run commit

    The configuration is committed.

Verifying the QinQ Mapping Configuration

After configuring QinQ mapping functions, verify the configuration.

Prerequisites

QinQ mapping has been configured.

Procedure

  • Run the display qinq information mapping [ interface interface-type interface-number [.subinterface-number ] ] command to check QinQ mapping information.

Example

Run the display qinq information mapping command to view detailed information about QinQ mapping on an interface.

<HUAWEI> display qinq information mapping interface gigabitethernet 0/1/1
  GigabitEthernet0/1/1.1
    Total QinQ Num: 1
      qinq mapping vid 100 map-vlan vid 200
    Total vlan-group Num: 0
  GigabitEthernet0/1/1.2
    Total QinQ Num: 1
      qinq mapping vid 300 map-vlan vid 400
    Total vlan-group Num: 0
Translation
Download
Updated: 2019-01-02

Document ID: EDOC1100055378

Views: 16521

Downloads: 34

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