DETAILED STEPS
PurposeCommand or Action
Enables privileged EXEC mode. Enter your password if prompted.enable
Step 1
Example:
Switch> enable
Enters the global configuration mode.configure terminal
Example:
Switch# configure terminal
Step 2
Specifies an interface to configure, and enters interface configuration
mode.
interface interface-id
Example:
Switch(config)# interface
Step 3
gigabitethernet1/0/2
Enables PortFast on an access port connected to a single workstation or
server. By specifying the trunk keyword, you can enable PortFast on a
trunk port.
spanning-tree portfast [trunk]
Example:
Switch(config-if)# spanning-tree
Step 4
To enable PortFast on trunk ports, you must use the
spanning-tree portfast trunk interface configuration command.
The spanning-tree portfast command will not work on trunk
ports.
Make sure that there are no loops in the network between the
trunk port and the workstation or server before you enable
PortFast on a trunk port.
Note
By default, PortFast is disabled on all interfaces.
portfast trunk
Returns to privileged EXEC mode.end
Example:
Switch(config-if)# end
Step 5
What to Do Next
You can use the spanning-tree portfast default global configuration command to globally enable the PortFast
feature on all nontrunking ports.
Related Topics
PortFast, on page 288
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
303
How to Configure Optional Spanning-Tree Features