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

BGP route selection using weight

Hi ,

I'm trying to do lab with  BGP  route selection using weight, my purpose is to apply weight in edge router  for specified incoming prefix (41.10.10.0/24) with neighbor 66.10.10.1 , the config of edge in attached document

bgp_lab.png

I

the result of sh ip bgp : 

sh_ip_bgp.png

normally the weight should be applied just for 41.10.10.0/24 , but according to "sh ip bgp" below  weight is applied to all prefix with neighbor 66.10.10.1

surely I have miss some things in the config , Can someone help me to solve it.

Everyone's tags (5)
3 REPLIES

BGP route selection using weight

After looking over your config, I don't see how you're getting 150 set for the weight either unless I'm just missing it. Weight is a local setting and is set on incoming routes. The easiest way to do it is create a route-map and apply it to the neighbor inbound:

access-list 10 permit 41.10.10.0 0.0.0.255

route-map Weight permit 10

match ip address 10

set weight 150

route-map Weight permit 20

router bgp 213

neighbor 66.10.10.1 route-map Weight in

HTH,

John

HTH, John *** Please rate all useful posts ***
Community Member

BGP route selection using weight

i'm sorry the right config of edge is :

but even with this config  i still not havce the expected  result, the weight is applied to all routes coming from neigbor 66.10.10.1

BGP route selection using weight

Thanks for posting the updated config. I see that in your route-map you're matching on an acl, but not the prefix list that you're wanting to reference. Try changing your route-map to:

route-map map_weight permit 1

match ip address prefix-list pref_weight

set weight 150

See if that resolves the issue...

HTH,

John

* Please rate all useful posts *

HTH, John *** Please rate all useful posts ***
341
Views
0
Helpful
3
Replies
CreatePlease to create content