Home > Configuring RIP – GNS3 Lab

Configuring RIP – GNS3 Lab

December 3rd, 2010 Go to comments

In this tutorial we will use RIP version 2 as the routing protocol so that the loopback interface of R0 can communicate with the loopback interface of R2.

A quick summary of RIPv2:

1) Routing Information Protocol (RIP) is a true distance-vector routing protocol
2) RIP permits a hop count of up to 15, so anything that requires 16 hops is deemed unreachable.
3) RIP sends the complete routing table out to all active interfaces every 30 seconds (RIP updates occur every 30 seconds)
4) RIP version 2 does send subnet mask information with the route updates. This is called classless routing.
5) RIP only uses hop count to determine the best way to a remote network (a hop is a router)
6) Administrative Distance is 120
7) Support VLSM & discontiguous networks

Note: If you are not sure about RIP, please read my RIP tutorial first

Below is the topology of this lab

Configure_RIP_topology

 

Configuring interfaces for R0, R1 & R2:

R0(config)#interface s0/0

R0(config-if)#ip address 192.168.1.2 255.255.255.0
R0(config-if)#no shutdown
R0(config-if)#interface lo0
R0(config)#ip address 12.0.0.1 255.0.0.0

R1(config)#interface s0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#interface f0/0
R1(config-if)#ip address 192.168.2.1 255.255.255.0
R1(config-if)#no shutdown

R2(config)#interface f0/0
R2(config-if)#ip address 192.168.2.2 255.255.255.0
R2(config-if)#interface lo0
R2(config-if)#ip address 200.200.200.1 255.255.255.0

Before enable RIP we should check the routing table on these routers to understand what has been changed in these routers.

R0

Configure_RIP_R0_routing_table_before.jpg

R1

Configure_RIP_R1_routing_table_before.jpg

R2

Configure_RIP_R2_routing_table_before.jpg

Notice that these 3 routers only see the directly connected routers.

Now if you ping from the loopback (or any interface) of R0 to the loopback (or any interface) of R2 then the it will not successful because R0 doesn’t know which interface it should send the packets out to reach network 200.200.200.0.

Now enable RIPv2 on three routers

R0(config)#router rip
R0(config-router)#version 2
R0(config-router)#network 12.0.0.0
R0(config-router)#network 192.168.1.0

R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#network 192.168.1.0
R1(config-router)#network 192.168.2.0

R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#network 200.200.200.0
R2(config-router)#network 192.168.2.0

Notice that with RIP protocol we just need to type the main network without subnet mask or wildcard mask. If you type a subnetwork, it will be auto summary into the main network.

Check the routing tables of these routers we will see the differences

R0

Configure_RIP_R0_routing_table_after.jpg

R1

Configure_RIP_R1_routing_table_after.jpg

R2

Configure_RIP_R2_routing_table_after.jpg

Now we can ping from the R0’s loopback interface to the R2’s loopback interface as the routing table of R0 has a path to R2’s loopback interface and vice versa.

If you want to check what is inside the update packet, use the command debug ip rip.

Configure_RIP_R0_update_packet.jpg

To turn off the debug ip, use the command undebug ip rip. If you want to disable all the debug processes, use the command undebug all.

Comments (10) Comments
Comment pages
1 2 366
  1. shahida
    March 29th, 2016

    latest dumps please…thanks

  2. ombuto
    March 31st, 2016

    thanks 9 tut

  3. jeje
    April 11th, 2016

    it is very nice and very clear

  4. Anonymous
    April 18th, 2016

    great

  5. Anonymous
    April 28th, 2016

    good tutorial

  6. kedar
    July 4th, 2016

    thank you so much 9 tut

  7. C.M
    September 27th, 2016

    Awesome

  8. agaba dunok
    January 25th, 2017

    let me download this to ma pc

  9. Anonymous
    February 2nd, 2017

    what is auto summary ?

  10. Sahil
    February 7th, 2017

    Why we have configured Loopback interface on router

Comment pages
1 2 366