Re: as-path access-list

From: Philippe Couture (philippecouture@gmail.com)
Date: Fri Apr 01 2005 - 22:49:26 GMT-3


Hi Jinathan,

Here is my attempt, from how I understood your requirements:

1. This will permit AS paths 1005 5001, or 5001 1005. No prepends,
     no other ASes will be allowed.

ip as-path access-list 1 permit (^1005_5001$|^5001_1005$)

2. This will allow AS paths 1005 or 5001. No prepends, no other ASes
    will be allowed.

ip as-path access-list 1 permit ^(1005|5001)$

3. This will allow only 1005. Implicitly it will deny everything else,
    including 5001.

ip as-path access-list 1 permit ^1005$

On Apr 1, 2005 7:42 PM, Jonathan ZD <Nuvo25@hotmail.com> wrote:
> Dear Group,
>
> Does anyone know how to create a "single-line" as-path access-list to:
>
> 1. permit AS 1005 and 5001
> 2. permit either AS 1005 or 5001
> 3. permit AS 1005 but not with 5001 in it.
>
> Thank you very much,
>
> Jonathan
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Tue May 03 2005 - 07:54:51 GMT-3