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


To have a better experience, please upgrade your IE browser.


S12700 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, 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 Switch-vlan

Configuring Switch-vlan


VLAN Switch is a forwarding method that forwards data according to the information in VLAN tags of received frames. This method requires a pre-configured static forwarding path along switching nodes on the network. When receiving VLAN-tagged frames matching VLAN Switch entries, a switching node forwards the frames to the interfaces manually specified in the VLAN Switch table. VLAN Switch improves the forwarding efficiency and security of the switch, and prevents MAC address attacks and broadcast storms.

Similar to the VLAN mapping function, the switch-vlan function replaces outer VLAN tags of frames to implement inter-VLAN communication.


  1. Run system-view

    The system view is displayed.

  2. Run vlan-switch vlan-switch-name interface interface-type1 interface-number1 vlan vlan-id1 [ inner-vlan vlan-id2 [ to vlan-id3 ] ] interface interface-type2 interface-number2 [ switch-vlan vlan-id4 ]

    Switch-vlan is configured to replace outer VLAN tags.

    • VLAN Switch has the following requirements on interfaces:

      The source and destination interfaces specified in the vlan-switch command must be hybrid or trunk interfaces. These interfaces cannot be access interfaces or Eth-Trunk member interfaces.

    • VLAN Switch has the following requirements on VLANs:

      • The VLANs used in VLAN Switch cannot be created in the system view.
      • The VLANs used in QinQ cannot be used by VLAN Switch.
      • When an outer VLAN tag in double-tagged frames is used for VLAN stacking, VLAN mapping, or control VLAN, the VLAN tag cannot be used by VLAN Switch.
    • SA cards on S series switches cannot specify double tags before VLAN Switch.

    • When double-tagged VLAN switching is configured, both inbound and outbound interfaces must be located on the X series cards or non-X series cards.

    • On a ring network, packets matching VLAN Switch entries can pass through the interfaces blocked by loop prevention protocols. Consequently, broadcast storms may occur. Therefore, the VLAN Switch feature is not recommended for a ring network running a loop prevention protocol.

Updated: 2019-01-18

Document ID: EDOC1100038103

Views: 126591

Downloads: 52

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