RE: as-path

From: Brent Foster (jbrentfoster@yahoo.com)
Date: Mon Feb 06 2006 - 10:59:20 GMT-3


JP,

If you telnet to a route server such as
route-server.gblx.net you can test this.

route-server.phx1>show ip bgp regexp __

If you put one "_" then that seems to match
everything.

If you put two, "__" then that seems to match
everything.

If you put three, "___" then that seems to only match
routes with empty AS PATH attribute.

This makes sense since all routes will have a
beginning of line and/or end of line (the first 2
scenarios). However, only empty routes will have a
beginning of line, blank entry, and end of line.

--Brent

--- Jens Petter Eikeland <jenseike@start.no> wrote:

> Yes, but what I thought was strange is that the
> underscore is two times in a
> row _ _ (__) not one underscore
>
> Will this give the same result as using one
> underscore???
>
> -----Original Message-----
> From: nobody@groupstudy.com
> [mailto:nobody@groupstudy.com] On Behalf Of
> Brent Foster
> Sent: 6. februar 2006 14:20
> To: Jens Petter Eikeland; ccielab@groupstudy.com
> Subject: Re: as-path
>
> JP,
>
> This will capture everything since the definition of
> "_" is that it will match commas, beginning of line,
> end of line, or spaces. So it should be the
> equivalent of ".*"
>
> --Brent
>
> --- Jens Petter Eikeland <jenseike@start.no> wrote:
>
> > Hi group...
> >
> > What will this as path achive :
> >
> > ip as-path access-list 1 permit __
> >
> > JP
> >
> >
>



This archive was generated by hypermail 2.1.4 : Wed Mar 01 2006 - 11:28:17 GMT-3