Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Route-map for Static having different metric value

Hi, I have EIGRP on Core switch and Router. I have few static route on core switch. My target is to chagne Metric of 172.28.20.0/24 route as 3000 1 1 1500 and rest all should be 1600 1 1 1 1500. I have redistribute Static into EIGRP with route-map policy on Core switch, but figure is not reflecting properly on Router. please help.

----------                               

CORE-  router Eigrp 1

            no auto

            network 0.0.0.0

            Redistribute Static route-map R
ip prefix-list R-20 seq 5 permit 172.28.20.0/24
!
route-map R permit 10
match ip address prefix-list R-20
set metric 3000 1 1 1 1500
!
route-map R permit 20
set metric 1600 1 1 1 1500

----------------------------

Router#sh ip route e
     172.28.0.0/24 is subnetted, 3 subnets
D EX    172.28.20.0 [170/2218752] via 100.100.100.1, 00:04:34, Serial0/0
D EX    172.28.21.0 [170/2170112] via 100.100.100.1, 00:01:15, Serial0/0
D EX    172.28.25.0 [170/2170112] via 100.100.100.1, 00:01:15, Serial0/0
 

7 REPLIES

Re: Route-map for Static having different metric value

this metric valus are calculated from the interface/route

delay and bandwidth

you may enforce the eigrp to use only one of the above valuse for example only bandwidwidth

yu cam cahnge the k metric valuse to consider only bandwidth

using the command

metric weight 0 1 0 0 0 0

keep in mind this setting must to be same on all eigrp peers to form eigrp adjancency

good luck

if helpful rate

Hall of Fame Super Blue

Re: Route-map for Static having different metric value

rupesh_kashyap wrote:

Hi, I have EIGRP on Core switch and Router. I have few static route on core switch. My target is to chagne Metric of 172.28.20.0/24 route as 3000 1 1 1500 and rest all should be 1600 1 1 1 1500. I have redistribute Static into EIGRP with route-map policy on Core switch, but figure is not reflecting properly on Router. please help.

----------                               

CORE-  router Eigrp 1

            no auto

            network 0.0.0.0

            Redistribute Static route-map R
ip prefix-list R-20 seq 5 permit 172.28.20.0/24
!
route-map R permit 10
match ip address prefix-list R-20
set metric 3000 1 1 1 1500
!
route-map R permit 20
set metric 1600 1 1 1 1500

----------------------------

Router#sh ip route e
     172.28.0.0/24 is subnetted, 3 subnets
D EX    172.28.20.0 [170/2218752] via 100.100.100.1, 00:04:34, Serial0/0
D EX    172.28.21.0 [170/2170112] via 100.100.100.1, 00:01:15, Serial0/0
D EX    172.28.25.0 [170/2170112] via 100.100.100.1, 00:01:15, Serial0/0

Rupesh

As far as i know the "set metric" command does not work with EIGRP ie. it is for BGP/OSPF/RIP.

If you want to change the metrics of routes in EIGRP then use an offset-list -

EIGRP offset-list

Jon

New Member

Re: Route-map for Static having different metric value

Hi, I tried OFFSET list but it is not doing anything with D EX (AD-170)

routes. My target is to add metric in only one route which is D EX.

Hall of Fame Super Blue

Re: Route-map for Static having different metric value

Rupesh

Can you post config that didn't work and i'll test it.

Jon

New Member

Re: Route-map for Static having different metric value

You can do one thing. Like Router A is getting 3 External routes (AD170) for router B. Just try to edit metric as AD-175 on router A. Do not edit for all routes, just select only one. U will see the result.

Re: Route-map for Static having different metric value

wiht EIGRP you can not edit AD of external route selctivly like internal( from specific source), unless u change the AD for all external eigrp route

the question is can we get the goal the want to achieve becuase we may give here another idea o way to do it

thank you

Hall of Fame Super Blue

Re: Route-map for Static having different metric value

rupesh_kashyap wrote:

You can do one thing. Like Router A is getting 3 External routes (AD170) for router B. Just try to edit metric as AD-175 on router A. Do not edit for all routes, just select only one. U will see the result.

Rupesh

There is a misunderstanding in terminolgy here. The metric of a route and it's AD is not the same thing. So what you actually want to do is change the AD to 175 for one route only and not the metric of the route. Is that correct ?

What are your trying to achieve by doing this ?

Jon

549
Views
0
Helpful
7
Replies
CreatePlease to create content