The set protocols spanning-tree pvst vlan interface path-cost command configures the link path cost of a physical port or a LAG port in Rapid-PVST+ mode.
set protocols spanning-tree pvst vlan <vlan-id> interface <interface-name> path-cost <cost-value>
Specifies the VLAN ID. The value is an integer that ranges from 1 to 4094.
Specifies a interface name. The value is a string that can be set to a physical port name or a LAG port.
Specifies the path cost of an interface. The value is an integer 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.
- Set the path cost of the switching device to 55 for VLAN 5.