Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)

PurposeCommand or Action
If you configure interfaces connected to hosts as network
ports, those ports automatically move into the blocking
state.
Note
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.
If you enter the spanning-tree port type edge trunk command, the port is configured
as an edge port even in the access mode.
Note
spanning-tree port type normal—This command explicitly configures the port as a normal spanning
tree port and the immediate transition to the forwarding state is not enabled.
no spanning-tree port type—This command implicitly enables edge behavior if you define the
spanning-tree port type edge default command in global configuration mode. If you do not configure
the edge ports globally, the no spanning-tree port type command is equivalent to the spanning-tree
port type disable command.
Before You Begin
Ensure that STP is configured.
Ensure that the interface is connected to hosts.
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
204 OL-16597-01
About STP Extensions
Configuring Spanning Tree Edge Ports on Specified Interfaces