RE: Bgp filter-list or route-map?

From: Colin Barber (Colin.Barber@xxxxxxxxxxxxxx)
Date: Tue Jul 30 2002 - 05:09:08 GMT-3


   
I would use a filter list over a route map in this case.

You can only specify a single route-map and filter list per neighbor and the
filter list is designed for as_path filtering. So why waste a route-map to
do the same thing - you may need the route-map for other things - e.g.
communities, setting local pref etc.

-----Original Message-----
From: Daniel Garrity [mailto:ccie@garrityfamily.com]
Sent: 30 July 2002 01:23
To: CCIE Groupstudy
Subject: Bgp filter-list or route-map?

Finishing up lab one from Cisco CCIE Lab Practice Kit, by Satterlee and
Hutnik.

Small Part of scenario is as follows:

                As200---------------As300
                  - -
                   - -
                    - -
                     ----As100----

"As100 should only accept local routes from As300. All other routes
should be accepted via As200."

 Note: R2 is in As100 and neighbors with R6 which is in As300. As100
connects to both As200 and As300.

Recommended Answer.

R2(config)# ip as-path access-list 1 permit ^300$
R2(config)# route-map Accept_Local permit 10
R2(config-route-map)# match as-path 1
R2(config-router)# neighbor 152.1.11.2 route-map Accept_Local in

Would this not work just as well?

R2(config)# ip as-path access-list 1 permit ^300$
R2(config-router)# neighbor 152.1.11.2 filter-list 1 in

Is there a reason to use route-map over a filter-list?

Thanks

Dan



This archive was generated by hypermail 2.1.4 : Sat Sep 07 2002 - 19:36:48 GMT-3