Re: Last one, I promise....

From: Alejandro Cadarso (a.cadarso@xxxxxxxxxxxxxx)
Date: Fri Sep 01 2000 - 04:01:09 GMT-3


   
Hi Simon,

Good luck, I don't think you can use

ip as-path access-list 1 permit ^(32) 100$

because the parenthesis mean parenthesis, if you use

ip as-path access-list 1 permit ^[(]32[)] 100$

I'm sure that within left and right square brackets that works
I've tried some days ago, actually I think that if you use

ip as-path access-list 1 permit ^\(32\) 100$

because I've read that for removing the special meaning of a
character, precede it with a backslash (\).

Nevertheless you can test any with:

sh ip bgp regexp <regular expression>

Hope this helps,

Alejandro

Simon Baxter wrote:
>
> This has been asked before, but I can't find the answer to it.
>
> How do you create an ip as-path access-list to match confederation paths
> which include ( )
>
> ie
>
> Origin codes: i - IGP, e - EGP, ? - incomplete
>
> Network Next Hop Metric LocPrf Weight Path
> *>i1.1.1.1/32 10.0.3.1 0 100 0 (32) 100 i
>
> Can you use
>
> ip as-path access-list 1 permit ^(32) 100$
>
> Simon
>



This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 08:24:51 GMT-3