Cisco Nexus 5000 Series Switch CLI Software Configuration Guide, NX-OS 4.0(1a)N1 (OL-16597-01, January 2009)

Send feedback to nx5000-docfeedback@cisco.com
8-22
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 8 Configuring Rapid PVST+
Configuring Rapid PVST+
This example shows how to configure the port cost of Ethernet access port 1/4 to 1000:
switch# configure terminal
switch (config)# spanning-tree pathcost method long
switch (config)# interface ethernet 1/4
switch(config-if)# spanning-tree cost 1000
You can only apply this command to a physical Ethernet interface.
Configuring the Rapid PVST+ Bridge Priority of a VLAN
You can configure the Rapid PVST+ bridge priority of a VLAN.
Note Be careful when using this configuration. For most situations, we recommend that you configure the
primary root and secondary root to modify the bridge priority.
To choose the bridge priority for a specific VLAN, perform this task:
This example shows how to configure the priority of VLAN 5 on Gigabit Ethernet port 1/4 to 8192:
switch# configure terminal
switch(config)# spanning-tree vlan 5 priority 8192
Step 3
switch(config)# interface type
slot/port
Specifies the interface to configure, and enters the
interface configuration mode.
Step 4
switch(config-if)# spanning-tree [vlan
vlan-id] cost [value | auto]
Configures the port cost for the LAN interface. The
cost value, depending on the pathcost calculation
method, can be as follows:
short—1 to 65535
long—1 to 200000000
Note You configure this parameter per port on
access ports and per VLAN on trunk ports.
The default is auto, which sets the port cost on both the
pathcost calculation method and the media speed.
Command Purpose
Command Purpose
Step 1
switch# configure terminal
Enters configuration mode.
Step 2
switch(config)# spanning-tree vlan
vlan-range priority value
Configures the bridge priority of a VLAN. Valid values
are 0, 4096, 8192, 12288, 16384, 20480, 24576,
28672, 32768, 36864, 40960, 45056, 49152, 53248,
57344, and 61440. All other values are rejected. The
default value is 32768.