120 Labs for Cisco CCNA 200-125 and CCENT Exams

Lab 114: Route Redistribution between OSPF and EIGRP

We will use the following topology to demonstrate how to perform redistribution between EIGRP and OSPF. We assume that all the devices have already configured with the appropriate IP addresses.

1.  Once you have configure IP addresses, execute the following commands to configure EIGRP routing on Router1.

Router1( config)# router eigrp 100 
Router1( config-router)# network 10.0.0.0 
Router1( config-router)# network 192.168.0.0 
Router1( config-router)# exit

2.  Next, move on to Router2 and execute the following commands to configure RIP routing.

Router2( config)# router eigrp 100 
Router2( config-router)# network 192.168.0.0 
Router2( config-router)# exit

3.  Next, on Router2, execute the following commands to configure OSPF routing. We assume that our OSPF routers (Router1 and Router2) belong to area 0.

Router2( config)# router ospf 100 
Router2( config-router)# network 192.168.1.0 0.0.0.255 area 0 
Router2( config-router)# exit

4.  The following figure shows the routing configuration of Router2.

5.  Next, move on to Router3 and execute the following commands to configure OSPF routing.

Router3( config)# router ospf 100 
Router3( config-router)# network 192.168.1.0 0.0.0.255 area 0 
Router3( config-router)# network 20.0.0.0 0.255.255.255 area 0 
Router3( config-router)# exit

6.  Next, move on to Router1 and execute the following command to show the routing table.

Router1# show ip route

7.  In the preceding figure, you can see that only Router1 has only the network routes of RIP routing protocol. It cannot learn OSPF routes until we perform the route redistribution.

Redistribute EIGRP into OSPF

1.  To redistribute EIGRP into OSPF, you need to execute the following commands on Router2.

Router2( config)# router eigrp 100 
Router2( config-router)# redistribute ospf 100 metric 1000 100 255 1 1500

2.  The following figure shows how to redistribute EIGRP routes into OSPF.

Note: We recommend to have a close look up at the preceding figure to understand the syntax and values used to inject EIGRP routes into OSPF.

Redistribute OSPF into EIGRP

1.  To do so, execute the following commands on Router2.

Router2( config)# router ospf 100 
Router2( config-router)# redistribute eigrp 100 metric 1 subnets

2.  The following figure shows how to redistribute OSPF routes into EIGRP.

Note: We recommend you to have a close look up at the preceding figure to understand the syntax and values used to inject OSPF routes into EIGRP. One of the most important factors that you should consider is OSPF Cost Metric.

3.  Once you have redistributed EIGRP into OSPF and vice-versa, now, move on to Router1 and execute the following command to view the routing table.

Router1# show ip route

4.  Have you noticed any changes? Yes. In the preceding figure, you can see that 20.0.0.0/ 8 and 192.168.1.0/ 24 networks are added through the External EIGRP.

5.  Next, move on to Router3 and execute the following command to view the routing table.

Router3# show ip route

6.  In the preceding figure, you can see that 10.0.0.0/ 8 and 192.168.0.0/ 24 networks are added through the external OSPF protocol.

Related Articles

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
Back to top button