Re: BGP REGULAR EXPRESSION

From: Chris Lewis (chrlewiscsco@gmail.com)
Date: Tue Feb 28 2006 - 17:59:22 GMT-3


Yes, I think that is teh more elegant soution than usinf regular
expressions. However if teh question forbid the use of that command, you'd
have to enter multiple lines in an as-path. The following accepts all
prefixes with less than four AS in them. To extend it to 10, you'd just have
to extend the number of entries in the following as-path ACL.

As-path access-list 1 permit ^[0-9]+$

As-path access-list 1 permit ^[0-9]+_[0-9]+$

As-path access-list 1 permit ^[0-9]+_[0-9]+_[0-9]+$

Chris

On 2/28/06, Ahmed Shams <ahmedshamz@gmail.com> wrote:
>
> How about this,
>
> R1(config-router)#bgp max
> R1(config-router)#bgp maxas-limit ?
> <1-2000> Number of ASes in the AS-PATH attribute
>
> You can always check the doc for more detailed info on the same : )
>
> regds,
>
>
> On 2/26/06, Dennis Hartmann <dhartma5@optonline.net> wrote:
> >
> > If a BGP peer wanted to block any AS string of more than 10 AS
> > hops,
> > what would be the regular expression?
> >
> > 10 or less AS instances, but no more. The AS can not be
> > identified.
> > The Regexp must be generic enough to match any AS.
> >
> > Thanks.
> >
> > Dennis J. Hartmann
> > CCIE# 15651
> > White Pine Communications
> > CCVP/CCSI/CCIP/CCNP/MCSE
> >
> >
> >
> > -----Original Message-----
> > From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
> > magmax
> > Sent: Sunday, February 26, 2006 6:06 AM
> > To: 'R&S CCIE GroupStudy'
> > Cc: comserv@groupstudy.com
> > Subject: BGP REGULAR EXPRESSION
> >
> > Guys,
> >
> > Does anyone know where regular expression are documented in Cisco
> > documentation DVD for ccie lab
> >
> > One more question do you know any good reference for regular expression
> > which will make complex expression easier to understand and what you
> need
> > to
> > hit before you can type? In as-path list.
> >
> > Example
> >
> > ([1-9]+)?
> >
> >
> >
> > Ubaid
> >
> > _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
> >
> > _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



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