Adjusting EIGRP Metrics
Problem
You want to modify the routing metrics for routes learned via EIGRP.
Solution
You can use the offset-list configuration command to modify the metrics of routes that EIGRP learns through a particular interface:
Router1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router1(config)#access-list
22
permit
Router1(config)#
192.168.30.0
router eigrp
Router1(config-router)#
55
offset-list
22
in
Router1(config-router)#
10000 Serial0.1
exit
Router1(config)#end
Router1#
This command can also modify the EIGRP metrics of routes as the router sends them out through an interface:
Router1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router1(config)#access-list
33
permit
Router1(config)#
192.168.30.0
router eigrp
Router1(config-router)#
55
offset-list
33
out
Router1(config-router)#
10000 Serial0.1
exit
Router1(config)#end
Router1#
Discussion
The offset-list command simply adds a constant value to the metrics of all routes that are either sent or received through a particular interface. There are actually two other ways to modify metrics in EIGRP. Recall that the EIGRP metric is a combination of the aggregate delay and the minimum bandwidth along a path. So instead of adding an offset to the entire metric, you can modify the bandwidth and delay separately as follows:
Router1(config)#interface
Router1(config-if)#
Serial0.1
bandwidth
Router1(config-if)#
56
delay
1000
The bandwidth command takes an argument in kilobits ...
Get Cisco IOS Cookbook, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.