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).
Adding and Removing VLAN Tags

Adding and Removing VLAN Tags

Ethernet data frames are tagged or untagged based on the interface type and default VLAN. The following describes how access, trunk, and hybrid interfaces process data frames.

NOTE:

A QinQ interface adds an additional tag to a tagged frame. For details, see QinQ Configuration.

Access Interface

Figure 4-4 and Figure 4-5 shows how an access interface adds and removes VLAN tags.

Figure 4-4  Access interface adding VLAN tags
Figure 4-5  Access interface removing VLAN tags

Trunk Interface

Figure 4-6 and Figure 4-7 shows how a trunk interface adds and removes VLAN tags.

Figure 4-6  Trunk interface adding VLAN tags
Figure 4-7  Trunk interface removing VLAN tags

Hybrid Interface

Figure 4-8 and Figure 4-9 shows how a hybrid interface adds and removes VLAN tags.

Figure 4-8  Hybrid interface adding VLAN tags
Figure 4-9  Hybrid interface removing VLAN tags

Comparing Frame Processing on Different Interfaces

Table 4-2  Frame processing based on the interface type

Interface Type

Untagged Frame Processing

Tagged Frame Processing

Frame Transmission

Access interface

Receives an untagged frame and adds a tag with the default VLAN ID to the frame.

  • Accepts the tagged frame if the frame's VLAN ID matches the default VLAN ID.
  • Discards the tagged frame if the frame's VLAN ID differs from the default VLAN ID.

After the PVID tag is removed, the frame is transmitted.

Trunk interface

  • Adds a tag with the default VLAN ID to the untagged frame and then transmits it if the default VLAN ID is permitted by the interface.

  • Adds a tag with the default VLAN ID to the untagged frame and then discards it if the default VLAN ID is denied by the interface.
  • Accepts a tagged frame if the VLAN ID carried in the frame is permitted by the interface.
  • Discards a tagged frame if the VLAN ID carried in the frame is denied by the interface.
  • If the frame's VLAN ID matches the default VLAN ID and the VLAN ID is permitted by the interface, the device removes the tag and transmits the frame.
  • If the frame's VLAN ID differs from the default VLAN ID, but the VLAN ID is still permitted by the interface, the device will directly transmit the frame.

Hybrid interface

  • Adds a tag with the default VLAN ID to an untagged frame and accepts the frame if the interface permits the default VLAN ID.

  • Adds a tag with the default VLAN ID to an untagged frame and discards the frame if the interface denies the default VLAN ID.
  • Accepts a tagged frame if the VLAN ID carried in the frame is permitted by the interface.
  • Discards a tagged frame if the VLAN ID carried in the frame is denied by the interface.

If the frame's VLAN ID is permitted by the interface, the frame is transmitted. The interface can be configured whether to transmit frames with tags.

Interfaces process received frames as follows:
  • Access, trunk, and hybrid interfaces add VLAN tags to received untagged frames. Trunk and hybrid interfaces determine whether to accept untagged frames depending on whether VLANs specified by the VLAN IDs in the frames are allowed, whereas an access interface accepts the untagged frames unconditionally.
  • Access, trunk, and hybrid interfaces determine whether to accept tagged frames depending on whether VLANs specified by the VLAN IDs in the frames are allowed (the VLAN ID allowed by an access interface is the default VLAN ID).
  • Interfaces send frames as follows:

    • An access interface directly removes VLAN tags from frames before sending the frames.
    • A trunk interface removes VLAN tags from frames only when their VLAN IDs are the same as the PVID on the interface.
    • A hybrid interface determines whether to remove VLAN tags from frames based on the interface configuration.

    Frames sent by an access interface are all untagged. On a trunk interface, only frames of one VLAN are sent without tags, and frames of other VLANs are sent with tags. On a hybrid interface, you can specify the VLANs of which frames are sent with or without tags.

Translation
Download
Updated: 2019-01-18

Document ID: EDOC1100038290

Views: 103653

Downloads: 24

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