cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
387
Views
0
Helpful
1
Replies

Route learn from ebgp and ibgp

acbenny
Level 1
Level 1

When a router learn the same route from ospf and eigrp,

eigrp will be prefer.

How about if the route learn from ebgp and ibgp.

is it this time compare by bgp attribute? not AD 20 and 200

1 Reply 1

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Jack,

the answer is yes the two BGP paths are first compared in the separate BGP tables so there is a lot of methods to influence the best path choice.

After BGP choices its own best path that path with its AD is compared to any other entry coming from other routing protocols the best is installed in the routing table

So if you have an eBGP path an iBGP path and an OSPF path for the same prefix.

If you make the iBGP path preferred over the eBGP path (using weight, local-preference ..) the end result should be to see the OSPF route installed in the routing table (AD 110 < AD 200)

Hope to help

Giuseppe