cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
559
Views
0
Helpful
3
Replies

Tuning BGP advertized routes

Amos Kafwembe
Level 1
Level 1

hey all.

I have two routers connecting to two upstream ISP's...(Im an ISP myself) one primary one secondary. The two routers have the exact BGP configuration. i recently configured local preference on the routers with one set to 150 and the other at default 100. now the problem is that the router with pref of 150 (R1) has started advertizing routes which are learned by (R2) how can i stop this? i do not want to advertize these routes. i only want to advertize my routes. my R1 is even getting to 100% cpu due to the same! now when i do a "show ip bgp nei xx.xx.xx.xx advertised-routes" I am advertising so many routes i cant even find the ones I want to advertize only! how can i stop these updates?

3 Replies 3

Harold Ritter
Cisco Employee
Cisco Employee

Hi Amos,

It is recommended to filter the routes you advertise to your upstream SPs. You could tag the routes you received from your customers and your internal routes with a special community and only allow routes tagged with this community to be advertized to the upstreams SPs.

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

sharad1988
Level 1
Level 1

Can you please put the BGP config section here of both router ?

ashirkar
Level 7
Level 7

Hello Amos,

In BGP you can filter routes on Neighbor based so you can control route received from one neighbor to another. Use route-map for it. Configure prefix list or access-list with permit for route you want to advertise to your neighbor and configure only single route map with permit statement and attached your ACL/prefix-list to it.

Example: If you want to advertise only 10.0.0.0/8 prefix to your neighbor

step 1:Configure prefix list with permit statement

ip prefix-list Filter permit 10.0.0.0/8

step 2:Configure route-map

route-map permit Route_Filter_To_R2

match ip prefix-list filter

Step3: Attached route-map to BGP

conf t

router bgp x

nei x.x.x.x route-map Route_filter_To_R2 out ......as you want to filter route to R2 , use outbound filter.

Please also go through document

BGP Prefix-Based Outbound Route Filtering

There are many ways you can do filtering in BGP like using community-list, As-path list etc.

Hope this help you

Regards,

Ashish

Community Manager-NI

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card