From: Carlos Campos Torres \(ccampost\) (ccampost@cisco.com)
Date: Sun May 14 2006 - 22:17:25 ART
Is 100 a confederation sub-as and the confederation ID is 1?
If that is the case, why don't you try "\", this is because with the
parenthesis you are only grouping and you need an "escape character" to
match a specific sub-as
Hope that helps!
Carlos Campos
Associate Systems Engineer
Cisco Systems, Inc
(919) 392-6285
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Nick Griffin
Sent: Saturday, May 13, 2006 7:55 PM
To: firstname jim
Cc: ccielab@groupstudy.com
Subject: Re: AS-path question
Have you tried _100$ to match routes originated in AS100
firstname jim wrote:
> Hi guys,
>
> A Lab prompted this question: suppose I have a confederation and 2
> sub-as,
>
> {other as's} --- [ (as100) - (as101 R1)]AS1 ---- [as2(R2)]
>
> In short, subnet
> 1.0.0.0/24 from as100
> 1.0.1.0/24 from asl101
> some other subnets too,
>
> How do I make sure that R2 in as2 only get routes originated from AS1?
> The requirement is to only do filter on R1.
> I am looking for some as-path regular expression help, so far I have
> tried (on R1):
>
> ip as-path 11 permit ^$
> ip as-path 11 permit (100) ! this works, but I think it includes
more
> un-wanted routes
>
> These are the different ways I tried, they don't work. A better idea
> anyone?
> ip as-path 11 permit ^100$
> ip as-path 11 permit ^(100)$
> ip as-path 11 permit _(100)$
>
> TIA
>
> --
> Jim Li
> 614-376-2865
>
> ______________________________________________________________________
> _ Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Thu Jun 01 2006 - 06:33:21 ART