The set protocols spanning-tree rstp interface path-cost command configures the link path cost of a physical port or a LAG port for RSTP mode.
set protocols spanning-tree rstp interface <interface-name> path-cost <path-cost>
Specifies a port name. The value is a string that can be set to a physical port name or a LAG port.
Specifies the path cost value of the external link. The value is an integer that ranges from 0 to 200000000. The default value is 0.
Path cost to the root bridge. It is determined by the distance between the port sending the configuration BPDU and the root bridge. Smallest root path cost is used as the root port on a non-root bridge. On the root bridge, the path cost of each port is 0.
- Configure the path cost of port ge-1/1/1 to 500.