Giuseppe Larosa Tue, 08/12/2008 - 00:23
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

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

Giuseppe Larosa Tue, 08/12/2008 - 00:36
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

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



rajivrajan1 Tue, 08/12/2008 - 02:40
User Badges:
  • Bronze, 100 points or more

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

leopastor Wed, 10/15/2008 - 14:46
User Badges:

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

johnlloyd_13 Tue, 08/12/2008 - 03:46
User Badges:
  • Blue, 1500 points or more

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.

leopastor Wed, 10/15/2008 - 14:49
User Badges:

You CANNOT *match* based on Weight, you can only *set* it!




Actions

This Discussion