The path cost value range depends on the path cost calculation method. After the cost calculation method is determined, if the link rate of the port is large, you are advised to set a smaller path cost of the port with a larger link rate to be within the specified value range.
On a network where loops occur, if the link rate of a port is small, you are advised to set a large path cost so that the port is selected as the blocking port during spanning tree calculation and its link is blocked.
The system view is displayed.
A path cost calculation method is specified.
By default, the IEEE 802.1t standard (dot1t) is used to calculate the path cost.
All devices on a network must use the same path cost calculation method.
The view of an interface participating in spanning tree calculation is displayed.
A path cost is set for the interface.
The following describes the supported cost range for different calculation methods: