02-14-2019 11:54 PM - edited 03-08-2019 05:21 PM
After some study, I understand that BPDU filter global command will enable BPDU filter on PortFast enabled ports and stop those ports from send/receive BPDUs. According to Cisco article, if those ports received BPDUs, PortFast will lose it state and go back normal STP transition and BPDU filtering also disabled. So, my question is how does a port receive BPDU when filtering is ON? Isn't it should filtering out all BPDUs and those portfast ports shall remain its state?
Solved! Go to Solution.
02-20-2019 12:45 AM
02-15-2019 12:59 AM
02-19-2019 07:56 PM
02-19-2019 11:38 PM
If i designed the network i would not assume, i would know/find out if it is a host or a switch connected, i would not take a gamble. To that end, i still don't see the use of BPDU on a global level.
Your answers
You would use it in a switching environment where you want
John: Portfast yes and BPDU filter on an interface level yes but not BPDU on a global level.
John: I agree.
John: I would have thought it was the reverse of what you say. If i use BPDU on an interface level there is now way i can cause a loop because Portfast is i will not receive or send BPDU's.
https://learningnetwork.cisco.com/thread/43896
BR
Tayyab
02-19-2019 11:41 PM - edited 02-19-2019 11:42 PM
Adding +++
spanning-tree bpduguard enable (Puts port in errdisable upon receiving any bpdu).
spanning-tree portfast bpduguard default (It enables bpduguard on ports that have port-fast configuration, puts port in errdisable upon receiving a bpdu).
02-20-2019 12:45 AM
02-20-2019 04:50 AM
Hi,
BPDU filter disables spanning-tree on a port period. It does this by restricting sending and receiving BPDU’s. Simple enough. When enabled on a global level, BPDU filter will apply to all portfast ports. When a port links up it will transmit some BPDU’s out before the port starts to filter BPDUs.
Remember that if a BPDU is received on a portfast interface, the interface will lose portfast status and because BPDU filtering relies on this it will become disabled.
Regards,
Deepak Kumar
12-12-2021 02:03 AM - edited 12-12-2021 02:05 AM
BPDUfilter just filters BPDUs in both directions, which effectively disables STP on the port. Bpdu filter will prevent inbound and outbound bpdu but will remove portfast state on a port if a bpdu is received. Enabling BPDU filtering on an interface is the same as disabling spanning tree on it and can result in spanning-tree loops. So it's basically just to let you know that this access port is connected to a switch and it's not an end user.
*** Please rate all helpful responses and mark solutions***
02-20-2019 02:46 AM - edited 02-20-2019 02:57 AM
Hello
Tested in 802.1d stp:
spanning-tree portfast bpdufilter default (Global - no stp postfast) -listening/learning/forwarding (rouge switch becomes root no filtering occurs)
spanning-tree bpdufilter enable (interface mode - no stp postfast)) -listening/learning/forwarding (rouge switch becomes root no filtering occurs)
(global command)
spanning-tree portfast default
spanning-tree portfast bpdufilter default- jumps to forwarding from blocking (rouge switch becomes root no filtering occurs)
spanning-tree portfast bpdufilter default
spanning-tree portfast – (interface mode) -jumps to forwarding from blocking (rouge switch becomes root no filtering occurs)
spanning-tree portfast default
spanning-tree bpdufilter enable – (interface mode) jumps to forwarding from blocking ( keeps root status – bpdu’s are filtered)
spanning-tree portfast – (interface mode)
spanning-tree bpdufilter enable– (interface mode) jumps to forwarding from blocking ( keeps root status – bpdu’s are filtered)
Tested in 802.1w stp:
Portfast - (global)
spanning-tree portfast bpdufilter default (Global) transmits 2x proposals goes into Fwd state - no blocking (rouge switch becomes root no filtering occurs)
Portfast - (global)
spanning-tree bpdufilter enable (interface mode) -initializes port goes straight to fwd state (so looks like bpdu’s are filtered)
spanning-tree portfast (interface)
spanning-tree portfast bpdufilter enable- initializes port goes straight to fwd state (so looks like bpdu’s are filtered)
11-02-2022 07:09 PM - edited 11-02-2022 07:39 PM
Hi Paul,
Do you have a insight or result for the following configuration and what the outcome of the logic is?
spanning-tree portfast default [global command]
spanning-tree portfast bpduguard default [global command]
spanning-tree portfast bpdufilter [interface command]
spanning-tree portfast disabled [interface command]
Thanks in advance!
- Gladston
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide