
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Labels:
-
LAN Switching
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2019 12:45 AM
The global configuration is more intricate. Similar to the BPDU Guard feature, the global BPDU Filter is enabled on interfaces in operational PortFast state. In global mode, the switch does not filter incoming BPDUs, but most (though not all) outgoing BPDUs are filtered. When a port comes up, 11 BPDUs are sent out. If BPDUs are received, the PortFast and BPDU Filter features are disabled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019 12:59 AM
In global mode, the switch does not filter incoming BPDU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2019 07:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- portfast to be enabled to save precious time of hosts coming up
John: Portfast yes and BPDU filter on an interface level yes but not BPDU on a global level.
- no BPDU Guard enabled because you don't want ports to be shutdown.
John: I agree.
- to protect from switching loops that there is always a chance of (for this reason you don't want to use BPDU filter on the interface level)
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2019 11:41 PM - edited 02-19-2019 11:42 PM
Adding +++
Interface mode
spanning-tree bpduguard enable (Puts port in errdisable upon receiving any bpdu).
Global mode
spanning-tree portfast bpduguard default (It enables bpduguard on ports that have port-fast configuration, puts port in errdisable upon receiving a bpdu).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2019 12:45 AM
The global configuration is more intricate. Similar to the BPDU Guard feature, the global BPDU Filter is enabled on interfaces in operational PortFast state. In global mode, the switch does not filter incoming BPDUs, but most (though not all) outgoing BPDUs are filtered. When a port comes up, 11 BPDUs are sent out. If BPDUs are received, the PortFast and BPDU Filter features are disabled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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***
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.
Kind Regards
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
