Bgp filter-list or route-map?

From: Daniel Garrity (ccie@xxxxxxxxxxxxxxxxx)
Date: Mon Jul 29 2002 - 21:23:12 GMT-3


   
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