Hello everyone,
Today I will share with you the common STP operations.
Setting the Path Cost of a Port
Path costs determine root port selection during spanning tree calculation. In a spanning tree, the port with the lowest path cost to the root bridge is selected as a root port.
1. Run the system-view command to enter the system view.
2. (Optional) Run the stp pathcost-standard{ dot1d-1998 | dot1t | legacy } command to set the standard used to calculate the path costs of ports.
3. Run the interface interface-type interface-number command to enter the view of a port that participates in spanning tree calculation.
4. Run the stp cost cost command to set the path cost of the port.
5. Run the commit command to commit the configuration.
In the interface view, you can also run the stp [process process-id] [instance instance-id] cost cost command to set the path cost of the port. If the link rate of the port is large, you are advised to set a smaller path cost of the port within the specified value range.
Setting the Priority of a Port
1. Run the system-view command to enter the system view.
2. Run the interface interface-type interface-number command to enter the view of a port that participates in spanning tree calculation.
3. Run the stp port priority priority command to set the priority of the port.
4. Run the commit command to commit the configuration.
Disabling STP
Run the undo stp enable or stp disable command in the system view or interface view to disable STP.
You can also find the answer in Common MSTP Operations in Common Operation Guide.
Common Operation Guide: http://support.huawei.com/enterprise/en/doc/EDOC1000102369?idPath=7919710|21782165|21782236|22318638|7542409
You can also find the answer in Common STP Operations in Common Operation Guide.
That is all I want to share with you! Thank you!