cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
293
Views
5
Helpful
2
Replies

Filtering BGP routes

Steven Williams
Level 4
Level 4

Besides a route map, what other way can you prevent a BGP neighbor from placing a certain route into its route table that its neighbor is advertising?                  

2 Replies 2

Harold Ritter
Cisco Employee
Cisco Employee

Hi Steven,

You can use different type of filters directly on the given neighbor, such as prefix-list, filter-list (as-path filtering), distribute-list, etc. For a detailed list, please refer to the BGP documentation. Route-maps are more flexible though and more commonly used in the industry.

Regards

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Hello,

Just to add to Harold's post, route-maps are used when you want filter BGP routes and also modify some attributes of permited routes (local preference, weight,...).

If you want just filter routes, you can use just prefix-list or any other method which Harold mentioned, but be aware that each method is suited for something else and sometimes you can not do same thing with two different methods. for example: prefix-list can not match BGP route based on AS_PATH as as-path access list. 

Best Regards

Please rate all helpful posts and close solved questions

Best Regards Please rate all helpful posts and close solved questions
Review Cisco Networking for a $25 gift card