Configuring STP Extensions
Before You Begin
Ensure that STP is configured.
Ensure that you are configuring the ports correctly for the type of device to which the interface is connected.
Procedure
Step 1
Step 2
Step 3
This example shows how to configure all access and trunk ports connected to hosts as spanning tree edge
ports:
switch# configure terminal
switch(config)# spanning-tree port type edge default
This example shows how to configure all ports connected to switches or bridges as spanning tree network
ports:
switch# configure terminal
switch(config)# spanning-tree port type network default
Configuring Spanning Tree Edge Ports on Specified Interfaces
You can configure spanning tree edge ports on specified interfaces. Interfaces configured as spanning tree
edge ports immediately transition to the forwarding state without passing through the blocking or learning
states on linkup.
This command has four states:
• spanning-tree port type edge—This command explicitly enables edge behavior on the access port.
• spanning-tree port type edge trunk—This command explicitly enables edge behavior on the trunk
port.
Cisco Nexus 6000 Series NX-OS Layer 2 Switching Configuration Guide, Release 7.x
98
Command or Action
switch# configure terminal
switch(config)# spanning-tree
port type edge default
switch(config)# spanning-tree
port type network default
Purpose
Enters global configuration mode.
Configures all interfaces as edge ports. Using this command
assumes all ports are connected to hosts/servers. 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.
Configures all interfaces as spanning tree network ports. Using
this command assumes all ports are connected to switches and
bridges. 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 hosts as network
Note
ports, those ports automatically move into the blocking
state.
Configuring STP Extensions