cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
813
Views
0
Helpful
7
Replies

Route-map for Static having different metric value

Rupesh Kashyap
Level 1
Level 1

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 7

Marwan ALshawi
VIP Alumni
VIP Alumni

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
Hall of Fame
Hall of Fame

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

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.

Rupesh

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

Jon

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.

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

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card