×

Routing Information Protocol

Routing Information Protocol (RIP)

Routing Information Protocol is a distance-vector routing protocol. It uses hop count to determine the best way for the remote network. By default, it has a maximum hop count 15.

In every 30 seconds, RIP sends the complete routing table to all active interfaces. It uses Administrative Distance (AD) value 120 and port number 540.

Features of RIP:

A list of features of RIP is given below:

  • Network updates are exchanged periodically.
  • Routing Information (updates) is always broadcast.
  • distance-vector routing Protocol
  • Supports authentication
  • Uses hop count as a path selection metric
  • Provides a different mechanism to avoid loops in the network.

RIP Modes

RIP routers are categorized in two modes –

  • Active –In this mode, routers share their routing table information with other routers.
  • Passive –In this mode, the router takes routing table information from other routers but do not share its own routing table information with any other routers.

Note: By default, RIP runs on the Active mode. 

Routing Table Structure

The RIP routing table contains the following information:

  • Destination address - In this field, the IP address of the destination network is defined.
  • Next hop (Metric) – In this field, the next router’s IP address is defined to reach the destination.
  • Hop count – Hop count is the number of hops from source router through which data must pass to reach the destination network. It is also called a metric field.

RIP Timers

RIP uses four different kinds of timers in its performance:

  1. Route update timer:  Update timers are used to send updates periodically. In every 30 seconds, it sends a complete copy of its routing table to all routers.
  2. Route invalid timer: Router invalid timer is also called a Router timeout timer. It is used to determine that if there is no updates occur in the 180 seconds, then it is considered as an invalid timer and the router goes to holddown period.  
  3. Holddown timer: Holddown timer contains the number of seconds that the router waits before it accepts any new updates.
  4. Flush Time: The flush timer is set to the 240 seconds, means if a router is 240 seconds old, it will be flushed from the routing table.

RIP Versions                                                                               

There are mainly two types of RIP versions:

  1. RIPv1 (Routing Information Protocol version1)
  2. RIPv2 (Routing Information Protocol version2)

RIPv1 (Routing Information Protocol version1)

RIPv1 is also known as classful routing protocol because, in RIPv1, all devices in the network must use the same subnet mask. It does not send the subnet mask's information to its routing table.

Configure RIPv1 Routing

Consider the topology given below:

Configure RIPv1 Routing

A summary of the IP address configured in the router’s interfaces are shown in the table given below:

Device Interface IP Address Subnet Mask
Router1 Se0/0/0 192.168.10.1 255.255.255.0
Router0 Se0/0/0 192.168.10.2 255.255.255.0
Router0 Se0/0/1 192.168.20.1 255.255.255.0
Router2 Se0/0/0 192.168.20.2 255.255.255.0

Configure IP addresses to the Router’s interface:

Router>enable is used to enter the privileged exec mode.

Router#configure terminal is used to enter the global configuration mode.

Router(config)#hostname Router1 is used to identify the router in the whole network.

Router1(config)#interface s0/0/0 is used to enter the serial mode.

Router1(config-if)#ip address 192.168.10.1 255.255.255.0 is used to configure IP address to the interface.

Router1(config-if)#clock rate 640000 is used to control data flow.

Router1(config-if)#no shutdown is used to make interface always up.

Router1(config-if)#exit return the previous mode.

Router1

On Router1, give the following commands to configure an IP address.

Router>enable
Router#configure terminal   
Router(config)#hostname   
Router1   Router(config)#interface s0/0/0   
Router(config-if)#ip address 192.168.10.1 255.255.255.0   
Router(config-if)#no shutdown   
Router(config-if)#exit       
Routing Information Protocol 1

Router0

On Router0, give the following commands to configure the IP address.

Routing Information Protocol 2

Router2

On Router0, give the following commands to configure an IP address.

Routing Information Protocol 3

To configure RIP give following commands:

Router1

On Router1, give the following commands to configure RIP.

