Route-map for Static having different metric value

Unanswered Question
Dec 17th, 2009
User Badges:

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
 

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Marwan ALshawi Fri, 12/18/2009 - 03:32
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

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

Jon Marshall Fri, 12/18/2009 - 04:17
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

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

Rupesh Kashyap Fri, 12/18/2009 - 04:53
User Badges:

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.

Jon Marshall Fri, 12/18/2009 - 05:12
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

Rupesh


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


Jon

Rupesh Kashyap Fri, 12/18/2009 - 05:15
User Badges:

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.

Marwan ALshawi Fri, 12/18/2009 - 05:23
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

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

Jon Marshall Fri, 12/18/2009 - 05:40
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

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

Actions

This Discussion