Get BGP to use least AS hops with 2 routers

Answered Question
Jul 23rd, 2008

I have a common setup with 2 BGP routers going to 2 different ISPs and taking in full BGP routes. Is there an easy way to get router 1 to use the least AS hops if it is through router 2? The eBGP routes have a lower admin value and will always be preffered over iBGP routes even if they are more AS hops. I would prefer not to run OSPF or get a 3rd router. Can the admin value of iBGP just be decreased to 20 to solve this?

I have this problem too.
0 votes
Correct Answer by Edison Ortiz about 8 years 4 months ago

Administrative distance are used when comparing between 2 different routing protocols. For instance, eBGP vs OSPF.

Within BGP (eBGP vs iBGP), the BGP Path Algorithm is used instead.

HTH,

__

Edison.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
glenn.newman Thu, 07/24/2008 - 08:47

That is the way that I assumed that it worked until I read some Cisco doc that said that eBGP with an admin distance of 20 will always be preferred over the same iBGP route with an admin distance of 200. That made sense to me since admin distances are normally considered before a routing protocols metric.

Correct Answer
Edison Ortiz Thu, 07/24/2008 - 09:22

Administrative distance are used when comparing between 2 different routing protocols. For instance, eBGP vs OSPF.

Within BGP (eBGP vs iBGP), the BGP Path Algorithm is used instead.

HTH,

__

Edison.

Actions

This Discussion