Cisco Nexus 7000 Series Configuration Manual page 136

Nx-os layer 2 switching
Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

Configuring the Rapid PVST+ Path-Cost Method and Port Cost—CLI Version
In Rapid PVST+ mode, you can use either the short or long path-cost method, and you can configure the
Note
method in either the interface or configuration submode. The default path-cost method is short.
Before You Begin
Ensure that you are in the correct VDC (or enter the switchto vdc command).
SUMMARY STEPS
1. config t
2. spanning-tree pathcost method {long | short}
3. interface type slot/port
4. spanning-tree [vlan vlan-id] cost [value | auto]
5. exit
6. (Optional) show spanning-tree pathcost method
7. (Optional) copy running-config startup-config
DETAILED STEPS
Command or Action
Step 1
config t
Example:
switch# config t
switch(config)#
Step 2
spanning-tree pathcost method {long | short}
Example:
switch(config)# spanning-tree pathcost method
long
Step 3
interface type slot/port
Example:
switch(config)# interface ethernet 1/4
switch(config-if)
Step 4
spanning-tree [vlan vlan-id] cost [value | auto]
Example:
switch(config-if)# spanning-tree cost 1000
Cisco Nexus 7000 Series NX-OS Layer 2 Switching Configuration Guide, Release 5.x
120
Configuring Rapid PVST+ Using Cisco NX-OS
Purpose
Enters global configuration mode.
Selects the method used for Rapid PVST+ path-cost
calculations. The default method is the short method.
Specifies the interface to configure and enters the interface
configuration mode.
Configures the port cost for the LAN interface. The cost value,
depending on the path-cost calculation method, can be as
follows:
• short—1 to 65535
• long—1 to 200000000
You configure this parameter per port on access ports
Note
and per VLAN on trunk ports.
The default is auto, which sets the port cost on both the
path-cost calculation method and the media speed.

Advertisement

Table of Contents
loading

Table of Contents