Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)
PurposeCommand or Action
Specifies the interface to configure, and enters the interface
configuration mode.
switch(config)# interface type
slot/port
Step 2
Configures the specified access interfaces to be spanning
edge ports. Edge ports immediately transition to the
switch(config-if)# spanning-tree
port type edge
Step 3
forwarding state without passing through the blocking or
learning state at linkup. By default, spanning tree ports are
normal port types.
This example shows how to configure the Ethernet access interface 1/4 to be a spanning tree edge port:
switch# configure terminal
switch(config)# interface ethernet 1/4
switch(config-if)# spanning-tree port type edge
Configuring Spanning Tree Network Ports on Specified Interfaces
You can configure spanning tree network ports on specified interfaces.
Bridge Assurance runs only on spanning tree network ports.
This command has three states:
• spanning-tree port type network—This command explicitly configures the port as a network port. If
you enable Bridge Assurance globally, it automatically runs on a spanning tree network port.
• spanning-tree port type normal—This command explicitly configures the port as a normal spanning
tree port and Bridge Assurance cannot run on this interface.
• no spanning-tree port type—This command implicitly enables the port as a spanning tree network
port if you define the spanning-tree port type network default command in global configuration mode.
If you enable Bridge Assurance globally, it automatically runs on this port.
A port connected to a host that is configured as a network port automatically moves into the blocking
state.
Note
Before You Begin
Ensure that STP is configured.
Ensure that the interface is connected to switches or routers.
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Specifies the interface to configure, and enters the interface
configuration mode. The interface can be a physical
Ethernet port.
switch(config)# interface type
slot/port
Step 2
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01 205
About STP Extensions
Configuring Spanning Tree Network Ports on Specified Interfaces