11-30-2007 07:08 PM - edited 03-05-2019 07:45 PM
i have a question
Adminstrative distance determines the trust worthiness of routing protocol
For example if routerA receives update 10.0.0.0 from rip and ospf, routerA will consider ospf update because ospf had ad Of 110 while rip has ad of 120.
Ebgp has ad of 20 while ibgp has ad of 200 .
Thus ebgp is more trust worthy than ibgp
however when i look at the selection process, i found the following:
1)weight
2 ) local preference
3) as path
4)med
5) ibgp over ebgp
i may have misplaced the attributes in the list .
So if router receives update 10.0.0.0
from ebgp and ibgp, router should intall ebgp update because ebgp has ad of 20 but i read in cisco book this is not the case.
router will consider the attributes of the path to select the best path.
any idea why AD is not considered in bgp the way Ad is considered for rip and ospf to determines the best routing source then best path ?
thanks alot and have good day.
11-30-2007 08:54 PM
you are probably confused with Origin attribute which says how a BGP route is learnt. It says routes learnt from IGP are preferred over routes learnt from EGP.
Then there is path selection, if same route is learnt from eBGP & iBGP then eBGP path is preferred over the other.
You seem to have confused between the two. Refer this link for clarity:
12-02-2007 11:44 AM
The AD only comes into play when the same route is learnt from different protocols, so it is irrelevant to the BGP best path selection.
This selection process will definitely prefer the path from ebgp over the one learnt via ibgp assuming other attributes compared previously are the same.
Regards,
12-02-2007 09:53 PM
thanks a lot for response. please correct me if iam wrong.
Router first selects the routing protocol by Ad if it is receiving same route from more than one
routing protocols. Then, it chooses the best path from others reported by routing protocol.
So router first chooses routing source then the best path from the paths reported by routing protocol.
I expect, the router receiving same route from
ibgp which has Ad of 200 and from Ebgp which has Ad of 20 to choose the routing protocol which should be ebgp.
After choosing the routing source based on Ad, router should now choose the best path from the paths reported by ebgp.
why is it not so in bgp?
thanks and have a good day !
12-02-2007 11:28 PM
Your understanding is correct. But is there any isntance you can bring to our notice which could support the statement in your posting about IBGP path being chosen.
12-03-2007 06:10 AM
Zeeshan,
It is actually the other way around. Each protocol first selects its best path and if the route is learnt via two or more routing protocols then the AD is used to pick the one that will be installed in the riuting table.
Regards,
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: