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

BGP Path selection

francisco_1
Level 7
Level 7


Below is the output for a WAN router peering with provider external Ebgp and also have iBGP peering as well.

Based on the output below i am assuming that best path is the internal ibgp peer since it looks like the provider (ebgp 213.121.150.121 AS 3854) is doing AS Prepending ( sending Community: 2856:10 2856:104 5400:3001 5400:3002 5400:3300 to us).  So by design bgp will look at lower AS-Path instead and will choose the internal. Without the prepending, then the ebgp will be the prefered of course.

(Site 1)
bgprouter1#sh ip bgp 24.37.192.0
BGP routing table entry for 24.37.192.0/18, version 142343011
Paths: (3 available, best #3, table Default-IP-Routing-Table)
  Not advertised to any peer
  3854 5400 5769
    213.131.18.12 from 213.131.18.12 (195.99.125.167)
      Origin IGP, metric 10, localpref 100, valid, external
      Community: 2856:10 2856:104 5400:3001 5400:3002 5400:3300
 
   1478 5769  (This via another ibgp nei)
    192.168.45.88 (metric 3) from 192.168.45.88 (192.168.45.88)
      Origin IGP, metric 4294967294, localpref 100, valid, internal, best

Francisco.

1 Reply 1

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Francisco,

the two AS paths are:

3854 5400 5769

1478 5769

shortest AS path wins so second path is best as it could be expected rightmost AS number is the same (this is the prefix owner)

>> Community: 2856:10 2856:104 5400:3001 5400:3002 5400:3300

this is not part of AS path and so it cannot be seen as AS path prepending, these are just multiple BGP communites applied to the route by this ISP

Hope to help

Giuseppe

Cisco will donate $1 to  the Red Cross Haiti fund for every rated post!

https://supportforums.cisco.com/docs/DOC-8727

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:

Review Cisco Networking products for a $25 gift card