Re: BGP regular expression

From: Victor Cappuccio (vcappuccio@gmail.com)
Date: Thu May 01 2008 - 14:51:59 ART


Or Maybe this filter could work, this one would allow you to select any AS
path containing one or multiple copies of the same AS number.
^([0-9]+)(_\1)*$

Best Regards

On Thu, May 1, 2008 at 7:28 PM, V.Shekhar@GlobalAssurance.net <
V.Shekhar@globalassurance.net> wrote:

> Sorry i meant to ask does it List 1.0 & 2.0 with ^(100_)+$ ?
> -V Shekhar
> CCIE(sec)#17589/CISSP/RHCE.
>
> V.Shekhar@GlobalAssurance.net wrote:
>
> > Does it list 1& 4 if u use ^(100_)+$ ?
> >
> > -V Shekhar
> > CCIE(sec)#17589/CISSP/RHCE.
> >
> > Rakesh Hegde wrote:
> >
> > > Guys,
> > >
> > > I've got the following routes in the bgp table
> > >
> > > 192.168.1.0 100
> > > 192.168.2.0 100 100 100
> > > 192.168.3.0 100 200 300
> > >
> > >
> > > 1. Sh ip bgp reg (_100_)+ as expected lists all 3 networks
> > >
> > > 2. Sh ip bgp reg ^(_100_)+ as expected lists all 3 networks
> > >
> > > 3. Sh ip bgp reg (_100_)+$ as expected lists 192.168.1.0 and
> > > 192.168.2.0
> > >
> > > 4. Sh ip bgp reg ^(_100_)+$ lists only 192.168.1.0 .
> > >
> > > Any idea why no 4 is not listing 192.168.2.0 ?
> > >
> > > Thanks in advance
> > >
> > > -Rakesh
> > >
> > >
> > > Pass the CCIE in six weeks, Guaranteed!
> > > http://www.certscience.com/CCIE
> > >
> > > _______________________________________________________________________
> > > Subscription information may be found at:
> > > http://www.groupstudy.com/list/CCIELab.html
> > >
> >
> >
> > Pass the CCIE in six weeks, Guaranteed!
> > http://www.certscience.com/CCIE
> > _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
> >
>
>
> Pass the CCIE in six weeks, Guaranteed!
> http://www.certscience.com/CCIE
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html

Pass the CCIE in six weeks, Guaranteed!
http://www.certscience.com/CCIE



This archive was generated by hypermail 2.1.4 : Mon Jun 02 2008 - 06:59:15 ART