To configure all access ports that are connected to hosts as edge ports by default, use the spanning-tree port type edge default command. To restore all ports connected to hosts as normal spanning tree ports by default, use the no form of this command.
spanning-tree port type edge default
no spanning-tree port type edge default
This command has no arguments or keywords.
Disabled
Global configuration mode
Release
|
Modification
|
---|---|
4.0(0)N1(1a)
|
This command was introduced.
|
Use this command to automatically configure all interfaces as spanning tree edge ports by default. This command will not work on trunk ports.
Caution Be careful when using this command. You should use this command only with interfaces that connect to end stations; otherwise, an accidental topology loop could cause a data-packet loop and disrupt the switch and network operation.
When a linkup occurs, an interface configured as an edge port automatically moves the interface directly to the spanning tree forwarding state without waiting for the standard forward-time delay. (This transition was previously configured as the Cisco-proprietary PortFast feature.)
When you use this command, the system returns a message similar to the following:
You can configure individual interfaces as edge ports using the spanning-tree port type edge command.
The default spanning tree port type is normal.
This example shows how to globally configure all ports connected to hosts as spanning tree edge ports:
Command
|
Description
|
---|---|
show spanning-tree summary
|
Displays information about the spanning tree configuration.
|
spanning-tree port type edge
|
Configures an interface as a spanning tree edge port.
|