RE: BGP REGULAR EXPRESSION

From: Gopal@Yahoo
Date: Tue Mar 28 2006 - 18:38:05 GMT-3


I wd agree with Scott and go with maxas-limit.

If you want to do with regexp;

from page-325 of the book, 'cisco isp essentials',

^[0-9]*_[0-9]*_..<10 time>..[0-9]*$

or less stressful,

^[0-9]+$
^[0-9]+_[0-9]+$
:
:
^[0-9]+...<10times>...._[0-9]+$

if you want to consider as-prepends try (this is just
my guess. test before believing pls),

^(_[0-9]+)$
^(_[0-9]+)_(_[0-9]+)$
:
:
^(_[0-9]+)...<10 time>..._(_[0-9]+)$

Pls note: highly recursive regexp's can hog or crash
the router. Don't forget to save your config before
playing with *, + /n etc.

Cheers,
Gopal

--- Scott Morris <swm@emanon.com> wrote:

> I'd use the "bgp maxas-limit 10" and keep life
> simple!
>
> :)
>
>
http://www.cisco.com/univercd/cc/td/doc/product/software/ios124/124cr/hirp_r
> /rte_bgh1.htm#wp1072102
>
>
> Scott Morris, CCIE4 (R&S/ISP-Dial/Security/Service
> Provider) #4713, JNCIE
> #153, CISSP, et al.
> IPExpert CCIE Program Manager
> IPExpert Sr. Technical Instructor
> swm@emanon.com/smorris@ipexpert.com
> http://www.ipexpert.com
>
>
>
> -----Original Message-----
> From: nobody@groupstudy.com
> [mailto:nobody@groupstudy.com] On Behalf Of
> Dennis Hartmann
> Sent: Sunday, February 26, 2006 9:59 AM
> To: 'magmax'; 'R&S CCIE GroupStudy'
> Cc: comserv@groupstudy.com
> Subject: RE: BGP REGULAR EXPRESSION
>
> 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
>
>



This archive was generated by hypermail 2.1.4 : Sat Apr 01 2006 - 10:07:40 GMT-3