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

From: Carlos G Mendioroz (tron@acm.org)
Date: Mon Sep 09 2002 - 07:05:40 GMT-3


I may be missing something, but if R5 is connected via point to point,
all networks learnt via R5 should be reachable via it, don't they ?

So what's the difference between "all networks that have R5 as next
hop" and "all networks learned via R5" ? I'm assuming eBGP too.

"Volkov, Dmitry (Toronto - BCE)" wrote:
>
> Hello again,
>
> I'm sorry - I was wrong ;) - it's changing LocPref for all routes (doesn't
> matter what next-hop), so it doesn't work really...
>
> Interesting, I don't see any way how to do it.
>
> Dmitry
>
> > -----Original Message-----
> > From: Volkov, Dmitry (Toronto - BCE)
> > Sent: Sunday, September 08, 2002 2:39 PM
> > To: 'Omer Ansari'; Guoqi Cui
> > Cc: ccielab@groupstudy.com
> > Subject: RE: bgp: modifying incoming routes based on thei next-hop
> >
> >
> > Hi,
> >
> > Just tested it. It doesn't like it, but... it works :)
> > IOS 12.1(16) Ent +
> >
> > router bgp XX
> > neighbor 1.2.3.7 route-map COMM in
> >
> >
> > r2(config-route-map)#set local-preference 4242
> > % "COMM" used as BGP inbound route-map, nexthop match not supported
> > r2(config-route-map)#^Z
> >
> > route-map COMM permit 5
> > match ip next-hop 3
> > set local-preference 4242
> >
> > access-list 3 permit 1.2.3.7
> >
> >
> > Network Next Hop Metric LocPrf Weight Path
> > s> 192.168.1.0 1.2.3.7 0 4242 0 10 i
> > s> 192.168.2.0 1.2.3.7 0 4242 0 10 i
> > *> 192.168.3.0 1.2.3.7 0 4242 0 10 i
> > s> 192.168.4.0 1.2.3.7 0 4242 0 10 i
> > r2#
> >
> >
> > Dmitry
> >
> >
> > > -----Original Message-----
> > > From: Omer Ansari [mailto:omer@ansari.com]
> > > Sent: Sunday, September 08, 2002 9:56 AM
> > > To: Guoqi Cui
> > > Cc: ccielab@groupstudy.com
> > > Subject: Re: bgp: modifying incoming routes based on thei next-hop
> > >
> > >
> > > 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

-- 
Carlos G Mendioroz  <tron@huapi.ba.ar>  LW7 EQI  Argentina


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