Configuring Rapid PVST+ Using Cisco NX-OS
DETAILED STEPS
Command or Action
Step 1
config t
Example:
switch# config t
switch(config)#
Step 2
interface type slot/port
Example:
switch(config)# interface ethernet 1/4
switch(config-if)#
Step 3
spanning-tree [vlan vlan-list] port-priority priority
Example:
switch(config-if)# spanning-tree port-priority
160
Step 4
exit
Example:
switch(config-if)# exit
switch(config)#
Step 5
show spanning-tree interface {ethernet slot/port | port
channel channel-number}
Example:
switch# show spanning-tree interface ethernet
2/10
Step 6
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
This example shows how to configure the port priority of Ethernet access port 1/4 to 160:
switch# config t
switch (config)# interface ethernet 1/4
switch(config-if)# spanning-tree port-priority 160
switch(config-if)# exit
switch(config)#
Configuring the Rapid PVST+ Path-Cost Method and Port Cost—CLI Version
On access ports, you can assign the port cost for each port. On trunk ports, you can assign the port cost for
each VLAN; you can configure all the VLANs on a trunk with the same port cost.
Configuring the Rapid PVST+ Path-Cost Method and Port Cost—CLI Version
Purpose
Enters global 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. A lower value indicates
a higher priority. The priority values are 0, 32, 64, 96, 128,
160, 192, and 224. All other values are rejected. The default
value is 128.
Exits interface configuration mode.
(Optional)
Displays the STP configuration for the specified interface.
(Optional)
Copies the running configuration to the startup
configuration.
Cisco Nexus 7000 Series NX-OS Layer 2 Switching Configuration Guide, Release 5.x
119