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

S9300, S9300E, and S9300X V200R012C00 Configuration Guide - Ethernet Switching

This document describes the configuration of Ethernet services, including configuring MAC address table, link aggregation, VLANs, VLAN aggregation, MUX VLAN, VLAN termination, Voice VLAN, VLAN mapping, QinQ, GVRP, STP/RSTP/MSTP, VBST, SEP, RRPP, ERPS, LBDT, HVRP, 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

Working Mechanism

Depending on whether a packet is tagged or untagged, the switch processes a received packet as follows:
  • Tagged packed: Based on the VLAN mapping mode, the switch determines whether a single tag, double tags, or the outer tag is to be replaced. The switch then learns the MAC addresses in the packet. The switch updates the MAC address entries in the VLAN mapping table based on the source MAC address and mapped VLAN ID. It then searches for the MAC address entries based on the destination MAC address and the mapped VLAN ID. If the destination MAC address matches an entry, the switch forwards the packet through the corresponding outbound interface. If not, the switch broadcasts the packet in the specified VLAN.
  • Untagged packet: Based on the VLAN creation mode, the switch determines whether to add a VLAN tag. If the packet can be added to a VLAN, the switch adds a VLAN tag to it and learns the MAC addresses. The switch then performs Layer 2 forwarding based on the destination MAC address. If the packet cannot be added to a VLAN, the switch either delivers the packet to the CPU or discards it.

Figure 11-1 shows VLAN mapping between VLAN 2 and VLAN 3 configured on PORT 1. Before sending packets from VLAN 2 to VLAN 3, PORT 1 replaces the VLAN tags with VLAN 3 tags. When receiving packets from VLAN 3 to VLAN 2, PORT 1 replaces the VLAN tags with VLAN 2 tags. This implements communication between devices in VLAN 2 and VLAN 3.

Figure 11-1  VLAN mapping

If devices in two VLANs need to communicate based on VLAN mapping, the IP addresses of these devices must be on the same network segment. If their IP addresses are on different network segments, communication between these devices must be implemented using Layer 3 routes, which makes VLAN mapping invalid.

VLAN Mapping Mode

The switch supports VLAN-based, 802.1p-based, and MQC-based VLAN mapping:
  • VLAN mapping

    When the interface on a device configured with VLAN mapping receives a single-tagged packet, the interface maps the VLAN tag in the packet to an S-VLAN tag. 1:1 VLAN mapping maps a C-VLAN tag to an S-VLAN tag, whereas N:1 VLAN mapping maps multiple C-VLAN tags to an S-VLAN tag.

  • 2:1 VLAN mapping

    When the interface on a device configured with VLAN mapping receives a double-tagged packet, the interface maps the outer VLAN tag to an S-VLAN tag and transparently transmits the inner VLAN tag.

  • 2:2 VLAN mapping

    When the interface on a device configured with VLAN mapping receives a double-tagged packet, the interface maps the double VLAN tags to the double S-VLAN tags.

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

Translation
Download
Updated: 2019-01-18

Document ID: EDOC1100038290

Views: 111783

Downloads: 24

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