Redistributing Routes into EIGRP
Problem
You want to redistribute routes learned with another means into the EIGRP routing process.
Solution
The simplest way to redistribute routes into EIGRP uses the redistribute command, as follows:
Router1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router1(config)#ip route
Router1(config)#
192.168.10.0 255.255.255.0 192.168.20.5
router eigrp
Router1(config-router)#
55
redistribute static
Router1(config-router)#exit
Router1(config)#end
Router1#
You can set the properties of the routes that are redistributed from another routing protocol with the default-metric command:
Router1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router1(config)#router eigrp
Router1(config-router)#
55
redistribute rip
Router1(config-router)#default-metric
Router1(config-router)#
1000 100 250 100 1500
exit
Router1(config)#end
Router1#
Discussion
The show ip protocols command tells you about any route redistribution that the protocol is doing:
Router1#show ip protocols
Routing Protocol is "eigrp 55" Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Serial0.1 filtered by 34 (per-user), default is 34 Default networks flagged in outgoing updates Default networks accepted from incoming updates EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0 EIGRP maximum hopcount 100 EIGRP maximum metric variance 1 Redistributing: static, eigrp 55 Automatic network ...
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.