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.
BPDU Filter
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
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.
Operational reference
Fast context before you go deeper.
spanning-tree bpdufilter enablePrimary Commands
Configuration and operational commands for this Topic.
spanning-tree bpdufilter enableReferenceStop sending and receiving BPDUs on the port; can create loops, use with care.
Use when: Suppress BPDUs only in a specifically designed scenario.
Quick note: Understand exact platform semantics; BPDU Guard is usually the safer protection for unexpected edge BPDUs.
Cisco IOS / IOS XE · mixedspanning-tree portfast bpdufilter defaultReferenceEnable BPDU Filter on all PortFast ports globally.
Use when: Use only in a design that intentionally requires filtered BPDUs on edge ports.
Quick note: Validate exact Cisco semantics and prefer narrower safer protections where possible.
Cisco IOS / IOS XE · mixedVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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_NOTIFmessages; both ends of a link areDesg 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.
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.
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:
| Form | Behaviour |
|---|---|
Global: spanning-tree portfast bpdufilter default | PortFast-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 enable | The 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 connected | Port reverts to normal STP | Loop possible |
| Safety | Fairly safe | Dangerous |
| Typical use | Hide BPDUs from hosts that don't need them | Deliberately 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.
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.
| Configuration | Behaviour |
|---|---|
| Global (PortFast ports) | Sends a few BPDUs at link-up, stops; reverts if BPDU received |
| Interface-level | No 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.
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
Configuration & expected output
Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.
Configuration example
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 enableExpected output
show spanning-tree interface GigabitEthernet1/0/24 detailExpected 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.Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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.
Quick lookup tables
BPDU Filter · operational reference
Compact state and interpretation boundaries for fast lookup.
| State / evidence | Interpretation |
|---|---|
| BPDU Guard | Detects and blocks violation |
| BPDU Filter | Suppresses BPDU visibility |
| Interface forwarding | Can exist without STP visibility |
| Use case | Narrow and explicit |
BPDU Filter operational reference
Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.
| Boundary | Known-good for BPDU Filter | Suspicious signature | Next proof |
|---|---|---|---|
| Intent | Matches suppression of BPDU transmission/processing whose scope and configuration mode can materially change loop-protection behavior design | Configuration differs from design/peer | Compare effective configuration |
| Control state | Stable expected region/role/topology/path state | interface-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 topology | Inspect protocol detail and adjacent state |
| Forwarding | Expected VLAN/egress/RIB/FIB path | Control state exists but traffic path disagrees | MAC/FIB/CEF/adjacency proof |
| Closure | Original test passes for explained reason | Symptom moved, was bypassed or protection disabled | Regression test |