Re: Just want confirm this match requirement

From: love cisco (love_cisco@hotmail.com)
Date: Wed Mar 05 2003 - 16:52:36 GMT-3


This question looks like simple. But I got different answer from a few
CCIEs.
Can you test it before answer my question?
there is no way to put same match in two line, Like this.

match as-path 20
match as-path 30 => means match 20 AND 30

It will become one line again if you "show run"
match as-path 20 30

>From: "Ram Shummoogum" <rshummoo@ca.ibm.com>
>Reply-To: "Ram Shummoogum" <rshummoo@ca.ibm.com>
>To: emrekoyuncu@hotmail.com
>CC: ccielab@groupstudy.com, love_cisco@hotmail.com
>Subject: Re: Just want confirm this match requirement
>Date: Wed, 5 Mar 2003 09:04:53 -0500
>
>I do not think so.
>Both are OR statement.
>If you are trying to match 2 different parameters such as as-path and
>community then the AND applies.
>
>if you do match as-path 20 and
>match as-path 30 on a different line you will end up with the following in
>the show run.
>
>
>
>
>ip as-path access-list 20 permit ^20$
>ip as-path access-list 30 permit ^30$
>!
>route-map rambo permit 10
> match as-path 20 30
>
>
>
>Cheers,
>RAM
>
>
>
>
>"Emre Koyuncu" <emrekoyuncu@hotmail.com>@groupstudy.com on 03/05/2003
>03:06:18 AM
>
>Please respond to "Emre Koyuncu" <emrekoyuncu@hotmail.com>
>
>Sent by: nobody@groupstudy.com
>
>
>To: <ccielab@groupstudy.com>, "love cisco" <love_cisco@hotmail.com>
>cc:
>Subject: Re: Just want confirm this match requirement
>
>
>Hi,
>
>It is a late answer but maybe you still need the answer.
>
>match as-path 20 30 => means match 20 OR 30
>
>match as-path 20
>match as-path 30 => means match 20 AND 30
>
>Regards
>Emre Koyuncu CCIE #10916
>
>----- Original Message -----
>From: "love cisco" <love_cisco@hotmail.com>
>To: <ccielab@groupstudy.com>
>Sent: Tuesday, March 04, 2003 1:14 AM
>Subject: Just want confirm this match requirement
>
>
> > For this example:
> > Is the !0match!1 requiring both as-path access-list or just any one of
>the
> > as-path access-list?
> >
> > =======================================
> > ip as-path access-list 20 permit ^220_
> > ip as-path access-list 30 permit _800$
> > !
> > route-map filte-as permit 10
> > match as-path 20 30
> >
> >
> >
> > _________________________________________________________________
> > Cb7QOBTX MSN Explorer: http://explorer.msn.com/lccn/



This archive was generated by hypermail 2.1.4 : Sat Apr 05 2003 - 08:51:33 GMT-3