LOGBOOK

HELP

Quiz Entry - updated: 2026.07.05

What is PortFast, where should it be enabled, and what is the critical rule about where it must NOT be used?

PortFast bypasses the STP (Spanning Tree Protocol) Listening and Learning states so an access port transitions directly to Forwarding. It must ONLY be enabled on ports connected to end devices — NEVER on inter-switch links, or it will create spanning-tree loops.

The problem PortFast solves:

  • Without PortFast, when a device is plugged into a switch port, STP makes the port wait through Listening (15 sec) and Learning (15 sec) states before reaching Forwarding
  • Total delay: 30 seconds before the device gets network access
  • This causes DHCP (Dynamic Host Configuration Protocol) timeouts, PXE boot failures, and user frustration

With PortFast:

  • Port goes directly from BlockingForwarding — no 30-second delay
  • The device gets immediate network access

Configuration:

! Per-interface:
Switch(config)# interface Fa0/1
Switch(config-if)# switchport mode access
Switch(config-if)# spanning-tree portfast

! Globally (all access ports):
Switch(config)# spanning-tree portfast default

The CRITICAL rule: PortFast must NEVER be enabled on ports connected to other switches (inter-switch links). If a PortFast-enabled port receives BPDUs (Bridge Protocol Data Units) from another switch, it could create a spanning-tree loop because the port bypassed STP convergence.

Verification:

Switch# show spanning-tree interface Fa0/1 detail
  The port is in the portfast mode

Switch# show spanning-tree summary
  PortFast Default            : enabled

Go deeper:

From Quiz: NETW2 / Switch Security Configuration | Updated: Jul 05, 2026