cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Join Customer Connection to register!
281
Views
5
Helpful
3
Replies
Highlighted
Beginner

How do I set inferior EIGRP metrics during redistribution?

I want a select group of BGP routes to have inferior EIGRP metrics upon redistribution.  Will this route map and set metric command work?  Or will the metric from redistribute command override the settings?

 


router eigrp 1

redistribute bgp 65012 metric 10000 100 255 1 1500 route-map BGP-REDIST

!

!

route-map BGP-REDIST permit 20

match ip address prefix-list BACKUP-CLOUD-ROUTES

set metric 1 16777215 1 1 1500

!

ip prefix-list BACKUP-CLOUD-ROUTES seq 10 permit 192.168.1.0/24

ip prefix-list BACKUP-CLOUD-ROUTES seq 20 permit 172.16.0.0/16

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Hall of Fame Master

Hello @davinci ,

the best way to implement this should be to avoid the use of the metric on the redistribute command by adding a final route-map clause like

route-map BGP-REDIST permit 30

set metric 10000 100 255 1 1500

 

then in router eigrp 1

no redistribute bgp 65012 metric 10000 100 255 1 1500 route-map BGP-REDIST

redistribute bgp 65012 route-map BGP-REDIST

 

In theory the most specific metric should apply so your setup should work, the solution proposed above should work for sure as you configure the set metric at route-map level for all routes.

 

Hope to help

Giuseppe

View solution in original post

3 REPLIES 3
Highlighted
VIP Engager


that is interesting situation; never had it; since you do have set it up; what the end result ?
Highlighted
Hall of Fame Master

Hello @davinci ,

the best way to implement this should be to avoid the use of the metric on the redistribute command by adding a final route-map clause like

route-map BGP-REDIST permit 30

set metric 10000 100 255 1 1500

 

then in router eigrp 1

no redistribute bgp 65012 metric 10000 100 255 1 1500 route-map BGP-REDIST

redistribute bgp 65012 route-map BGP-REDIST

 

In theory the most specific metric should apply so your setup should work, the solution proposed above should work for sure as you configure the set metric at route-map level for all routes.

 

Hope to help

Giuseppe

View solution in original post

Highlighted

Excellent advice, Giuseppe.  Thank you.  This solution worked in GNS3 lab and will now go into production.  EIGRP composite metric was manipulated as expected.