Configuring the Rapid PVST+ Pathcost Method and Port Cost
value, Rapid PVST+ puts the LAN port with the lowest LAN port number in the forwarding state and blocks
other LAN ports.
The software uses the port priority value when the LAN port is configured as an access port and uses VLAN
port priority values when the LAN port is configured as a trunk port.
SUMMARY STEPS
1. switch# configure terminal
2. switch(config)# interface type slot/port
3. switch(config-if)# spanning-tree [vlan vlan-list] port-priority priority
DETAILED STEPS
Command or Action
Step 1
switch# configure terminal
Step 2
switch(config)# interface type slot/port
Step 3
switch(config-if)# spanning-tree [vlan
vlan-list] port-priority priority
This example shows how to configure the access port priority of an Ethernet interface:
switch# configure terminal
switch(config)# interface ethernet 1/4
switch(config-if)# spanning-tree port-priority 160
You can only apply this command to a physical Ethernet interface.
Configuring the Rapid PVST+ Pathcost Method and Port Cost
On access ports, you assign port cost by the port. On trunk ports, you assign the port cost by VLAN; you can
configure the same port cost on all the VLANs on a trunk.
In Rapid PVST+ mode, you can use either the short or long pathcost method, and you can configure the
Note
method in either the interface or configuration submode.The default pathcost method is short.
Cisco Nexus 3000 Series NX-OS Layer 2 Switching Configuration Guide, Release 5.0(3)U1(1)
94
Purpose
Enters configuration mode.
Specifies the interface to configure, and enters interface configuration
mode.
Configures the port priority for the LAN interface. The priority value
can be from 0 to 224. The lower the value, the higher the priority. The
priority values are 0, 32, 64, 96, 128, 160, 192, and 224. All other
values are rejected. The default value is 128.
Configuring Rapid PVST+