From: Joe Chang (changjoe@earthlink.net)
Date: Fri Feb 21 2003 - 12:39:22 GMT-3
Cezar is on the right track though. This should be closer:
IP as-path access-list 1 _123_.*_456_
IP as-path access-list 2 _456_.*_123_
----- Original Message -----
From: "Ram Shummoogum" <rshummoo@ca.ibm.com>
To: <csmith@plannetconsulting.com>
Cc: <ccielab@groupstudy.com>
Sent: Friday, February 21, 2003 10:41 AM
Subject: RE: AS PATH AND
> I have tried what you suggested and it does not work.
> It is behaving like a OR.
> I change 456 to a non-existent one and it still passes the filter.
>
> Cheers,
> RAM
>
> "Cassidy D. Smith" <csmith@plannetconsulting.com>@groupstudy.com on
> 02/21/2003 04:31:32 AM
>
> Please respond to "Cassidy D. Smith" <csmith@plannetconsulting.com>
>
> Sent by: nobody@groupstudy.com
>
>
> To: "'Cezar Fistik'" <cfistik@moldovacc.md>, <ccielab@groupstudy.com>
> cc:
> Subject: RE: AS PATH AND
>
>
> The problem is that they are in different order, so a single as-path acl
> won't work. Have you tried doing multiple matches in a route-map ? In
other
> words you create to as-path acl's and then match on both, this should
> create
> your "and". If you try this please let us know if it works..
>
> -------example---------------------------
>
> IP as-path access-list 1 _123_
> IP as-path access-list 2 _456_
>
> Route-Map 1-AND-2 permit 10
> match as-path 1 2
>
> Route-Map 1-AND-2 deny 20
>
> --------end example--------------------
>
>
> Cassidy
>
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of
> Cezar
> Fistik
> Sent: Thursday, February 20, 2003 10:24 PM
> To: ccielab@groupstudy.com
> Subject: Re:
>
>
> Hi,
>
> I don't know if there si an "and" in regular expressions, never heard of
> it. In order to match AS123 AND AS456 you can try using the following
> expressoin:
>
> 123.*456
>
> Regards,
> Cezar Fistik
>
> ----- Original Message -----
> From: "Ram Shummoogum" <rshummoo@ca.ibm.com>
> To: <ccielab@groupstudy.com>
> Sent: Thursday, February 20, 2003 10:34 PM
>
>
> > Hi ALL:
> >
> >
> > I need some help on this BGP regular expression.
> >
> >
> > Make a router only accept routes that has transit AS 123 and AS 456.
The
> > keyword here is "and" and not or.
> >
> >
> > Ex: {34 5 6 456 7 99 123 88}
> > {45 123 89 456 7}
> >
> >
> >
> >
> >
> > I know "OR" is | but what is AND.
> >
> >
> >
> >
> >
> > Thanks for your help
> >
> >
> > RAM
This archive was generated by hypermail 2.1.4 : Sat Mar 01 2003 - 11:06:28 GMT-3