From: Elias Chari (elias.chari@gmail.com)
Date: Sun Jul 02 2006 - 19:54:36 ART
Sami,
Both
^254(_[0-9]*)?$
^254_[0-9]*$
Achieve the same result, so save yourself some brain power as you
suggested...-)
HTH
Elias
On 7/2/06, Sami <sy1977@gmail.com> wrote:
>
> It has been discussed several times, allow AS 4 and it's directly
> connected
> customer. I always use this regexp
>
> *ip as-path access-list 1 permit ^4(_[0-9]+)?$
>
> *but Cisco DOC CD says
>
> Only Allow Networks Originated from AS 4, and ASs Directly Attached to AS
> 4,
> to Enter Router 1
>
> If you want AS 1 to get networks originated from AS 4 and all directly
> attached ASs of AS 4, apply the following inbound filter on Router 1.
>
> *ip as-path access-list 1 permit ^4_[0-9]*$*
>
> router bgp 1
> neighbor 4.4.4.4 remote-as 4
> neighbor 4.4.4.4 route-map foo in
> route-map foo permit 10 match as-path 1
>
>
> Is there any diffrence between these two ? if both are same , then I
> should
> save some brain cells and use the simple one *^4_[0-9]*$*
> **
> *Comments ?*
>
> Thanks
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Tue Aug 01 2006 - 07:13:46 ART