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

BGP not selecting higher Local preference

hfakoor222
Spotlight
Spotlight

So i'm doing a lab

 

bgp path selection is as thus

 

My question is about R4  and   R5  the 2 routers in the middle of this topology next to Switch1

2023-04-18 08_40_32-IOU1.png

 

 

Now R4, R5, R6, R7 are in a peer group. To get to router R1's loopback of 2.0.0.0 I've modified the LocalPref to 200 on R4, and so all routers in this BGP AS prefer R4,  except for R5 which is taking the eBGP route to R3, to R1.

 

All the other PA's seem equal to me.

 

Why is R5 taking R3 eBGP out over going through R4?  

2023-04-18 08_40_32-IOU1.png

 

 

The only difference I see in the above screenshot is R4 has a metric0, over R5's null metric. And so I remember reading in the OCG about how metrics are applied across different vendor brands with regards to BGP. I'm not sure if that's what is the cause here.

 

Any in sight would be helpful.

 

 

 

2 Accepted Solutions

Accepted Solutions

M02@rt37
VIP
VIP

Hello @hfakoor222,

Since the LP is the same, the tie breaker used is external versus internal BGP. Prefer eBGP over iBGP.

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

View solution in original post

From metric I see you ise eigrp for ibgp neighbor.

Even if this metric high this step will not consider in best path selection' because before it there is step to prefer ebgp than ibgp.

That why you see external is best.

View solution in original post

6 Replies 6

M02@rt37
VIP
VIP

Hello @hfakoor222,

Since the LP is the same, the tie breaker used is external versus internal BGP. Prefer eBGP over iBGP.

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

I distinctly remember reading this somewhere it might've been the ENCOR ocg.  Okay thanks.

From metric I see you ise eigrp for ibgp neighbor.

Even if this metric high this step will not consider in best path selection' because before it there is step to prefer ebgp than ibgp.

That why you see external is best.

Thank you

Hello,

I believe it’s hitting the MED requirement. In CISCO world a missing MED is better than 0 I believe. You can change this behavior by issuing the

med-missing-as-worst

command. What this does is any MED that is blank is treated as the worst path for that metric. Then it should choose R4.

-David

Thanks

Review Cisco Networking for a $25 gift card