Re: BGP regex

From: William Caban (william@monids.org)
Date: Thu Jan 10 2008 - 00:08:15 ARST


The ^1$ will _ONLY_ match routes originated _from_ AS1 and with _no_
additional transit areas associated to it.

The _1$ will match routes originated from AS1 no matter how many areas
it transit.

For example, if you have:

Route AS-PATH
10.100.1.0/24 1
10.100.2.0/24 3 4 7 80 1
10.100.3.0/24 3 2 1 5

^1$ will only match 10.100.1.0
_1$ will match 10.100.1.0 and 10.100.2.0
_1_([0-9]+)?$ will match all of the routes

-W

On Wed, 2008-01-09 at 19:22 +0530, Monica Belluci wrote:
> what is difference between ^1$ and _1$ ?
> Both work same ?
>
> Nalini Roy
>
> On Jan 9, 2008 11:36 AM, shiran guez <shiranp3@gmail.com> wrote:
>
> > _1$ mean only originated in AS1 if you want originated or transited AS 1
> > so
> > it should be _1_
> >
> > if you want origin AS 1 and clients ^1_ if you want origin AS1 and/or one
> > client ^1_([0-9]+)?$
> >
> >
> >
> >
> > On Jan 9, 2008 4:31 AM, Athaide, Dwayne <DAthaide@eprod.com> wrote:
> >
> > > If you want to accept routes that have traversed or originated in AS 1
> > > would _1$ match only the routes that have originated in AS1?



This archive was generated by hypermail 2.1.4 : Fri Feb 01 2008 - 10:37:58 ARST