cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
492
Views
5
Helpful
5
Replies

BGP ROUTE SELECTIONS

zeeshanr202
Level 1
Level 1

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.

5 Replies 5

bvsnarayana03
Level 5
Level 5

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:

http://www.cisco.com/en/US/tech/tk1330/tsd_technology_support_technical_reference_chapter09186a00807597c7.html

Harold Ritter
Cisco Employee
Cisco Employee

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,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

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 !

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.

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,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
Getting Started

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:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco