From: Tim Fletcher (groupstudy@fletchmail.net)
Date: Mon May 24 2004 - 11:32:31 GMT-3
The 1st would work if your permitting it. The 2nd would match anything starting with 10, followed by any 3 ASNs, but could also include anything else after that because it's not anchored with a $. You could use a variation on the 2nd as a deny.
permit ^10_[0-9]*_[0-9]*_[0-9]*$
OR
deny ^10_[0-9]*_[0-9]*_[0-9]*_
As far as whether to use a * or + it isn't really going to matter in this case. * would match an empty string, whereas + would require at least 1 digit. Since there are not any AS path strings with 2 adjacent characters matching _ matching an empty string isn't an issue.
I personally prefer the + because I find it easier to read, but that's just me.
-Tim Fletcher
At 08:00 PM 5/20/2004, Tony wrote:
>Hi all
>
>deny prefix that have more than 4 AS, so if my
>neighbor AS is 10
>
>^10_[0-9]*_[0-9]*_[0-9]*$
>or
>^10_[0-9]*_[0-9]*_[0-9]*
>
>or use the + instead of * for each of the above
>
>Thx
>
>
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Domains Claim yours for only $14.70/year
>http://smallbusiness.promotions.yahoo.com/offer
>
>_______________________________________________________________________
>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 archive was generated by hypermail 2.1.4 : Wed Jun 02 2004 - 11:12:16 GMT-3