Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

Tuning BGP advertized routes

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?

Everyone's tags (3)
3 REPLIES
Cisco Employee

Tuning BGP advertized routes

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
Community Member

Tuning BGP advertized routes

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

Gold

Tuning BGP advertized routes

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

298
Views
0
Helpful
3
Replies
CreatePlease to create content