Pcornel
Networking · Switching › STP › STP Enhancements

PortFast

Cheat sheet · https://pcornel.dk/topic.php?topic=611

Back to the Topic

Answer

PortFast lets an access port connected to an end device go straight to forwarding instead of waiting through listening and learning (about 30 seconds). STP still runs on the port; combine it with BPDU Guard so an accidentally connected switch shuts the port.

Remember

PortFast marks a port as edge: it forwards immediately and its link flaps do not generate topology changes. STP is still running — if a BPDU arrives the port loses edge status and behaves normally. Only for single hosts; on a trunk to a server or hypervisor use the trunk variant. Always pair it with BPDU Guard.

First checks

show spanning-tree interface <if> portfast → enabled per VLAN. show spanning-tree vlan 10 → Type P2p Edge. show spanning-tree summary → whether Portfast Default and Portfast BPDU Guard Default are on.

Commands

show spanning-tree interface <interface> detail
Inspect per-interface STP role/state, cost, port ID and guard-related evidence.
spanning-tree portfast
Enable PortFast on an access port so it forwards immediately.
spanning-tree portfast trunk
Enable PortFast on a trunk port, for example toward a hypervisor.
spanning-tree portfast default
Enable PortFast on all access ports by default.
show spanning-tree interface <port> portfast
show spanning-tree vlan <vlan>
show spanning-tree summary

Verify in this order

PortFast configured (interface or global default on access ports) → port is edge → link up → forwarding at once, no topology change → BPDU received → edge status lost (or err-disabled with BPDU Guard)

Where it usually breaks

physical link → switchport/bundle membership → VLAN/instance state → STP/LAG decision → MAC forwarding → end-to-end frame path

PortFast · operational reference

State / evidenceInterpretation
PortFast enabledRapid edge transition
BPDU receivedEdge assumption may be false
BPDU GuardIndependent protection
ForwardingNot end-to-end proof

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=611

Confirmation

Confirm action

Continue?