Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

BGP Path selection

Hi experts,

I am aware of BGP Path selection. Still i am not able to understand why & how the BGP behaved in the scenario I have seen now . Please find the attached output

Why BGP has choosed 10.1.14.4 as the best, even though 10.1.12.2 is the lowest IP address (final selection when all the parameters for BEST PATH SELECTION is equal)

Hope my explanation is clear & thanks in advance

Sairam

7 REPLIES
Cisco Employee

Re: BGP Path selection

Hi,

Can you post the output of show ip bgp sum?

Regards,

jerry

New Member

Re: BGP Path selection

Hi Jerry,

Please find the attached configuration & files for your reference.

Hope it will help you

sairam

jia
New Member

Re: BGP Path selection

ss

Hall of Fame Super Bronze

Re: BGP Path selection

Neighbor 10.1.14.4 has the oldest route based on the 'show ip bgp sum'

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd

10.1.12.2 4 200 15 22 9 0 0 00:08:34 3

10.1.14.4 4 200 16 19 9 0 0 00:07:49 3

Step # 10 on the BGP Best Path Selection.

If you clear bgp, 10.1.12.2 will have the best path.

HTH,

__

Edison.

New Member

Re: BGP Path selection

Hi Edison,

Thanks. perhaps I missed to remember that. It is clearly stated in BGP BEST PATH SELECTION ALGORITHM doc from Cisco

But please tell me which parameter of command "show ip bgp summ" shows that the particular route is older than all.

Thanks in advance

sairam

New Member

Re: BGP Path selection

Hi,

I myself took the chance and found the answer.

It is in the top to bottom order. Bottom is the oldest. Please correct me if I am wrong.

Thanks for your hints and tips

Sairam

Hall of Fame Super Bronze

Re: BGP Path selection

Sairam,

I retract my previous statement. Based on the 'show ip bgp sum' output - R2 has been up the longest:

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd

10.1.12.2 4 200 15 22 9 0 0 00:08:34 3

10.1.14.4 4 200 16 19 9 0 0 00:07:49 3

Thus based on step #10, R2 should've been chosen as the best path.

With that said, I took your lab into my GNS3 setup and found a different output from yours based on the routerID.

In your posting, the routerID on R2 reflects the physical interface and not the loopback from R2 which I find strange.

R1#sh ip bgp 3.0.0.0

BGP routing table entry for 3.0.0.0/8, version 16

Paths: (2 available, best #2, table Default-IP-Routing-Table)

Flag: 0x840

Advertised to update-groups:

1

200

10.1.12.2 from 10.1.12.2 (2.2.2.2)

Origin IGP, localpref 100, valid, external

200

10.1.14.4 from 10.1.14.4 (10.1.34.4)

Origin IGP, localpref 100, valid, external, best

and this is your output:

R1#show ip bgp 3.0.0.0/8

BGP routing table entry for 3.0.0.0/8, version 7

Paths: (2 available, best #2, table Default-IP-Routing-Table)

Advertised to update-groups:

1

200

10.1.12.2 from 10.1.12.2 (10.1.23.2)

Origin IGP, localpref 100, valid, external

200

10.1.14.4 from 10.1.14.4 (10.1.34.4)

Origin IGP, localpref 100, valid, external, best

Were you doing any changes on BGP while the session was up? Any changes on BGP can alter its behavior and to get the expected behavior on routers after a change is made, it's recommended to hard clear or soft clear BGP.

Without knowing the steps on this BGP configuration, the best path selection at that moment couldn've been influenced by anything, not just step 10.

HTH,

__

Edison.

371
Views
5
Helpful
7
Replies