From: Daniel Cisco Group Study (danielcgs@imc.net.au)
Date: Thu Apr 10 2003 - 19:13:26 GMT-3
I believe that the as-path list will also match paths containing:
"3500" and "12400"
"2400" and "43500"
ie the (.*) also allows other characters to appear before the 2400 or 3500...
Anyone agree?
Why not use something simple like:
ip as-path access-list 1 permit _3500_
ip as-path access-list 2 permit _2400_
route-map AND permit 10
match as-path 1
match as-path 2
set metric 5000
Anything wrong with this logic?
Daniel
-----Original Message-----
From: Ram Shummoogum [mailto:rshummoo@ca.ibm.com]
Sent: Friday, 11 April 2003 2:22 AM
To: ahmed_hassan@rayatelecom.net
Cc: ccielab@groupstudy.com
Subject: Re: regular express question
Try this.
ip as-path access-list 1 permit _3550_(.*)2400_|_2400_(.*)3500_
!
route-map AND permit 10
match as-path 1
set metric 5000
"Ahmed Hassan" <ahmed_hassan@rayatelecom.net>@groupstudy.com on 04/10/2003
10:35:26 AM
Please respond to "Ahmed Hassan" <ahmed_hassan@rayatelecom.net>
Sent by: nobody@groupstudy.com
To: <ccielab@groupstudy.com>
cc:
Subject: regular express question
Hi GROUP ,
Can any one tell me how to make a regular expression that have an logical
"AND" condition , for example
I wan a regular expression that will filter BGP table to get expressions
contain both AS2400 and AS3500 the order is not important
best regards
*************************************
Ahmed Hassan El-shinnawy
Network Planning and configuration Engineer
Raya Telecom
ahmed_hassan@rayatelecom.net
*************************************
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
This archive was generated by hypermail 2.1.4 : Thu May 01 2003 - 13:35:50 GMT-3