Configuring STP Extensions Using Cisco NX-OS
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
This example shows how to configure all access ports connected to Layer 2 hosts as spanning tree edge ports:
switch# config t
switch(config)# spanning-tree port type edge default
switch(config)# exit
switch#
Command or Action
config t
Example:
switch# config t
switch(config)#
spanning-tree port type edge default
or spanning-tree port type network
default
Example:
switch(config)# spanning-tree
port type edge default
exit
Example:
switch(config)# exit
switch#
show spanning-tree summary
Example:
switch# show spanning-tree
summary
copy running-config startup-config
Example:
switch# copy running-config
startup-config
Cisco Nexus 9000 Series NX-OS Layer 2 Switching Configuration Guide, Release 7.x
Configuring Spanning Tree Port Types Globally
Purpose
Enters configuration mode.
• spanning-tree port type edge default
Configures all access ports connected to Layer 2
hosts as edge ports. Edge ports immediately
transition to the forwarding state without passing
through the blocking or learning state at linkup. By
default, spanning tree ports are normal port types.
• spanning-tree port type network default
Configures all interfaces connected to Layer 2
switches and bridges as spanning tree network ports.
If you enable Bridge Assurance, it automatically
runs on network ports. By default, spanning tree
ports are normal port types.
If you configure interfaces connected to
Note
Layer 2 hosts as network ports, those ports
automatically move into the blocking state.
Exits configuration mode.
(Optional)
Displays the STP configuration including STP port types
if configured.
(Optional)
Copies the running configuration to the startup
configuration.
161