set protocols spanning-tree pvst vlan interface port-priority


The set protocols spanning-tree pvst vlan interface port-priority command configures the port priority of an interface in Rapid-PVST+ mode.


Command Syntax

set protocols spanning-tree pvst vlan <vlan-id> interface <interface-name> port-priority <port-priority>


Parameter

Parameter

Description

vlan <vlan-id>

Specifies the VLAN ID. The value is an integer that ranges from 1 to 4094.

interface <interface-name>

Specifies a port name. The value is a string that can be set to a physical port name or a LAG port.

port-priority <port-priority>

Specifies the priority value of a port. The value is an integer that ranges from 0 to 240. The default value is 128.


Usage Guidelines

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.


Example

  • Set the port priority of the switching device to 55 for VLAN 5.
admin@Xorplus# set protocols spanning-tree pvst vlan 5 interface ge-1/1/1 port-priority 55
admin@Xorplus# commit


Copyright © 2024 Pica8 Inc. All Rights Reserved.