From: Scott Morris (smorris@ipexpert.com)
Date: Sat Jan 26 2008 - 03:46:15 ARST
I'm not following what you are trying to do with the first two. If those
are your only two matches, then you'd probably be better off in two lines.
It just seems a strange one, even for the CCIE! :)
Your second one though, how about
ip as-path access-list 1 permit ^200(_300)(\1)+$
Scott Morris, CCIE4 (R&S/ISP-Dial/Security/Service Provider) #4713, JNCIE-M
#153, JNCIS-ER, CISSP, et al.
CCSI/JNCI-M/JNCI-ER
VP - Technical Training - IPexpert, Inc.
IPexpert Sr. Technical Instructor
A Cisco Learning Partner - We Accept Learning Credits!
Telephone: +1.810.326.1444
Fax: +1.810.454.0130
http://www.ipexpert.com
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Cielieska Nathan
Sent: Thursday, January 24, 2008 12:46 PM
To: Cisco certification
Subject: Best way to match this AS Path
Guys,
Need to match the following
AS 200 3342 317 340 340 302
AS 200 100
Here is what i came up with.. i'm wondering if there is a simpler way to
signify the AS string above?
ip as-path access-l 1 permit ^200_3[0-9]+_3[0-9]+_3[0-9]+_3[0-9]+_3
[0-9]+$
ip as-path access-l 1 permit ^200_100$
And what would be the most efficient way to do:
AS 200 300 300 300 300 300
Regards,
Nate
This archive was generated by hypermail 2.1.4 : Fri Feb 01 2008 - 10:38:01 ARST