The set protocols spanning-tree pvst vlan interface port-priority command configures the port priority of an interface in Rapid-PVST+ mode.
set protocols spanning-tree pvst vlan <vlan-id> interface <interface-name> port-priority <port-priority>
Specifies the VLAN ID. The value is an integer that ranges from 1 to 4094.
Specifies a port name. The value is a string that can be set to a physical port name or a LAG port.
Specifies the priority value of a port. The value is an integer that ranges from 0 to 240. The default value is 128.
In Rapid-PVST+ spanning tree calculation, the port path cost, bridge ID of the sending switch, and port priority determine whether the port can be selected as the designated port. A smaller priority value indicates higher probability of becoming the designated port, and a larger priority value indicates higher probability of becoming the blocking port.
On a network running Rapid-PVST+, a port can function as different roles in different spanning trees so that traffic from different VLANs is forwarded through different physical paths.
- Set the port priority of the switching device to 55 for VLAN 5.