Standard spanning tree protocols used on S series switch

2

S series switches (except S1700 switches) support the following standard spanning tree protocols:
1. STP: Spanning Tree Protocol
2. RSTP: Rapid Spanning Tree Protocol, compatible with STP
3. MSTP: Multiple Spanning Tree Protocol, compatible with STP and RSTP
By default, S series switches use MSTP. When running a command to set STP mode, you can select STP, RSTP, or MSTP.
VLAN-Based Spanning Tree (VBST) is a Huawei proprietary spanning tree protocol, which sets up a spanning tree for each VLAN, so traffic in different VLANs can be forwarded through different spanning trees.

Other related questions:
STP enabling/disabling method on an AR router
By default, STP is enabled on an AR router globally and on Layer 2 interface. Run the stp enable command in the system or interface view to enable STP globally or on Layer 2 interface. Run the stp disable command in the system or interface view to disable STP globally or on Layer 2 interface.

Which STP protocols does an AR router support
An AR router supports STP/RSTP/MSTP, but does not support VBST.

STP configurations on S series switch
Common STP configuration for S series switches (except S1700 switches) and E series switches: 1. Enable STP/RSTP globally. Run the stp enable command in the system view. [HUAWEI] stp enable 2. Enable STP/RSTP on an interface. Run the stp enable command in the interface view. [HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] stp enable 3. Disable STP/RSTP globally. Run the undo stp enable command in the system view. [HUAWEI] undo stp enable 4. Disable STP/RSTP on the interface. Run the undo stp enable command in the interface view. [HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] undo stp enable For details of other configuration commands, see "Common STP/RSTP Operations" in Series Switches Common Operation Guide. Common STP/RSTP operations are the same for all switch models.

What is the protocol number of OSPF used by S series switches
The Open Shortest Path First (OSPF) protocol is a link-state Interior Gateway Protocol (IGP) developed by the Internet Engineering Task Force (IETF). OSPF is IP-based and the protocol number is 89.

Protocol-based VLAN assignment on S series switch
Example of configuring protocol-based VLAN assignment for S series switches (except S1700 switches): 1. Configuration roadmap 1). Create a VLAN and determine the VLAN to which each service belongs. 2). Associate a protocol with the VLAN, so that the switch can determine the VLAN ID of a received packet according to the protocol (or protocol suite) of the packet. 3. Add interfaces to the VLAN, so that the packets of the protocol-based VLAN can pass through the interfaces. 4. Associate interfaces with the protocol-based VLAN. The system then determines the VLAN ID of a received packet according to the association between the protocol type of the packet and the VLAN. 2. Configuration procedure 1) Create a VLAN. [HUAWEI] vlan batch 10 2) Associate a protocol with the VLAN. [HUAWEI] vlan 10 [HUAWEI-vlan10] protocol-vlan ipv4 #Associate IPv4 with VLAN 10. [HUAWEI-vlan10] quit 3) Associate an interface with the protocol-based VLAN. [HUAWEI] interface gigabitethernet 0/0/2 [HUAWEI-GigabitEthernet0/0/2] protocol-vlan vlan 10 all priority 5 #Associate GE0/0/2 with VLAN 10 and set the 802.1p priority of VLAN 10 to 5. [HUAWEI-GigabitEthernet0/0/2] quit 4) Configure interfaces. [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] port link-type trunk [HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 10 #Configure the interface to allow packets of VLAN 10 to pass through. [HUAWEI-GigabitEthernet0/0/1] quit [HUAWEI] interface gigabitethernet 0/0/2 [HUAWEI-GigabitEthernet0/0/2] port link-type hybrid [HUAWEI-GigabitEthernet0/0/2] port hybrid untagged vlan 10 #Configure the interface to allow packets of VLAN 10 to pass through in untagged mode.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top