Cisco Nexus 9000 Series Configuration Manual page 121

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

Advertisement

Configuring Rapid PVST+ Using Cisco NX-OS
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.
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Configuring the Rapid PVST+ Path-Cost Method and Port Cost - CLI Version
Command or Action
config t
Example:
switch# config t
switch(config)#
spanning-tree pathcost method {long |
short}
Example:
switch(config)# spanning-tree
pathcost method long
interface type slot/port
Example:
switch(config)# interface ethernet
1/4
switch(config-if)
spanning-tree [vlan vlan-id] cost [value |
auto]
Example:
switch(config-if)# spanning-tree cost
1000
exit
Example:
switch(config-if)# exit
switch(config)#
show spanning-tree pathcost method
Example:
switch# show spanning-tree pathcost
method
Cisco Nexus 9000 Series NX-OS Layer 2 Switching Configuration Guide, Release 7.x
Purpose
Enters 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
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 path-cost calculation method and the media
speed.
Exits interface mode.
(Optional)
Displays the STP path-cost method.
107

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents