Re: bgp: modifying incoming routes based on thei next-hop

From: Omer Ansari (omer@ansari.com)
Date: Sun Sep 08 2002 - 10:55:52 GMT-3


And what about the routes learnt through but not originated from R5(or
R6)?

Also, I'm not allowed to make any modifications on R5 or R6.

On Sun, 8 Sep 2002, Guoqi Cui wrote:

> In your case, you do not need use match in the
> route-map. Just put the desired local preference is
> fine.
>
>
>
>
>
> --- Omer Ansari <omer@ansari.com> wrote:
> > 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
> >
> __________________________________________________________________
> > To unsubscribe from the CCIELAB list, send a message
> > to
> > majordomo@groupstudy.com with the body containing:
> > unsubscribe ccielab
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.yahoo.com



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