spanning-tree port-type

Syntax

spanning-tree port-type {admin-edge|admin-network}

no spanning-tree port-type [admin-edge|admin-network]

Description

Sets the STP port type for the interface.

Port types include: admin-edge and admin-network.

The no form of the command sets the port type to the default of admin-network.

Command context

config-if

Parameters

admin-edge

Specifies the port type as administrative edge. During spanning tree establishment, ports with admin-edge enabled transition immediately to the forwarding state.

admin-network

Specifies the port type as administrative network. When this option is selected, the port looks for BPDUs for the first 3 seconds. If there are none, the port is classified as an edge port and immediately starts forwarding packets. If BPDUs are seen on the port, the port is classified as a non-edge port and normal STP operation commences on that port.

Authority

Administrators

Examples

Setting the port type to admin-edge on interface 1/1/1:

switch(config)# interface 1/1/1
switch(config-if)# spanning-tree port-type admin-edge

Setting the port type to admin-network on interface 1/1/1:

switch(config)# interface 1/1/1
switch(config-if)# spanning-tree port-type admin-network

Setting the port type to the default of admin-network on interface 1/1/1:

switch(config)# interface 1/1/1
switch(config-if)# no spanning-tree port-type