Configuring PortFast
How to configure PortFast

Spanning Tree PortFast causes an interface configured as a Layer 2 access port to enter the forwarding state immediately, bypassing the STP listening and learning states. It is to be enabled only on access ports connected to end devices.

Configure PortFast
To enable PortFast on a Layer 2 access port, use this command:

Switch(config-if)#[no] spanning-tree portfast

Verify PortFast
To display interface information, including PortFast configuration, use this command:

Switch#show running-config interface {{fastethernet | gigabitethernet} slot/port} | {port-channel port_channel_number}