cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
402
Views
5
Helpful
1
Replies

Redistribute only learned routes from BGP to EIGRP

Rick_Dees
Level 1
Level 1

What might seem quite a simple config, but can’t seem to find a clear answer

 

I have ebgp running in a closed environment,

 

I am advertising a aggregate summary address out via bgp ie,

 

router bgp 65001

bgp log-neighbors 
aggregate-address 100.0.0.0 255.0.0.0

 

Then I am doing a redistribution into eigrp

 

router eigrp 1

network 100.0.0.0 255.255.0.0

network 100.1.0.0 255.255.0.0

redistribute bgp 65001 metric 100 1 255 1 1500

 

this however will redistribute the aggregate address back into eigrp..which is causing issues..

 

what’s the best way to only redistribute routes that are learned from the connected bgp peers?

 

TIA

1 Reply 1

Harold Ritter
Cisco Employee
Cisco Employee

Hi @Rick_Dees ,

 

You can use a route-map when redistributing into EIGRP to specifically exclude the aggregate address.

 

router eigrp 1
redistribute bgp 1 metric 100 1 255 1 1500 route-map deny-aggregate

!

ip prefix-list aggregate seq 5 permit 100.0.0.0/8
!
route-map deny-aggregate deny 10
match ip address prefix-list aggregate
!
route-map deny-aggregate permit 20
!

 

or specifically exclude the locally generated  BGP routes:

 

route-map deny-local deny 10
match route-type local
!
route-map deny-local permit 20

 

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