08-11-2008 11:58 PM - edited 03-03-2019 11:06 PM
Hi guys,
Can i show routes filtered by local preference or weight. Example is show ip bgp routes with local preference of 200.
Tnx
08-12-2008 12:23 AM
Hello Jefferson,
you can filter the sh ip bgp output with a route-map
sh ip bgp route-map loc-pref-200
where the route-map has been defiend as:
route-map loc-pref-200
match local-preference 200
For weight I don't know it is not a match option in a route-map
Hope to help
Giuseppe
08-12-2008 12:25 AM
Hi,
I mean on the sh ip bgp regexp command when checking routes.
TNx
08-12-2008 12:36 AM
Hello Jefferson,
as far as I know the regexp will look at the BGP AS path attribute and local-preference and weight are different BGP attributes
see:
#sh ip bgp regexp ?
LINE A regular-expression to match BGP AS paths. Use "ctrl-v ?" to enter "?"
So I think you cannot find loc-pref or weight inside AS path
Hope to help
Giuseppe
08-12-2008 02:40 AM
hi there,
It's difficult to match exatly your requirement.Still u can filter out by using sh ip bgp | include or exclude or using reg expression after include.
HTH
10-15-2008 02:46 PM
The Weight atribute is local to a router, can be applied only on incoming updates, and is never propagated.
Therefore, you will not be able to match based on it!
HTH
08-12-2008 03:46 AM
if you used route maps, yes you could see them. use the show route-map command. you will see the associated attribute used in your filtering.
10-15-2008 02:49 PM
You CANNOT *match* based on Weight, you can only *set* it!
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