Configuring Rapid PVST+ Using Cisco NX-OS
Verifying the Rapid PVST+ Configurations
To display Rapid PVST+ configuration information, perform one of the following tasks:
Command
show running-config spanning-tree [ all]
show spanning-tree summary
show spanning-tree detail
show spanning-tree{vlanvlan-id | interface
{[ethernetslot/port] |
[port-channelchannel-number]}} [detail]
show spanning-tree vlan vlan-id bridge
For information about the fields in the output from these commands, see the Cisco Nexus 7000 Series NX-OS
Layer 2 Switching Command Reference.
Displaying and Clearing Rapid PVST+ Statistics—CLI Version
To display Rapid PVRST+ configuration information, perform one of the following tasks:
Command
clear spanning-tree counters [interface type
slot/port | vlan vlan-id]
show spanning-tree {vlan vlan-id | interface
{[ethernet slot/port] | [port-channel
channel-number]}} detail
Rapid PVST+ Example Configurations
The following example shows how to configure Rapid PVST+:
switch# configure terminal
switch(config)# spanning-tree port type edge bpduguard default
switch(config)# spanning-tree port type edge bpdufilter default
switch(cnfig)# spanning-tree port type network default
switch(config)# spanning-tree vlan 1-10 priority 24576
switch(config)# spanning-tree vlan 1-10 hello-time 1
switch(config)# spanning-tree vlan 1-10 forward-time 9
switch(config)# spanning-tree vlan 1-10 max-age 13
switch(config)# interface Ethernet 3/1 switchport
switch(config-if)# spanning-tree port type edge
switch(config-if)# exit
Cisco Nexus 7000 Series NX-OS Layer 2 Switching Configuration Guide, Release 5.x
Verifying the Rapid PVST+ Configurations
Purpose
Displays STP information.
Displays summary STP information.
Displays detailed STP information.
Displays STP information per VLAN and interface.
Displays information on the STP bridge.
Purpose
Clears the counters for STP.
Displays information about STP by interface or
VLAN including BPDUs sent and received.
127