Re: AS path filter for confederation

From: DAN DORTON (DHSTS68@xxxxxxxxxxxxxxx)
Date: Mon Apr 29 2002 - 10:29:46 GMT-3


   
I usually use these two for confederation paths.

If the AS string is: (200) 100

^[(]200[)] 100$
^/(200/) 100$

Although you can use many different methods.

>>> Katson PN Yeung <kyeung@hkcix.com> 04/28/02 10:02PM >>>
Hi,

When you have confederation, you can see these lovely parentheses.

For me, I use a white space character to match them......eg.

#show ip bgp regexp ^.65002._

At 08:15 AM 4/28/2002, Tim Wilhoit wrote:
>How would you ever see a paren in the AS path? Maybe I missed the
boat
>here...ive never seen that.
>----- Original Message -----
>From: "ying chang" <ying_c@hotmail.com>
>To: <Guy.Lupi@eurekaggn.com>; <ccielab@groupstudy.com>
>Sent: Friday, April 26, 2002 8:25 PM
>Subject: Re: AS path filter for confederation
>
>
> > Hi Guy,
> >
> > When you replace the first statement's ^_14__27$ with ^(14)_27$ you
get
> > ^14_27 as far as regular expression concerns. Just remember
parenthese in
>ip
> > as-path statement has its own special meaning, than everything
would
>become
> > clear.
> >
> > I hope I don't confuse you.
> >
> > Chang
> >
> > >From: "Lupi, Guy" <Guy.Lupi@eurekaggn.com>
> > >Reply-To: "Lupi, Guy" <Guy.Lupi@eurekaggn.com>
> > >To: "'ccielab@groupstudy.com'" <ccielab@groupstudy.com>
> > >Subject: AS path filter for confederation
> > >Date: Fri, 26 Apr 2002 19:09:51 -0400
> > >
> > >I am trying to use an as path filter to match a route, I have one
that
> > >works
> > >and one that doesn't. I can't figure out why the first one
doesn't work,
> > >as
> > >I thought that the underscore is a match on parantheses also.
What is
> > >wrong
> > >with the first statement? Thanks.
> > >
> > >
> > >ip as-path access-list 1 permit ^_14__27$ ----- This one doesn't
work
> > >ip as-path access-list 1 permit ^\(14\)_27$ --- This one works
> > >
> > >This is the route I am trying to match.
> > >
> > >i0.0.0.0 2.2.2.2 0 0 (14) 27 i



This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:58:22 GMT-3