BGP Path Attributes and Best Path Algorithm

BGP Best path algorithm state that "Locally injected is better than iBGP/eBGP learned".

However, based on the Administrative distance :

EIGRP summary route        5
eBGP                                20
EIGRP                                 90
IGRP                              100
OSPF                             110

For "Locally injected ", does it exclude "redistribution" ?

Thx
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.

JustInCaseCommented:
Locally injected BGP routes does not exclude redistributed routes. Any route advertised by local router is considered locally injected (advertised into BGP by network command or redistributed routes learned via IGP into BGP). Generally, locally injected routes, on Cisco routers by default, will have weight  32768.

Is route redistributed or not - is marked in Origin attribute, if redistributed (and not tempered with attribute) will have "?" incomplete origin .
0
AXISHKAuthor Commented:
A redistrbuted OSPF route has a default administrative distance of 110. Hence, administrative distance of eBGP 20 should be prefered. Why the statement state that "Locally injected is better than iBGP/eBGP learned" ?

Thx
0
JustInCaseCommented:
We are taking about OSPF route redistributed into BGP, not about route redistributed into OSPF. Router learned route via OSPF and redistributed it into BGP and then comparing it to other BGP route. The BGP best path algorithm is about comparing BGP routes, it has nothing to do with comparing BGP against OSPF routes.

When it comes to compare attribute - locally injected BGP route is better than BGP route learned via iBGP/eBGP. It is local decision for router, so can be translated as: "I will trust more to the route that I injected into BGP than what other BGP routers tell me about that network".
0

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
JustInCaseCommented:
sh ip bgp
      Network              Next Hop        Metric LocPrf Weight Path
*> 15.12.15.0/24       0.0.0.0                0                     32768     ?

I always forget to mention that locally injected routes have next hop of 0.0.0.0 (this router).
0
AXISHKAuthor Commented:
Thx.
0
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
Cisco

From novice to tech pro — start learning today.