Configuring STP Extensions

Configuring STP Extensions

Procedure

 

Command or Action

Purpose

 

Step 1

switch# configure terminal

Enters configuration mode.

Step 2

switch(config)# spanning-tree

Configures all interfaces as edge ports. This assumes all ports are

 

port type edge default

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.

Step 3

switch(config)# spanning-tree

Configures all interfaces as spanning tree network ports. This

 

port type network default

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.

 

 

Note

If you configure interfaces connected to hosts as network

 

 

 

ports, those ports automatically move into the blocking

 

 

 

state.

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 edgeThis command explicitly enables edge behavior on the access port.

spanning-tree port type edge trunkThis command explicitly enables edge behavior on the trunk port.

Note If you enter the spanning-tree port type edge trunk command, the port is configured as an edge port even in the access mode.

spanning-tree port type normalThis command explicitly configures the port as a normal spanning tree port and the immediate transition to the forwarding state is not enabled.

 

Cisco Nexus 3000 NX-OS Layer 2 Switching Configuration Guide, Release 5.0(3)U3(1)

118

OL-26590-01

Page 132
Image 132
Cisco Systems N3KC3048TP1GE, N3KC3064TFAL3 manual Port type edge default, Port type network default