Router1(config)#router rip
Router1(config-router)#network 192.168.10.0
Router1(config-router)#exit 
Routing Information Protocol 4

Router0

On Router0, give the following commands to configure RIP.

Router0(config)#router rip
Router0(config-router)#network 192.168.10.0
Router0(config-router)#network 192.168.20.0
Router0(config-router)#exit  
Routing Information Protocol 5

Router2

On Router2, give the following commands to configure RIP.

Router(config)#router rip
Router(config-router)#network 192.168.20.0
Router(config-router)#exit 
Routing Information Protocol 6

Verifying RIP Routing

  • We use “show ip route” command to see the RIP Routing table.

Router1

Routing Information Protocol 7

Router0

Routing Information Protocol 8

Router2

Routing Information Protocol 9
  • We use “show ip protocols” command to verify which routing protocol is configured in the topology

Router#show ip protocols

Routing Information Protocol 10
  • We use “debug ip rip”command to view the RIP messages is being sent and received.

Router#debugip rip

Routing Information Protocol 11
  • We use “undebug all”command to stop the debugging process.

Router#undebug all

Routing Information Protocol 12

RIPv2 (Routing Information Protocol version2)

RIPv2 is also known as classless routing protocol or prefix routing. It is used to send subnet mask information with the route updates.

To configure RIP version 2 give the following command on the Routers:

Router1

On Router1, give the following commands to configure RIPv2:

Router1(config)#router rip   
Router1(config-router)#version 2   
Router1(config-router)#network  192.168.10.0   
Router1(config-router)#exit  

Router0

On Router0, give the following commands to configure RIPv2:

 Router0(config)#router rip   
Router0(config-router)#version2   
Router0(config-router)#network  192.168.10.0   
Router0(config-router)#network  192.168.20.0   
Router0(config-router)#exit 

Router2

On Router2, give the following commands to configure RIPv2:

Router(config)#router rip   
Router(config-router)#version2   
Router(config-router)#network   192.168.20.0   
Router(config-router)#exit    

To show the RIP version 2, we use “show ip protocols” command:

Routing Information Protocol 13

Difference between RIPv1 and RIPv2:

RIPv1 RIPv2
It sends an update as broadcast It sends an update as multicast
It is a classful routing protocol It is a classless routing protocol
It does not support authentication It supports authentication
It does not support VLSM It supports VLSM

Removing RIP Routing Configuration

If you have added a wrong network, you can remove that network from the routing table.

To remove the network, we use the following commands on the routers:

Router1

On Router1, give following commands to remove RIP:

Router1(config)#router rip   
Router1(config-router)#no network   192.168.10.0   
Router1(config-router)#exit    

Router0

On Router0, give following commands to remove RIP:

Router0(config)#router rip   
Router0(config-router)#no network   192.168.10.0   
Router0(config-router)#no network   192.168.20.0   
Router0(config-router)#exit    

Router2

On Router2, give following commands to remove RIP:

Router(config)#router rip   
Router(config-router)#no network   192.168.20.0   
Router(config-router)#exit    

We use “show ip protocols” command to verify if RIP configuration is removed or not. If show ip protocols command does not give any output means RIP configuration is removed.

Routing Information Protocol 14

Related Topics

Verifying OSPF Configuration

There are several ways to verify OSPF configuration and operations, which are: show ip route commandshow ip ospf commandshow ip ospf database commandshow ip ospf interface commandshow ip protocol commandshow ip ospf neighbor commanddebugging ospf Consider the following topology –We...

2 minutes read.

Configure Password

Password configuration is an in-built feature of Cisco devices.Each Cisco device uses a password to authenticate users for accessing the device and also provides security to the Cisco devices. There are five types of the...

2 minutes read.

Types of Spanning Tree Protocol

There are the following types of Spanning Tree Protocol – 1. Common Spanning Tree (802.1D) A Common Spanning Tree (802.1D) standard is developed by IEEE which elects only one Root Bridge for the...

2 minutes read.

Download and Install the Cisco Packet Tracer

Download and Install the Cisco Packet Tracer Step1: -Download Cisco Packet Tracer from the link given below: https://arief-jr.blogspot.com/2016/01/download-cisco-packet-tracer-62-for.html Here we will download Cisco packet tracer for Windows OS, so for Windows, go for...

1 minute read.

Static Routing

Static Routing Static Routing is the process in which static routes are manually added to the routing table through the direct configuration. Static routing is configured in the global configuration mode using syntax: Router(config)#ip route...

3 minutes read.

Classes of IP Addresses

Classes of IP Addresses There are following five classes of IP Addresses: Class A – It is used for allocating an IP address.Class B - It is used for allocating an IP address.Class C – It...

6 minutes read.

Configure Hostname

Configure a hostname on a router A hostname is a unique name given to a device (router or switch) on a network and is used to identify one device from another on a specific...

1 minute read.

Subnetting

Subnetting is the process of dividing a big network into many small networks. Suppose there is a company which has four departments like Development, HR, Marketing, and Testing. We don't want that all...

5 minutes read.

Configure IP Routing

IP Routing stands for “Internet Protocol Routing.”It is the process of sending packets (data) from a source network to a destination network.In IP Routing, routers select the best route for a data packet from the...

2 minutes read.

Power on a Cisco device

Power on a Cisco device When you power on a new purchased Cisco device for the first time, it performs a power-on-self-test (POST) operation to identify the hardware components and to verify that all...

1 minute read.

Spanning Tree Protocol (STP)

Spanning Tree Protocol (STP) is a Data link layer (layer 2) protocol that is used to discover and maintain a valid loop-free path for the switched network. It is also used to analyze...

4 minutes read.

Ethernet Networks in Review

Ethernet Networks in Review Today, Ethernet is the most used technology for the LANs. It is described as IEEE 802.3 standard. Ethernet is a connection-based media access method i.e., Carrier Sense...

2 minutes read.

Routing Basics

Routing is the process of delivering a message across one or more networks by choosing the most appropriate path.It is performed by many kinds of networks like telephone network (Circuit Switching), electronic data networks...

2 minutes read.

Open Shortest Path First (OSPF) Basics

Open Shortest Path First(OSPF) is a classless routing protocol. It uses a link-state routing protocol, which means that the routers exchange topology information with their nearest neighbors. The OSPF maintains three separate tables that...

3 minutes read.

Banner config

Banner config The banner is a little pool which is used in Cisco systems and also in other systems like Unix, Linux and so no.It permits a text that is displayed when you log in a...

1 minute read.

Switching

A switch is a network device which is used to connect multiple devices (routers, computers) inside the LAN (Local Area Network). It operates at Data Link Layer (Layer 2) of the OSI reference...

3 minutes read.

EIGRP Basics

EIGRP stands for Enhanced Interior Gateway Routing Protocol. It is also called as the Hybrid routing protocol. It contains the features of both distance vector and link-state routing protocols. Characteristics of EIGRP There are the...

5 minutes read.

Variable Length Subnet Masks (VLSMs)

Variable Length Subnet Masks (VLSMs) A VLSM is a process of allocating IP addresses to the subnets according to the user’s need.VLSM is introduced to avoid the wastage of IP addresses.It allows you to...

3 minutes read.

Configure DHCP

 DHCP DHCP stands for Dynamic Host Configuration Protocol.It is a client server-based architecture which involves DHCP client and DHCP server.It is a messaging system for the communication between the DHCP server and DHCP client.It...

3 minutes read.

Configure IP address to Router and PC in Packet Tracer

Configure IP address to Router and PC in Packet Tracer As a Network Engineer, it is compulsory to know how to configure an IP Address on networking devices like Router, Switch, PC, and Server.Assigning...

3 minutes read.