08-18-2020 01:35 PM
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
Solved! Go to Solution.
08-18-2020 11:13 PM - edited 08-18-2020 11:15 PM
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
08-18-2020 09:55 PM
08-18-2020 11:13 PM - edited 08-18-2020 11:15 PM
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
08-19-2020 09:29 AM - edited 08-19-2020 10:24 PM
Excellent advice, Giuseppe. Thank you. This solution worked in GNS3 lab and will now go into production. EIGRP composite metric was manipulated as expected.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide