cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
326
Views
10
Helpful
4
Replies
Enthusiast

Redistribute BGP routes to EIGRP with different metric for different prefixes

I have BGP learned prefixes that I want to redistribute into EIGRP but with different metrics. I use a route-map with a "set metric +512000" (with or without the + sign) but that does not take effect... I still receive the same metric with the default redistribute metric.

router eigrp 100
 redistribute bgp 64911 metric 128 11000 1 1 1 route-map BGP-to-EIGRP
!
route-map BGP-to-EIGRP permit 10
 match ip address prefix-list PFL1
route-map BGP-to-EIGRP permit 20
 match ip address prefix-list PFL2
 set metric +512000

Did I do anything wrong? If not, is there another way to achieve this result?

Thanks

Everyone's tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Rising star

Re: Redistribute BGP routes to EIGRP with different metric for different prefixes

You might have to specify all 5 K-values since you are redistributing into EIGRP to manipulate the metric. Perhaps this will work?

 

route-map BGP-to-EIGRP permit 10
 match ip address prefix-list PFL1
route-map BGP-to-EIGRP permit 20
 match ip address prefix-list PFL2
 set metric 512000 100 255 1 1500

  

4 REPLIES 4
Highlighted
Rising star

Re: Redistribute BGP routes to EIGRP with different metric for different prefixes

You might have to specify all 5 K-values since you are redistributing into EIGRP to manipulate the metric. Perhaps this will work?

 

route-map BGP-to-EIGRP permit 10
 match ip address prefix-list PFL1
route-map BGP-to-EIGRP permit 20
 match ip address prefix-list PFL2
 set metric 512000 100 255 1 1500

  

Enthusiast

Re: Redistribute BGP routes to EIGRP with different metric for different prefixes

That looks promising! I will try as soon as I get in the office. Thank you!
Engager

Re: Redistribute BGP routes to EIGRP with different metric for different prefixes

According to Document 49111 (Table 2), the set metric +/- eigrp-metric option is not supported in route-maps.

Not sure if this document is still up-to-date (last change 2005), but it actually says that the +/- form isn't supported at all in redistribution route-maps, regardless of the routing-protocol:

"The +/- form of this command is not currently supported in redistribution route-maps, and it is actually interpreted as the set metric command with the sign omitted."

 

I'd also suggest to try the classic set metric option.

 

HTH

Rolf

Enthusiast

Re: Redistribute BGP routes to EIGRP with different metric for different prefixes

Thanks but I have tried both +- and without it so just straight set metric, neither one works... Please help. Thanks
CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards