Hello, Community!
This post is about the question 'How do I enable or disable STP?', as part of the Q&A of the 'All About Switches' section on the Community. Please see more details as you read further down.
QUESTION
How do I enable or disable STP?
ANSWER
To enable STP/RSTP/MSTP/VBST, run the stp enable command in the system view or interface view.
To disable STP/RSTP/MSTP/VBST, run the undo stp enable or stp disable command in the system view or interface view.
1. To enable or disable STP/RSTP/MSTP/VBST on a specific interface, run the corresponding command on the interface. Examples are as follows:
# Enable STP/RSTP/MSTP/VBST on GE0/0/1.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] stp enable
# Disable STP/RSTP/MSTP/VBST on GE0/0/1.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undostp enable
2. For more information about configuration examples, visit the corresponding web pages.
STP:
https://forum.huawei.com/enterprise/en/forum.php?mod=viewthread&tid=322707&page=1#pid1336009.
RSTP:
https://forum.huawei.com/enterprise/en/forum.php?mod=viewthread&tid=324981&page=1#pid1338283.
MSTP:
https://forum.huawei.com/enterprise/en/forum.php?mod=viewthread&tid=213021&page=1#pid1225983.
For more information about configurations and principles of loop protocols, see the corresponding product documentation.
Step 1. Log in to the Huawei Enterprise Technical support website: http://support.huawei.com/enterprise.
Step 2. Select the product, for example Switch > S5700.
![]()
Step 3. Select the corresponding product documentation from the Downloadable Product Documentation Package.
![]()
Step 4. See the configurations about relevant loop protocols under Configuration > CLI-based Configuration Guide > Ethernet Switching Configuration Guide.
![]()
This would be all on the the question 'How do I enable or disable STP?'. Thanks for reading this post!