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).
Understanding VLAN Mapping

Understanding VLAN Mapping

Basic Principles

After receiving a tagged packet, the switch determines to replace a single tag, double tags, or the outer tag in double tags based on the VLAN mapping mode. Then the switch learns the MAC addresses contained in the packet. Based on the source MAC address and mapped VLAN ID, the switch updates the MAC address entries in the VLAN mapping table. Based on the destination MAC address and the mapped VLAN ID, the switch searches for the MAC address entries. If the destination MAC address matches no entry, the switch broadcasts the packet in the specified VLAN; if the destination MAC address matches an entry, the switch forwards the packet through the corresponding outbound interface.

As shown in Figure 7-1, VLAN mapping between VLAN 2 and VLAN 3 is configured on Interface1. Before sending packets from VLAN 2 to VLAN 3, Interface1 replaces the VLAN tags with VLAN 3 tags. When receiving packets from VLAN 3, Interface1 replaces the VLAN tags with VLAN 2 tags. Then packets are forwarded according to the Layer 2 forwarding process. This implements communication between devices in VLAN 2 and VLAN 3.

Figure 7-1 VLAN mapping

NOTE:

If devices in two VLANs need to communicate through VLAN mapping, the IP addresses of these devices must be on the same network segment. If IP addresses of these devices are on different network segments, communication between devices is implemented through Layer 3 routes. In this case, VLAN mapping is invalid.

Implementation Modes

The device supports VLAN-based and MQC-based VLAN mapping. There are three VLAN-based VLAN mapping modes:
  • 1 to 1 VLAN mapping

    When an interface configured with VLAN mapping receives a single-tagged packet, the interface maps the VLAN tag in the packet to a new VLAN tag.

  • 2 to 1 VLAN mapping

    When an interface configured with VLAN mapping receives a double-tagged packet, the interface maps the outer tag of the packet to a specified tag and transparently transmits the inner tag as the data.

  • 2 to 2 VLAN mapping

    When an interface configured with VLAN mapping receives a double-tagged packet, the interface maps the inner and outer VLAN tags in the packet to new inner and outer VLAN tags.

MQC-based VLAN mapping uses a traffic classifier to classify packets based on VLAN IDs, associates the traffic classifier with a traffic behavior defining VLAN mapping so that the device can re-mark the VLAN ID in packets matching the traffic classifier. MQC-based VLAN mapping implements differentiated services.

Translation
Download
Updated: 2019-05-08

Document ID: EDOC1100004351

Views: 116646

Downloads: 289

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