From: BRZYSKI, ADAM E (SWBT) (ab1723@xxxxxxx)
Date: Mon Nov 12 2001 - 16:47:35 GMT-3
ip as-path access-list 1 deny _123_1$
ip as-path access-list 1 permit .*
note that the access-list above will filter out any updates that originated
in AS 1 and directly went through AS 123
ip as-path access-list 1 deny ^1_123_
ip as-path access-list 1 permit .*
note that this access-list will filter out any updates that have arrived
into the local AS directly through AS 1 and 123.
In order for the filters to work they need to be applied to a neighbor
statement within your BGP configuration.
Hope this helps.
Adam Brzyski
Design Engineer II
CCIE #8082, NNCDE
-----Original Message-----
From: Krake, Kris [mailto:KKrake@aegonusa.com]
Sent: Monday, November 12, 2001 1:26 PM
To: ccielab@groupstudy.com
Subject: BGP regular expression help
How would you write the regular expression for the following:
all paths NOT starting with the 1 123 pattern (AS 1 followed by AS 123)
I know that ^1_123 would show me those patterns with 1 123 but I need the
opposite of that (logical not)...
I have tried ^[^1_123] and [^^1_123]
Thanks for guidance...
Kris
This archive was generated by hypermail 2.1.4 : Fri Jun 21 2002 - 06:45:13 GMT-3