Re: BGP Reg Exp

From: John Matus (jmatus@pacbell.net)
Date: Thu Sep 22 2005 - 00:16:27 GMT-3


another option would be:
ip as-path access-list 101 permit ^123_[0-9]*$

which would match zero or more instances of a directly attached neighbor.

Regards,

John D. Matus
MCSE, CCNP
Office: 818-782-2061
Cell: 818-430-8372
jmatus@pacbell.net
----- Original Message -----
From: "Schulz, Dave" <DSchulz@dpsciences.com>
To: <syv@911networks.com>; "Leigh Harrison" <ccileigh@gmail.com>
Cc: "Cisco certification" <ccielab@groupstudy.com>
Sent: Wednesday, September 21, 2005 6:28 PM
Subject: RE: BGP Reg Exp

> Leigh -
>
> I didn't see a follow up on your question. But I believe that if you
> want to have the AS123 and it's neighbors, you will need to two lines:
>
> ip as-path access-list 1 permit ^123
> ip as-path access-list 1 permit ^123_[0-9]+
>
>
> Dave Schulz,
> Email: dschulz@dpsciences.com
>
>
>
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
> syv@911networks.com
> Sent: Sunday, September 18, 2005 5:33 PM
> To: Leigh Harrison
> Cc: Cisco certification
> Subject: Re: BGP Reg Exp
>
> Leigh Harrison wrote:
>> All,
>>
>> If I wanted to allow a neighboring AS(123) and his directly connected
>> AS's to be seen as routes to me, could this be written as:
>>
>> ip as-path access-list 1 permit ^123_[0-9]*$
>
> http://www.911networks.com/pages/cisco/bgp/regular-expressions.php
>
>> OR
>> ip as-path access-list 1 permit ^123_.*$
>> OR
>> ip as-path access-list 1 permit ^.+_[0-9]*$
>> OR
>> ip as-path access-list 1 permit ^.+_.*$
>> OR
>> ip as-path access-list 1 permit ^[0-9]+_[0-9]*$
>> OR
>> ip as-path access-list 1 permit ^[0-9]+_.*$
>>
>> Could someone have a quick look and let me know if that would be the
>> same thing ? I think I'm getting there!! The only niggle in the back
>
>> of my mind is ^123_.*$ (for example), would I need a "+" after the 123
> ?
>>
>> Many thanks,
>> LH
>>
>>
> _______________________________________________________________________
>> Subscription information may be found at:
>> http://www.groupstudy.com/list/CCIELab.html
>>
>>
>
>
> --
> Thanks
> http://www.911networks.com
> When the network has to work Cisco/Microsoft
>
> _______________________________________________________________________
> 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 : Sun Oct 02 2005 - 14:40:16 GMT-3