On this page, we look at:
To configure EIGRP on a network use the following command:
Router1>enable
Router#configure terminal
Router(config)#hostname HQ
HQ(config)#
HQ(config)#interface fa0/0
HQ(config-if)#ip address 192.168.2.1 255.255.255.0
HQ(config-if)#no shut
HQ(config-if)#interface Serial0/0/0
HQ(config-if)#ip address 172.16.1.5 255.255.255.252
HQ(config-if)#no shut
HQ(config-if)#exit
HQ(config)# router eigrp 100
HQ(config-router)#network 192.168.2.0 0.0.0.255
HQ(config-router)#network 172.16.1.4 0.0.0.3
HQ(config-router)#network 172.16.1.8 0.0.0.3
HQ(config-router)#end
HQ#
From the command above, all other routers on the network must be configured the same way, each router must declare its directly connected network to be seen by other routers on the network, and most importantly, all routers on the same network running EIGRP must be configured with the same process number 100
Redistributing Routes into EIGRP
You want to redistribute routes that were learned by the router into the EIGRP routing process.
To redistribute routes into EIGRP using the redistribute command:
Router1#configure terminal
HQ(config)#ip route 192.168.2.0 255.255.255.0 172.16.1.6
HQ(config)#router eigrp 100
HQ(config-router)#redistribute static
HQ(config-router)#end
HQ#
Setting the properties of the routes that are redistributed from another routing protocol with the default-metric command:
HQ#configure terminal
HQ(config)#router eigrp 100
HQ(config-router)#redistribute rip
HQ(config-router)#default-metric 1000 100 250 100 1500
HQ(config-router)#end
Use the show ip protocols command to view your route redistribution.
Creating a Default Route in EIGRP
You want to propagate a default route within EIGRP.
Configuring EIGRP to propagate a default route is by simply redistributing a static route to 0.0.0.0/0,
Use the following commands;
HQ#configure terminal
HQ(config)#ip route 0.0.0.0 0.0.0.0 172.16.1.6
HQ(config)#access-list 7 permit 0.0.0.0
HQ(config)#router eigrp 100
HQ(config-router)#redistribute static
HQ(config-router)#distribute-list 7 out static
HQ(config-router)#end
Router1#
If you log on to other routers, you will see that EIGRP is forwarding this route, and that it is accepted as a candidate default route. Use the following command to view:
Router2#show ip route 0.0.0.0