BPDU filter
termKept in this browser · My desk
A switch setting that stops a port from sending or receiving spanning tree BPDUs, which in effect takes the port out of spanning tree.
Cisco's Catalyst guide is blunt: enabling BPDU filtering on an interface is the same as disabling spanning tree on it and can result in loops; it is disabled by default. The Linux bridge documentation describes its disabled port state as also called BPDU filter, for an untrusted port such as a leaf virtual device. Juniper's nearest equivalent is BPDU protection with action drop, which keeps a port up while dropping BPDUs and is not supported on edge ports.
What it is. BPDU filtering is a switch port setting that stops the port from sending, and usually from receiving and processing, spanning tree BPDUs (bridge protocol data units), which in effect takes the port out of spanning tree. Its legitimate use is narrow: a port facing an end device that must never hear or speak spanning tree. Its danger is broad, because the BPDUs it hides are the only way the switch can notice that a second path to the same segment has appeared.
What the vendors say. Cisco's Catalyst guide is blunt: enabling BPDU filtering on an interface is the same as disabling spanning tree on it and can result in loops; it is disabled by default. In Cisco's description it keeps interfaces that are in a PortFast operational state from sending or receiving BPDUs. The Linux bridge documentation describes its disabled port state as also called BPDU filter, for an untrusted port such as a leaf virtual device. Juniper's nearest equivalent is BPDU protection with action drop, which keeps a port up while dropping BPDUs and is not supported on edge ports. The IEEE (Institute of Electrical and Electronics Engineers) 802.1Q management model has no filter setting at all; it defines how a port detects bridges, not how to stop hearing them.
Where BPDUs go when nobody runs the protocol. BPDUs are sent to the Bridge Group Address 01-80-C2-00-00-00, one of the reserved link-local addresses 01-80-C2-00-00-00 to 0F that the Linux source lists with their users (802.3 MAC Control, link aggregation, 802.1X port access, and 802.1AB LLDP (Link Layer Discovery Protocol) at 0E). A bridge that runs spanning tree consumes them. A bridge that does not run it has a choice, and the choice decides whether loops stay visible: Linux forwards the Bridge Group Address when STP (Spanning Tree Protocol) is off, with a source comment saying it must, to keep loop detection; Fortinet's FortiSwitchOS blocks STP packets arriving at any port unless the administrator ticks Flood BPDU Packets, an option offered only when MSTP (Multiple Spanning Tree Protocol) is disabled. A switch that passes BPDUs is transparent to the outer tree, which still sees and blocks a loop through it; a switch that drops them behaves like an unconfigured BPDU filter, which is exactly the case Aruba gives for adding probe-based loop protection.
A worked case. Access switch S has ports 7 and 8 cabled, by mistake, to the same small desk switch. With nothing configured, S sends BPDUs out of port 7, receives them back on port 8, sees two paths to the same segment and blocks one port. With BPDU guard on both ports, the first BPDU that arrives shuts the port. With BPDU filtering on both, S neither sends nor receives BPDUs there, both ports forward, and the first broadcast circulates: the filter has converted a recoverable mistake into a bridging loop.
Not a guard. A filter makes a rogue device's BPDUs disappear, and with them the switch's only way of noticing that a second path to the same segment has appeared, such as a second cable from the same desk or a small switch looped back on itself. BPDU guard, which disables the port when a BPDU arrives, and root guard, which blocks it only against a superior root claim, protect the tree; a filter switches the tree off for that port. Juniper's action drop sits in between: the port stays up, the BPDUs are dropped, and the operator relies on something else to find a loop.
When it is used anyway. Filtering appears where BPDUs would cause harm or noise: ports facing virtual machines and other leaf devices that should never take part, the Linux documentation's example of an untrusted port. In every such case the loop protection has to come from somewhere else: probe-based loop detection, storm control, a single cable by design, or a protocol that does not rely on the bridge tree.
What goes wrong. The classic failure is a filter left on a port that later faces a switch: the network works until someone adds a second cable. And because no error appears, a filter is easy to forget in an audit. Neighbours: BPDU, spanning tree, STP, root guard, BPDU guard, loop guard, loop detection and broadcast storm.
Also known as: bpdu filter, bpdu filtering, bpdufilter, filtro de bpdu
Sources
- Cisco, Layer 2 Configuration Guide, IOS XE 17.12.x (Catalyst 9300), Configuring Optional Spanning-Tree Features, 28 July 2023, read through WebFetch (read 2026-11-23): BPDU guard error-disables; BPDU filtering is the same as disabling spanning tree and can cause loops, disabled by default; root guard places the interface in the root-inconsistent (blocked) state, disabled by default
- The Linux kernel documentation, Ethernet bridging (read 2026-11-23): IFLA_BR_FDB_MAX_LEARNED; IFLA_BRPORT_GUARD disables a port that receives a BPDU; IFLA_BRPORT_PROTECT, root port guard, against a hostile guest rerouting traffic; the disabled state, also called BPDU filter
- Juniper Networks, BPDU Protection for Spanning-Tree Protocols (read 2026-11-23): by default all BPDUs are accepted on all interfaces; bpdu-block and bpdu-block-on-edge disable the interface; action drop keeps it up and drops BPDUs, not supported on edge ports
- Linux kernel source, net/bridge/br_input.c (read 2026-11-23): link-local group addresses 01-80-C2-00-00-00 to 0F listed (Bridge Group Address, 802.3 MAC Control, Link Aggregation, 802.1X PAE, 802.1AB LLDP at 0E); the Bridge Group Address is forwarded when STP is off, so that loop detection still works, otherwise consumed
- Fortinet, FortiSwitchOS 7.2.2 Administration Guide, MSTP configuration (read 2026-11-23): STP and edge port enabled on all ports by default; edge ports go straight to forwarding; STP loop protection off by default and recommended on all nondesignated ports; root guard on ports that should not lead to the root, never on the root port; BPDU guard needs an edge port, with a port timeout of up to 120 minutes, 5 by default, reset with execute bpdu-guard reset; Flood BPDU Packets passes STP packets through only when MSTP is disabled, otherwise they are blocked
- IEEE 802.1, ieee802-dot1q-rstp YANG module, revision 2025-02-04 (read 2026-11-23): admin-edge-port default false, oper-edge-port becomes false when a BPDU is received, auto-edge-port default true; restricted-role (Alternate Port instead of Root Port) and restricted-tcn (no propagation of topology changes, no address flushing); last-topology-change; no guard or filter leaf
- IEEE Standards Association, IEEE 802.1AB-2016, Station and Media Access Control Connectivity Discovery (LLDP), standard page (read 2026-11-23): a protocol and managed objects for discovering the physical topology from adjacent stations; Board approval 29 January 2016, published 11 March 2016, superseded by 802.1AB-2026