Pcornel
Networking · Switching › STP › STP Enhancements

BPDU Filter

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

Back to the Topic

Answer

BPDU Filter stops a port from sending and receiving BPDUs. Configured globally it only affects PortFast ports and turns PortFast off if a BPDU arrives; configured on an interface it disables STP there completely, which can cause loops — use with great care.

Remember

Two very different behaviours. Global (portfast bpdufilter default): PortFast ports stop sending BPDUs, but a received BPDU removes PortFast and the filter, so STP protection returns. Interface (bpdufilter enable): BPDUs are neither sent nor processed — spanning tree is off on that port and a loop behind it will not be detected. On the same port the filter overrides BPDU Guard.

First checks

show spanning-tree interface <if> detail → Bpdu filter is enabled and the sent/received counters. show running-config | include bpdufilter → global or interface form. show spanning-tree summary → Portfast BPDU Filter Default.

Commands

spanning-tree bpdufilter enable
Stop sending and receiving BPDUs on the port; can create loops, use with care.
spanning-tree portfast bpdufilter default
Enable BPDU Filter on all PortFast ports globally.
show spanning-tree interface <port> detail

Verify in this order

filter form (global default vs interface) → global: edge port stays silent until a BPDU arrives, then normal STP → interface: no BPDUs in or out, STP blind on the port → a loop behind the port is not blocked

Where it usually breaks

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

BPDU Filter · operational reference

State / evidenceInterpretation
BPDU GuardDetects and blocks violation
BPDU FilterSuppresses BPDU visibility
Interface forwardingCan exist without STP visibility
Use caseNarrow and explicit

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

Confirmation

Confirm action

Continue?