How to configure Redistribution between OSPF and RIP

In a previous lesson I explained the basics of Redistribution. Now it’s time to actually configure some redistribution. In this lesson we’ll cover redistribution between OSPF and RIP. This is the topology that we will use:

OSPF RIP Redistribution R1 R2 R3

Let’s start with the redistribution between OSPF and RIP.

In a previous lesson I explained the basics of Redistribution. Now it's time to actually configure some redistribution. In this lesson we'll cover redistribution between OSPF and RIP. This is the topology that we will use: Let’s start with the redistribution between OSPF and RIP. First let me show y


First let me show you the router configurations:

R1(config)#router ospf 1
R1(config-router)#network 1.1.1.0 0.0.0.255 area 0
R1(config-router)#network 192.168.12.0 0.0.0.255 area 0
R2(config)#router ospf 1
R2(config-router)#network 192.168.12.0 0.0.0.255 area 0
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#no auto-summary 
R2(config-router)#network 192.168.23.0
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#network 3.3.3.0
R3(config-router)#network 192.168.23.0

Nothing special here, just OSPF and RIP advertising their networks.

R1#show ip route      

Gateway of last resort is not set

C    192.168.12.0/24 is directly connected, FastEthernet0/0
     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Loopback0
R2#show ip route 

Gateway of last resort is not set

C    192.168.12.0/24 is directly connected, FastEthernet0/0
     1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/2] via 192.168.12.1, 00:11:05, FastEthernet0/0
     3.0.0.0/24 is subnetted, 1 subnets
R       3.3.3.0 [120/1] via 192.168.23.3, 00:00:20, FastEthernet1/0
C    192.168.23.0/24 is directly connected, FastEthernet1/0
R3#show ip route 

Gateway of last resort is not set

     3.0.0.0/24 is subnetted, 1 subnets
C       3.3.3.0 is directly connected, Loopback0
C    192.168.23.0/24 is directly connected, FastEthernet0/0

You can see router R2 has learned RIP and OSPF information. Time for some redistribution action!

We're Sorry, Full Content Access is for Members Only...

If you like to keep on reading, Become a Member Now! Here is why:

  • Learn any CCNA, CCNP and CCIE R&S Topic. Explained As Simple As Possible.
  • Try for Just $1. The Best Dollar You've Ever Spent on Your Cisco Career!
  • Full Access to our 660 Lessons. More Lessons Added Every Week!
  • Content created by Rene Molenaar (CCIE #41726)

507 Sign Ups in the last 30 days

satisfaction-guaranteed
100% Satisfaction Guaranteed!
You may cancel your monthly membership at any time.
No Questions Asked!

Tags: ,


Forum Replies

  1. Hey René,
    you missed something in the command syntax. After I have read your lesson, I tried the example. With the shown syntax John still doesn’t advertise the Loopback addresses and the connected network. You probably wrote it in the lesson, but I had to complete:

    John(config)#router eigrp 12
    John(config-router)#redistribute rip
    John(config-router)#redistribute connected
    
    John(config)#router rip
    John(config-router)#redistribute eigrp 12
    John(config-router)#redistribute connected
    

    With this syntax, John started to advertise the Loopback and his directly connec

    ... Continue reading in our forum

  2. Hi Sascha,

    That’s right, this tutorial is just an overview of redistribution but I didn’t show the full config. Here’s the configuration example for those 3 routers:

    ... Continue reading in our forum

  3. Hi Lazaros,
    When we do redistribution from Eigrp to OSPF vice versa, which exactly routes are advertised, the best routes in routing table it self OR all routes of EIGRP (or OSPF) before comparing the Admin Distance between different Protocols in routing table.?

  4. Lazaros,
    Many thanks for your usual support

  5. Hi Waleed,

    That would prevent routes from looping around but it also means you have a single point of failure. Redistribution on two routers is no problem but you have to understand and deal with potential issues. For example, take a look at route tagging:

    ... Continue reading in our forum

19 more replies! Ask a question or join the discussion by visiting our Community Forum