RE: BGP regular expression help

From: Krake, Kris (KKrake@xxxxxxxxxxxx)
Date: Mon Nov 12 2001 - 17:12:29 GMT-3


   
I am more interested in the show ip bgp regexp command to go through the bgp
route table. Therefore I need the logical not in the regular expression.
As for the expressions below: I know I'm green on regexp's but doesn't the
"^" mean originate. I would have thought the opposite of what you stated
below.

-----Original Message-----
From: BRZYSKI, ADAM E (SWBT) [mailto:ab1723@sbc.com]
Sent: Monday, November 12, 2001 2:48 PM
To: ccielab@groupstudy.com
Subject: RE: BGP regular expression help

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