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 V200R010C00 Configuration Guide - Ethernet Switching

This document describes the configuration of Ethernet services, including configuring link aggregation, VLANs, Voice VLAN, VLAN mapping, QinQ, GVRP, MAC table, STP/RSTP/MSTP, SEP, and so on.
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 Stack-vlan

Configuring Stack-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 device forwarding efficiency and security, and prevents MAC address attacks as well as broadcast storms.

Similar to the VLAN stacking function, the stack-vlan function adds outer VLAN tags to frames to implement communication within a VLAN across different ISP networks.


  1. Run:


    The system view is displayed.

  2. Run:

    vlan-switch vlan-switch-name interface interface-type interface-number vlan vlan-id1 [ to vlan-id2 ] interface interface-type interface-number [ stack-vlan vlan-id3 ]

    Stack-vlan is configured to add outer VLAN tags.

    • VLAN Switch has the following requirements on interfaces:

      The source and destination interfaces specified in the VLAN Switch configuration command must be hybrid or trunk interfaces, and cannot be access 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 of S series do not support stack-vlan.
    • 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, VLAN Switch is not recommended for a ring network running a loop prevention protocol.

Updated: 2019-08-21

Document ID: EDOC1000142081

Views: 275841

Downloads: 421

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