Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)

Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Specifies the interface to configure, and enters interface
configuration mode.
switch(config)# interface type
slot/port
Step 2
Configures the port priority for the LAN interface. The
priority value can be from 0 to 224. The lower the value,
switch(config-if)# spanning-tree
[vlan vlan-list] port-priority priority
Step 3
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.
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
method in either the interface or configuration submode.The default pathcost method is short.
Note
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Selects the method used for Rapid PVST+ pathcost
calculations. The default method is the short method.
switch(config)# spanning-tree
pathcost method {long | short}
Step 2
Specifies the interface to configure, and enters interface
configuration mode.
switch(config)# interface type
slot/port
Step 3
Configures the port cost for the LAN interface. The cost
value, depending on the pathcost calculation method, can
be as follows:
switch(config-if)# spanning-tree
[vlan vlan-id] cost [value | auto]
Step 4
short—1 to 65535
long—1 to 200000000
You configure this parameter per interface on
access ports and per VLAN on trunk ports.
Note
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01 169
Configuring Rapid PVST+
Configuring the Rapid PVST+ Pathcost Method and Port Cost