08-10-2012 04:58 AM - edited 03-04-2019 05:14 PM
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
I
the result of sh ip bgp :
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.
08-10-2012 05:26 AM
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
08-10-2012 08:43 AM
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
08-10-2012 11:45 AM
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 *
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide