RE: AS-path access-list

From: Ouellette, Tim (tim.ouellette@xxxxxxx)
Date: Tue Mar 26 2002 - 02:18:39 GMT-3


   
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:22 GMT-3