Configuring The Rapid Pvst+ Path-Cost Method And Port Cost - Cli Version - Cisco Nexus 9000 Series Configuration Manual

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

Advertisement

Configuring the Rapid PVST+ Path-Cost Method and Port Cost - CLI Version

Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
This example shows how to configure the port priority of Ethernet access port 1/4 to 160:
switch# config t
switch (config)# interface ethernet 1/4
switch(config-if)# spanning-tree port-priority 160
switch(config-if)# exit
switch(config)#
Configuring the Rapid PVST+ Path-Cost Method and Port Cost - CLI Version
On access ports, you can assign the port cost for each port. On trunk ports, you can assign the port cost for
each VLAN; you can configure all the VLANs on a trunk with the same port cost.
Cisco Nexus 9000 Series NX-OS Layer 2 Switching Configuration Guide, Release 7.x
106
Command or Action
config t
Example:
switch# config t
switch(config)#
interface type slot/port
Example:
switch(config)# interface ethernet 1/4
switch(config-if)#
spanning-tree [vlan vlan-list] port-priority
priority
Example:
switch(config-if)# spanning-tree
port-priority 160
exit
Example:
switch(config-if)# exit
switch(config)#
show spanning-tree interface {ethernet
slot/port | port channel channel-number}
Example:
switch# show spanning-tree interface
ethernet 2/10
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
Configuring Rapid PVST+ Using Cisco NX-OS
Purpose
Enters configuration mode.
Specifies the interface to configure and enters
the interface configuration mode.
Configures the port priority for the LAN
interface. The priority value can be from 0 to
224. A lower value indicates a higher priority.
The priority values are 0, 32, 64, 96, 128, 160,
192, and 224. All other values are rejected. The
default value is 128.
Exits interface mode.
(Optional)
Displays the STP configuration for the specified
interface.
(Optional)
Copies the running configuration to the startup
configuration.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents