Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

BPDU Filter

Direct 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.

When to use this

Use it when you must stop BPDUs leaving a port (for example toward a provider or another administrative domain), or when a port shows no BPDU activity and you suspect a filter.

First 30 seconds

1. BPDU Filter stops sending/receiving BPDUs — can create loops.

2. Global portfast bpdufilter default is safer (reverts when a BPDU arrives).

3. show spanning-tree interface Gi1/0/5 detail.

Operational verification

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

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Do not use filtering as a generic safety feature

BPDU filtering can remove the control-plane signal STP needs to detect loops. If the goal is to protect an endpoint edge from an attached switch, BPDU Guard is usually the safer conceptual fit because it reacts to the unexpected BPDU instead of hiding it.

Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE
Key commandspanning-tree bpdufilter enable
Scope / prerequisiteUse it when you must stop BPDUs leaving a port (for example toward a provider or another administrative domain), or whe…
Reference · 2
What next?3 suggested next steps
Catalog command links2
Evidence0
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

6 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 First 30 seconds Verify boundary

Immediate answer: Confirm whether BPDU Filter is intentionally scoped to this edge port and verify that suppressing BPDUs does not hide a switch-to-switch topology boundary.

Verification chain: edge intent → BPDU Filter scope → transmit/receive BPDU behavior → STP participation → topology role/state → traffic

Stop condition: BPDU filtering changes control-plane visibility, but it does not show the attached device is an endpoint or that loop risk is acceptable.

Step 2 Operational verification and known-good state Verify boundary
show running-config | include bpdufilter
show spanning-tree interface Gi1/0/24 detail
show spanning-tree summary

The first shows which form is configured. In the interface detail, Bpdu filter is enabled together with BPDU: sent 0, received 0 confirms an active interface filter. The summary shows Portfast BPDU Filter Default for the global form.

Known-good: the interface form appears only on documented boundary ports; host ports rely on PortFast and BPDU Guard.

Step 3 Verification and output interpretation Verify boundary

Verify the effective interface configuration and whether spanning-tree BPDUs are actually being sent or received. Packet capture or detailed spanning-tree counters can provide stronger evidence than configuration text alone. If a link appears to forward while the surrounding STP topology does not reflect it, determine whether filtering is intentionally hiding the adjacency before changing root priorities or path costs.

Step 4 Verification & troubleshooting Narrow the fault

1. show running-config | include bpdufilter → global form, interface form, or both.

2. show spanning-tree interface <port> detail → Bpdu filter is enabled and the sent/received counters.

3. Ask what is on the other side of the port and whether it could ever connect back into the network.

4. If the filter is only there to silence a host port, remove it and use PortFast with BPDU Guard.

5. After removal, check that the BPDU counters move and the port's role and state make sense.

Step 5 Failure signatures and troubleshooting branches Narrow the fault
  • Broadcast storm with %SW_MATM-4-MACFLAP_NOTIF messages; both ends of a link are Desg FWD. Interface filter on an inter-switch link.
  • A port toward a switch shows BPDUs sent 0. A filter is active there.
  • BPDU Guard never fires on a port where it should. BPDU Filter is configured on the same interface.
  • A provider reports receiving BPDUs from you. The hand-off port is the legitimate place for the interface form.
  • After enabling the global default, a port toward a switch behaves normally. Expected: it received a BPDU and reverted.
Step 6 When the problem is really fixed Narrow the fault
  • Every port with the interface filter is a documented boundary that cannot loop back.
  • No inter-switch link inside the network has a filter.
  • On former filtered ports the BPDU counters increase and roles are complementary on both ends.
  • Host ports use PortFast and BPDU Guard.
Command lookup Jump straight to Cisco syntax
Key points

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.

Key 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.

ReferenceWhat it is1 section · depth on demand

What it is

BPDU Filter stops a port from sending BPDUs and, in its interface form, from processing the ones it receives. Depending on how it is configured it is either a mild optimisation for edge ports or a way of switching spanning tree off on a port.

ReferenceWhy it matters1 section · depth on demand

Why it matters

It is the only spanning-tree feature that can remove loop protection. Used knowingly, it has a place at a boundary where BPDUs must not be exchanged with another party — a service-provider hand-off, for example. Used casually to "quiet down" a port, it hides the very signal that would have stopped a loop. The first thing to establish for any filtered port is which of the two forms is in use.

ReferenceImportant terms & boundaries6 sections · depth on demand

Key points

  • Global: spanning-tree portfast bpdufilter default — applies to PortFast ports. They send a few BPDUs at link-up and then stop; if a BPDU is received, the port drops PortFast and the filter and runs normal spanning tree.
  • Interface: spanning-tree bpdufilter enable — nothing is sent and received BPDUs are ignored, unconditionally.
  • With the interface form, each side believes it is alone: both ends become designated and forward.
  • Interface filter together with BPDU Guard: the filter wins.
  • For host ports, PortFast with BPDU Guard is the safer choice.
  • Every use of the interface form should be documented.

In depth

BPDU filter: stop sending and receiving BPDUs (use with care)

The Catalyst 9300 optional STP features guide describes two forms that behave very differently:

FormBehaviour
Global: spanning-tree portfast bpdufilter defaultPortFast-operational ports stop sending BPDUs after a few at link-up. If a BPDU arrives, the port loses PortFast status and filtering is turned off on it, so spanning tree runs normally
Interface: spanning-tree bpdufilter enableThe port neither sends nor receives BPDUs, with or without PortFast

The guide warns that the interface form is the same as disabling spanning tree on that port and can cause loops.

C9300(config)# spanning-tree portfast bpdufilter default
C9300(config)# interface GigabitEthernet1/0/44
C9300(config-if)# spanning-tree bpdufilter enable
C9300# show spanning-tree interface GigabitEthernet1/0/44 detail | include filter|BPDU
   Bpdu filter is enabled
   BPDU: sent 0, received 0
C9300# show spanning-tree summary | include Filter
PortFast BPDU Filter Default            is enabled

Global versus interface in practice

Global (portfast bpdufilter default)Interface (bpdufilter enable)
A switch is connectedPort reverts to normal STPLoop possible
SafetyFairly safeDangerous
Typical useHide BPDUs from hosts that don't need themDeliberately isolating STP domains (for example a provider handover)

BPDU filter versus BPDU guard

If both are configured on a port, filtering wins: the port never sees a BPDU, so BPDU guard never triggers. That removes the protection guard is meant to give.

Recommendation

Use BPDU guard on access ports instead. Reserve the interface form of BPDU filter for documented cases where the other side must not see your BPDUs, and make sure no loop is physically possible there.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Quick reference

BPDU Filter stops sending and receiving BPDUs on a port. Globally (spanning-tree portfast bpdufilter default) it applies to PortFast ports and removes PortFast and filtering if a BPDU arrives; per interface it disables STP on that port entirely.

ConfigurationBehaviour
Global (PortFast ports)Sends a few BPDUs at link-up, stops; reverts if BPDU received
Interface-levelNo BPDUs in or out — loops are possible

BPDU Guard is the safer choice for user ports; interface-level BPDU Filter is only for special cases such as provider handoffs.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Mechanics and state ownership

The two forms behave very differently, and the reason is what happens when a BPDU arrives.

The global form is tied to PortFast. An edge port has no need to send BPDUs to a PC, so after a short burst at link-up it stays silent. But it still listens: one received BPDU proves the edge assumption wrong, the port gives up both PortFast and the filter, and spanning tree works as usual. Protection is postponed, never removed.

The interface form does not listen. BPDUs are dropped on arrival and none are sent. Put that on a link between two switches and neither hears the other; both ports become designated and forward. If a second path exists between those switches, the result is a permanent loop that spanning tree cannot see — broadcast storm, MAC addresses flapping between ports, and high CPU. This is why the interface form belongs only where the far side cannot loop back.

State model and protocol mechanics

BPDU Filter suppresses spanning-tree BPDU transmission and/or reception depending on how it is applied. Because BPDUs carry the control-plane information that lets spanning tree detect redundant Layer-2 paths, filtering them changes the visibility of topology state and can create loop risk when used on the wrong link.

Limits and common misconceptions

BPDU Filter is not a safer version of BPDU Guard. Guard fails closed when an edge assumption is violated; filter can hide the control-plane signal entirely. A port that remains forwarding with BPDU Filter enabled does not show the Layer-2 topology is loop free. Avoid using it as a generic fix for unexpected BPDUs or slow STP transitions.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Use BPDU Filter only for a specifically understood edge requirement. Distinguish global PortFast BPDU-filter behavior from an interface-level command because their operational semantics can differ. Document why the port must suppress BPDUs, what device is connected, and what other mechanism guarantees that no Layer-2 loop can form behind the filtered boundary.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical examples

Configuration & expected output

Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.

Configuration example

Cisco IOS / IOS XE IEEE 802.1D-2004 / 802.1QThe safer global form, and the interface form for comparison

Assumptions: Lab switch; Rapid PVST+ (spanning-tree mode rapid-pvst); VLAN 10 exists.

! global: only affects PortFast ports, reverts when a BPDU is received
spanning-tree portfast bpdufilter default
!
! interface: disables spanning tree on the port — use only on a documented boundary
interface GigabitEthernet1/0/24
 spanning-tree bpdufilter enable

Expected output

Cisco IOS / IOS XE IEEE 802.1D-2004 / 802.1Qshow spanning-tree interface GigabitEthernet1/0/24 detail

Expected state: The filter is reported and both BPDU counters stand still.

Port 24 (GigabitEthernet1/0/24) of VLAN0010 is designated forwarding
   Port path cost 4, Port priority 128, Port Identifier 128.24.
   Link type is point-to-point by default
   Bpdu filter is enabled
   BPDU: sent 0, received 0
! Illustrative output, not captured Evidence.
The port forwards but exchanges no BPDUs. Nothing on this port can influence the tree, and nothing on it is protected by the tree.
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Switching → STP → STP Enhancements → BPDU Filter. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
bpdu filter
Embedded reference data

Quick lookup tables

BPDU Filter · operational reference

Compact state and interpretation boundaries for fast lookup.

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

BPDU Filter operational reference

Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.

BoundaryKnown-good for BPDU FilterSuspicious signatureNext proof
IntentMatches suppression of BPDU transmission/processing whose scope and configuration mode can materially change loop-protection behavior designConfiguration differs from design/peerCompare effective configuration
Control stateStable expected region/role/topology/path stateinterface-level filtering applied to an inter-switch link, global and interface behavior confused, or a silent Layer-2 loop because both sides suppress the BPDUs that would have exposed the topologyInspect protocol detail and adjacent state
ForwardingExpected VLAN/egress/RIB/FIB pathControl state exists but traffic path disagreesMAC/FIB/CEF/adjacency proof
ClosureOriginal test passes for explained reasonSymptom moved, was bypassed or protection disabledRegression test
Confirmation

Confirm action

Continue?