cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
628
Views
5
Helpful
3
Replies

How do I set inferior EIGRP metrics during redistribution?

davinci
Level 1
Level 1

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

Giuseppe Larosa
Hall of Fame
Hall of Fame

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

Martin L
VIP
VIP

that is interesting situation; never had it; since you do have set it up; what the end result ?

Giuseppe Larosa
Hall of Fame
Hall of Fame

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

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

Review Cisco Networking products for a $25 gift card