RE: AS PATH

From: Tim Fletcher (groupstudy@fletchmail.net)
Date: Mon Jun 14 2004 - 16:50:13 GMT-3


\n only works in command line substitution, not in AS path matching (unfortunately).

-Tim Fletcher

At 12:03 PM 6/14/2004, Geert Nijs wrote:
>The regular expression to match AS 100 and any directly connected AS,
>including AS-path-prepending is:
>
> ^100(_100)*(_([0-9]+)(_\3)*)?$
>
>
>Regards,
>Geert
>
>-----Oorspronkelijk bericht-----
>Van: nobody@groupstudy.com [mailto:nobody@groupstudy.com] Namens
>Alexander Arsenyev (GU/ETL)
>Verzonden: maandag 14 juni 2004 16:13
>Aan: ccielab@groupstudy.com
>Onderwerp: RE: AS PATH
>
>
>Actually (10)+ in Cisco regexp means 10 or 1010, not 10_10_10_... Please
>remember that AS number is 2 bytes long so there is no such thing as
>AS 101010.
>To match neighbor AS number with prepends and its direct customers (no
>prepends) use ^(AS#_)+[0-9]*$ I've tried to develop AS path regexp which
>matches neighbor AS with prepends and its direct customers with prepends
>but no luck so far. The trick is that this regexp should match only 2
>different AS numbers in AS Path while ([0-9]+_)* matches ANY number of
>different AS numbers in AS path because regexp are "greedy" (I think).
>
>HTH,
>Cheers
>Alex
>
>-----Original Message-----
>From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of
>Scott Morris
>Sent: 12 June 2004 14:36
>To: 'Richard Dumoulin'; ccielab@groupstudy.com
>Subject: RE: AS PATH
>
>
>If you want to take into account the pre-pending of an ACL, you would
>associate the "+" character, which is "one or more of the preceding
>value". Don't forget to create a character class though with ().
>
>If you put 10+ by itself, that only treats the "0" as "one or more", so
>10, 100, 1000, 10000 would match.
>
>If you do (10)+ that will treat "10" as the thing to repeat. So whether
>my as-path has 10 or 10 10 10 10 10 doesn't matter.
>
>HTH,
>
>
>Scott Morris, CCIE4 (R&S/ISP-Dial/Security/Service Provider) #4713,
>CISSP, JNCIP, et al. IPExpert CCIE Program Manager IPExpert Sr.
>Technical Instructor swm@emanon.com/smorris@ipexpert.net
>http://www.ipexpert.net
>
>
>
>-----Original Message-----
>From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
>Richard Dumoulin
>Sent: Saturday, June 12, 2004 9:19 AM
>To: 'ccielab@groupstudy.com'
>Subject: AS PATH
>
>Some time ago, someone posted a link where an example of as-path
>access-list which embraced a neighbor AS plus its directed customers was
>shown.
>This acl did take into account prepending from those AS's.
>
>If anyone conserves this post would he send it again please ? I 've
>searched the archives but in vane,
>
>Thanks
>
>--Richard
>
>
>
>
>
>**********************************************************************
>Any opinions expressed in the email are those of the individual and not
>necessarily the company. This email and any files transmitted with it
>are confidential and solely for the use of the intended recipient. If
>you are not the intended recipient or the person responsible for
>delivering it to the intended recipient, be advised that you have
>received this email in error and that any dissemination, distribution,
>copying or use is strictly prohibited.
>
>If you have received this email in error, or if you are concerned with
>the content of this email please e-mail to:
>e-security.support@vanco.co.uk
>
>The contents of an attachment to this e-mail may contain software
>viruses which could damage your own computer system. While the sender
>has taken every reasonable precaution to minimise this risk, we cannot
>accept liability for any damage which you sustain as a result of
>software viruses. You should carry out your own virus checks before
>opening any attachments to this e-mail.
>**********************************************************************
>
>_______________________________________________________________________
>Please help support GroupStudy by purchasing your study materials from:
>http://shop.groupstudy.com
>
>Subscription information may be found at:
>http://www.groupstudy.com/list/CCIELab.html
>
>_______________________________________________________________________
>Please help support GroupStudy by purchasing your study materials from:
>http://shop.groupstudy.com
>
>Subscription information may be found at:
>http://www.groupstudy.com/list/CCIELab.html
>
>#####################################################################################
>This e-mail and any attached files are confidential and may be legally privileged.
>If you are not the addressee, any disclosure, reproduction, copying, distribution,
>or other dissemination or use of this communication is strictly prohibited.
>If you have received this transmission in error please notify Simac immediately
>and then delete this e-mail.
>
>Simac has taken all reasonable precautions to avoid virusses in this email.
>Simac does not accept liability for damage by virusses, for the correct and complete
>transmission of the information, nor for any delay or interruption of the transmission,
>nor for damages arising from the use of or reliance on the information.
>
>All e-mail messages addressed to, received or sent by Simac or Simac employees
>are deemed to be professional in nature. Accordingly, the sender or recipient of
>these messages agrees that they may be read by other Simac employees than the official
>recipient or sender in order to ensure the continuity of work-related activities
>and allow supervision thereof.
>#####################################################################################



This archive was generated by hypermail 2.1.4 : Sat Jul 03 2004 - 19:40:40 GMT-3