portfast and bpdufilter

What's the difference between portfast and bpdufilter ? They both block the bpdu prevent a loop ?


spanning-tree bpdufilter enable

spanning-tree portfast
AXISHKAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dmdaviesNetwork Systems EngineerCommented:
BPDUfilter filters BPDUs in both directions, which will actually disable STP on the port.  Bpdu filter prevents inbound and outbound bpdu and will remove the 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.

spanning-tree portfast enables you to bypass the listening, learning states of STP on a trunk or access port, and is intended more for connecting single host devices, if you configure this on a port connecting to another switch you still run the risk of a network loop.
AXISHKAuthor Commented:
" Bpdu filter prevents inbound and outbound bpdu and will remove the portfast state on a port, if a bpdu is received. "

If it is enabled, bpud shouldn't be received as it has been filtered out.  Why a bpud can still be received in the statement ?

Where should we apply bpdufilter ? Tks
dmdaviesNetwork Systems EngineerCommented:
Apologies my comment was in the context of "spanning-tree portfast bpdufilter default"  (a global command) which enables bpdu filtering on all ports configured with portfast, the difference here is that when a port then receives a bpdu packet it reverts to behaving like a normal port, essentially removing the portfast functionality from that port.

If you apply the interface specific configuration:- spanning-tree bpdufilter enable, then as you say you will filter all bpdu's - however you need to be certain of your switch topology with this approach as you would run the risk of a loop occurring.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Don JohnstonInstructorCommented:
Portfast just bypasses the initial listening/learning phase when a port comes up. Portfast does not alter the behavior of BPDUs.

BPDU filter stops sending of BPDUs.

IMO, it is rarely a good idea to use BPDU filter.  It was originally created to solve a problem that simply doesn't exist anymore.
AXISHKAuthor Commented:
Tks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Switches / Hubs

From novice to tech pro — start learning today.