STP configurations on S series switch

12

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.

Other related questions:
Is STP enabled on S series switches by default
For Sx700 series switches (except the S1700) running V100R005 or an earlier version, STP is disabled globally by default, and STP on interfaces is enabled by default. For Sx700 series switches (except the S1700) running V100R006 or a later version, STP is enabled globally and on interfaces by default. For E series switches, STP is enabled globally and on interfaces by default. For S9300 series switches, STP is disabled globally by default, and STP on interfaces is enabled by default. For S5700 switches running V100R005, BPDU is disabled by default, and an interface discards received BPDUs by default. To enable BPDU, run the following commands: [HUAWEI] stp enable [HUAWEI] interface GigabitEthernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] bpdu enable

What is the default STP mode for S series switches
For S (except the S1700) and E series switches, STP works in MSTP mode by default.

Reason for STP root bridge change on S series switch
An S series switch (except S1700 switches) with the smallest bridge ID (BID) is elected as the root bridge. A BID consists of a 16-bit bridge priority and a bridge MAC address. If bridge priority is not specified manually, the switch with the smallest MAC address will become the root bridge. After topology calculation is complete, if the root bridge receives packets carrying a smaller BID than its own BID, the root bridge is no long the root bridge and the topology of the entire network must be recalculated. If this occurs, run the stp root primary command to assign the lowest priority to a switch so that this switch becomes the root bridge.

Does STP need to be enabled if no loop exists on an S series switch
For S (except the S1700) series switches, STP is used to prevent loops on a network. If no loop exists, STP can be disabled.

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