RE: route-map logic

From: JOSE ANGEL MARTINEZ DE LA VARA (jamartinez@xxxxxxxxxxxxxxxx)
Date: Wed Feb 13 2002 - 14:04:15 GMT-3


   
I've been looking at Halabi and found on page 396 something that can help:

ip community-list 1 deny CUSTOMERS_OR_OURS
ip community-list 1 permit internet
!
route-map eBGP_PROVIDER_X-OUT deny 10
 match community 1
route-map eBGP_PROVIDER_X-OUT permit 20
 match ...
 set ...
...

Is that what you are looking for? That will take out all routes that do not
have the community CUSTOMERS_OR_OURS.

.

Jose Angel.

-----Mensaje original-----
De: Przemyslaw Karwasiecki [mailto:karwas@ifxcorp.com]
Enviado el: miircoles, 13 de febrero de 2002 17:30
Para: RSiddappa@NECBNS.com
Cc: ccielab@groupstudy.com; cisco-nsp@puck.nether.net; Daniel Salama
Asunto: RE: route-map logic

R.,

The problem is that once you will encounter first "match"
in route-map, execution of remaining statements is aborted,
so as soon as you match "match community CUSTOMERS_OR_OURS"
route is accepted, and other route-map sections are never
executed.

Przemek

On Wed, 2002-02-13 at 11:27, RSiddappa@NECBNS.com wrote:
>
> I think U just need to type at the end,
>
> route-map eBGP_PROVIDER_X-OUT permit 40 ( or the largest number in urn
> route-map statement)
>
> R.
>
> -----Original Message-----
> From: Przemyslaw Karwasiecki [mailto:karwas@ifxcorp.com]
> Sent: Wednesday, February 13, 2002 9:53 AM
> To: ccielab@groupstudy.com; cisco-nsp@puck.nether.net
> Cc: Daniel Salama
> Subject: route-map logic
>
>
> All,
>
> I am confused with Parkhust Appendix C (route-maps)
>
> Is it possible to build route-map which will do following:
>
> Select only routes matching certain communities, then
> (only for those routes)
> based on another comunity, do some route modifications?
>
>
> In other words, how to reject all routes not matching
> some community, and continue execution of route map
> for only those routes which hasn't been rejected.
>
> Something like:
>
>
> route-map eBGP_PROVIDER_X-OUT permit 10
> description Prefixes from customers
> match community CUSTOMERS_OR_OURS
> continue with route map
>
> route-map eBGP_PROVIDER_X-OUT permit 20
> description Do AS_PREPEND based on community
> match communnity PROVIDER_X_1
> set as-path prepend 65000
>
> route-map eBGP_PROVIDER_X-OUT permit 30
> description Do AS_PREPEND based on community
> match communnity PROVIDER_X_2
> set as-path prepend 65000 65000
>
> ...
>
> Of course there is no "continue with route map" statement in IOS,
> at least I don't know any statement like this.
>
> Any suggestions?
> Am I totally spoiled with JunOS?
>
> Thanks,
>
> Przemek
>
> Sorry for crossposting, but I belive this problem is in scope
> of both lists



This archive was generated by hypermail 2.1.4 : Thu Jun 20 2002 - 13:46:21 GMT-3