Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)
PurposeCommand or Action
The default is auto , which sets the port cost on both the
pathcost calculation method and the media speed.
This example shows how to configure the access port cost of an Ethernet interface:
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.
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.
Note
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Configures the bridge priority of a VLAN. Valid values
are 0, 4096, 8192, 12288, 16384, 20480, 24576, 28672,
switch(config)# spanning-tree vlan
vlan-range priority value
Step 2
32768, 36864, 40960, 45056, 49152, 53248, 57344, and
61440. All other values are rejected. The default value is
32768.
This example shows how to configure the bridge priority of a VLAN:
switch# configure terminal
switch(config)# spanning-tree vlan 5 priority 8192
Configuring the Rapid PVST+ Hello Time for a VLAN
You can configure the Rapid PVST+ hello time for a VLAN.
Be careful when using this configuration. For most situations, we recommend that you configure the
primary root and secondary root to modify the hello time.
Note
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
170 OL-16597-01
Configuring Rapid PVST+
Configuring the Rapid PVST+ Bridge Priority of a VLAN