Re: regex for as-path

From: Steve Ohnmacht (ohnmacht@gmail.com)
Date: Fri May 13 2005 - 11:40:11 GMT-3


you could use the search function bgp regex, that should point you in
the right direction in univercd directory. Some good ones to remember
are:

_7018$ match anything originating in this as

_7018_ match anything with this as anywhere in the path

^7018$ match this as only

^[0-9]*_[0-9]+$ match anything from your directly connected neighbor
and his directly connected neighbors

^$ match routes within your local as

HTH

On 5/13/05, Marakalas <marakalas@yahoo.com> wrote:
> Is there a document on the cd (univercd) about the
> regexp?
>
> --- John Matus <john_matus@hotmail.com> wrote:
> > yeah, i started doubting myself there for a moment,
> > but i've been wrong b4
> > and will be wrong again :-)
> >
> > >From: san <san.study@gmail.com>
> > >Reply-To: san <san.study@gmail.com>
> > >To: John Matus <john_matus@hotmail.com>
> > >Subject: Re: regex for as-path
> > >Date: Thu, 12 May 2005 12:47:07 -0700
> > >
> > >John,
> > >
> > >I just tested, I was wrong. Both yields the same
> > result.
> > >
> > >[]+ => means one digit or more and not two or
> > more
> > >* => means zero or more
> > >
> > >/Anantha
> > >
> > >On 5/11/05, John Matus <john_matus@hotmail.com>
> > wrote:
> > > > can someone else verify San's reply for me?
> > just want to make sure.
> > > >
> > > > >From: san <san.study@gmail.com>
> > > > >Reply-To: san <san.study@gmail.com>
> > > > >To: John Matus <john_matus@hotmail.com>
> > > > >Subject: Re: regex for as-path
> > > > >Date: Wed, 11 May 2005 11:57:09 -0700
> > > > >
> > > > >John ,
> > > > >
> > > > >Both are different.
> > > > >
> > > > >*....will match for "54 5 7 200"
> > > > >
> > > > >+ ...will not match for above
> > > > >+ ...will match only for "54 55 77 xx xx"
> > > > >
> > > > >/SAN
> > > > >
> > > > >On 5/11/05, John Matus <john_matus@hotmail.com>
> > wrote:
> > > > > > do the following expression accomplish the
> > same?
> > > > > >
> > > > > > ip as-path access-list 5 permit
> > ^54_[0-9]*_[0-9]*_[0-9]*$
> > > > > >
> > > > > > AND
> > > > > >
> > > > > > ip as-path access-list 5 permit ^54_[0-9]+$
> > > > > > ip as-path access-list 5 permit
> > ^54_[0-9]+_[0-9]+$
> > > > > > ip as-path access-list 5 permit
> > ^54_[0-9]+_[0-9]+_[0-9]+$
> > > > > >
> > > > > >
> >
> _________________________________________________________________
> > > > > > Dont just search. Find. Check out the new
> > MSN Search!
> > > > > >
> >
> http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> > > > > >
> > > > > >
> >
> >_______________________________________________________________________
> > > > > > Subscription information may be found at:
> > > > > > http://www.groupstudy.com/list/CCIELab.html
> > > > > >
> > > >
> > > >
> >
> _________________________________________________________________
> > > > Express yourself instantly with MSN Messenger!
> > Download today - it's
> > >FREE!
> > > >
> >
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> > > >
> > > >
> >
> >
> _________________________________________________________________
> > Is your PC infected? Get a FREE online computer
> > virus scan from McAfee.
> > Security.
> >
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> >
> >
> _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
> >
>
> Discover Yahoo!
> Have fun online with music videos, cool games, IM and more. Check it out!
> http://discover.yahoo.com/online.html
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>

-- 
-so


This archive was generated by hypermail 2.1.4 : Fri Jun 03 2005 - 10:11:58 GMT-3