How can I configure the path cost of an interface on a CE switch running STP/MSTP

Path costs determine root interface selection during spanning tree calculation. In a spanning tree, the interface with the lowest path cost to the root bridge is selected as a root interface.

You can run the stp [ process process-id ] [ instance instance-id ] cost cost command in the interface view to configure the path cost of an interface. It is recommended that the path cost of an interface be set smaller within the specified range if the rate of the link on the interface is greater.

# Set the path cost of 10GE1/0/1 to 200.
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] stp cost 200
[*HUAWEI-10GE1/0/1] commit Description: 
The path cost of an interface is related to the algorithm for calculating path costs. If the path cost calculation algorithm is changed using the stp pathcost-standard command, the interface path cost configured through this command will be restored to the default value.

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