bgp: modifying incoming routes based on thei next-hop

From: Omer Ansari (omer@ansari.com)
Date: Sun Sep 08 2002 - 09:45:50 GMT-3


All,

{cloud}---R5------R2------R6----{anothercloud}

R2 is actually the hub router, and is connected to other routers, not
shown here for sake of simplicity.

the requirement is to modify R2, so that the localpref is changed to 50
for routes coming in with next hop of R5, and 250 for routes with next hop
of R6.

currently:
R2#sib

   Network Next Hop Metric LocPrf Weight Path
*>i155.55.55.0/24 100.20.3.5 0 100 0 i
*>i166.66.66.0/24 100.20.3.6 0 100 0 i
....

bgp_snip>
on R2:
 ....
 neighbor 100.20.3.5 route-map local_pref in
 neighbor 100.20.3.6 route-map local_pref in

problem is:

R2(config)#route-m local_pref
R2(config-route-map)#match ip next-hop 5
% "local_pref" used as BGP inbound route-map, nexthop match not supported
% "local_pref" used as BGP inbound route-map, nexthop match not supported
R2(config-route-map)#

R2#sh ver | inc file
System image file is "flash:c2600-js-mz.121-15"

any ideas?
Omer



This archive was generated by hypermail 2.1.4 : Mon Oct 07 2002 - 07:43:46 GMT-3