From: scott mann (smann0762@xxxxxxxxxxx)
Date: Thu Mar 28 2002 - 00:18:12 GMT-3
I believe that you need to replace the "*" symbol with the "+" symbol. This
is because with the "*", you are matching 0 or more instances of the
pattern[0-9]. If you are matching 0 instances of 0-9 then you are matching
everything, whereas if you use the "+" symbol, you are matching 1 or more
instances(must be a 0-9 to match).
Try it out on you routers and see...
Scott
>From: "Ouellette, Tim" <tim.ouellette@eds.com>
>Reply-To: "Ouellette, Tim" <tim.ouellette@eds.com>
>To: "'Hongtu Wang'" <hwang1073@rogers.com>
>CC: "'ccielab@groupstudy.com'" <ccielab@groupstudy.com>
>Subject: RE: AS-path access-list
>Date: Tue, 26 Mar 2002 00:18:39 -0500
>
>You can apply the following route map incoming on router1. The first line
>will allow any route with a as-path matching exactly 200 (your isp), and
>the
>2nd line in the as-path will match anything coming through as 200 but
>having
>only 1 AS after it (being directly connected to as 200) and not allow
>anything else that may be multiple AS "hops" away.
>
>ip as-path access-list 1 permit ^200$
>ip as-path access-list 1 permit ^200_[0-9]*$
>
>router bgp 1
> neighbor x.x.x.x remote-as 200
> neighbor x.x.x.x route-map foo in
>
>route-map foo permit 10
> match as-path 1
>
>Could also read the following
>
>http://www.cisco.com/warp/public/459/26.html
>
>-----Original Message-----
>From: Hongtu Wang [mailto:hwang1073@rogers.com]
>Sent: Monday, March 25, 2002 10:30 PM
>To: ccielab@groupstudy.com
>Subject: AS-path access-list
>
>
>Hi,
>
>My topology is:
>
>R1(AS100)----R2(AS200)----AS50---AS250
>
>If I only want to accept routes come from AS200 and all AS directly connect
>to AS200 (AS50 in my topology), how to write as-path access-list on R1?
>
>Thanks
>
>Hongtu Wang
This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:57:24 GMT-3