What is RIPv1 and How to Configure RIPv1

What is RIPv1 and How to Configure RIPv1

What is RIPv1

RIPv1 (Routing Information Protocol version 1) is a distance-vector, classful routing protocol for IPv4. The metric of RIPv1 is the hop count for path selection, and the maximum hop count is 15. If the hop count is greater than 15 then it will be considered unreachable. RIPv1 (Routing Information Protocol version 1) uses port number 526 through its routing messages are encapsulated in a UDP segment and routing messages are broadcast every 30 seconds.


In RIPv1 all devices use the same subnet mask in the network because it is classful. It doesn’t send subnet mask information in its routing updates, while RIPv2 does send in its updates. This is known as CIDR (Classless Inter-domain Routing). The administrative distance value of RIP is 120.

How to Configure RIPv1

RIPv1 Configuration
How to Configure RIPv1


Note: Router R1 and Router R2 are connected back to back using the serial cable. DCE cable is connected to router R1 and the DTE cable is connected to router R2.

Configuring the Router R1 Interfaces

Router> enable

Router# configure terminal

Enter configuration commands, one per line. End with CNTL / Z.

Router (config) # hostname R1

R1 (config) # interface serial 0/1/0

OR

R1 (config) # int s 0/1/0

R1 (config-if) # ip address 192.168.1.1   255.255.255.0

R1 (config-if) #encapsulation hdlc

R1 (config-if) #clock rate 64000

R1 (config-if) #keepalive 12

R1 (config-if) #no shutdown

R1 (config-if) #

OR

R1 (config-if) #no shut

%LINK-5-CHANGED: Interface Serial0/1/0, changed state to down

R1 (config-if) #exit

R1 (config) # interface fastethernet0/0

OR

R1 (config) # int fa0/0

R1 (config-if) # ip address 192.168.2.50 255.255.255.0

R1 (config-if) #no shutdown

Interface Status
Interface Status up

R1 (config-if) #end

R1#

Configuring the Router R2 Interfaces

Router> enable

Router# configure terminal

Enter configuration commands, one per line. End with CNTL / Z.

Router (config) # hostname R2

R2 (config) # interface serial 0/1/0

OR

R2 (config) # int s 0/1/0

R2 (config-if) # ip address 192.168.1.2   255.255.255.0

R2 (config-if) #encapsulation hdlc

R2 (config-if) #keepalive 12

R2 (config-if) #no shutdown   

OR

R2 (config-if) #no shut

Interface Status
Interface Status up

R2 (config-if) #exit

R2 (config) # interface fastethernet0/0

OR

R2 (config) # int fa0/0

R2 (config-if) # ip address 192.168.3.50 255.255.255.0

R2 (config-if) #no shutdown

Interface Status
Interface Status up

R2 (config-if) #end

R2#


Router R1 and R2 Routing Table

Router R1

R1# show ip route

IP Route
IP Route Status

Note: By default, in the router R1 routing table the two associated interfaces and directly connected networks are listed.

Router R2

R2# show ip route

IP Route
IP Route Status

Note: By default, in the router R2 routing table the two associated interfaces and directly connected networks are listed.

Ping Verification on Router R1 and R2

Router R1

R1#ping 192.168.1.2

Ping Verification
Successful Ping Verification

R1#ping 192.168.3.50

Ping Verification
Unsuccessful Ping Verification

Note: The ping was not successful because the network 192.168.3.0 is not listed in the router R1 routing table. Using the RIPv1 (Routing Information Protocol version 1) the network 192.168.3.0 needs to be put in the R1 routing table.

Router R2

R2#ping 192.168.1.1

Ping Verification
Successful Ping Verification

R2#ping 192.168.2.50

Ping Verification
Unsuccessful Ping Verification

Note: The ping was not successful because the network 192.168.2.0 is not listed in the router R2 routing table. Using the RIPv1 (Routing Information Protocol version 1) the network 192.168.2.0 needs to be put in the R2 routing table.


Configuring RIPv1 on Router R1 and R2

Router R1

R1#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

R1 (config) #router rip

R1 (config-router) #network 192.168.1.0

R1 (config-router) #network 192.168.2.0

R1 (config-router) #end

R1#

Router R2

R2#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

R2 (config) #router rip

R2 (config-router) #network 192.168.1.0

R2 (config-router) #network 192.168.3.0

R2 (config-router) #end

R2#

Router R1 and R2 Routing Table

Router R1

R1#show ip route

IP Route
IP Route Status

R1#

Router R2

R2#show ip route

IP Route
IP Route Status

R2#

IP Protocols
IP Protocols Command

Note: Use the show ip protocols command at Privileged EXEC Mode if the routing table is missing one or more expected routes.

IP Protocol Verification on Router R1

R1#show ip protocols

IP Protocol
IP Protocol Verification Status


Ping Verification on Router R1 and R2

Router R1

R1#ping 192.168.3.50

Ping Verification
Successful Ping Verification

R1#

Router R2

R2#ping 192.168.2.50

Ping Verification
Successful Ping Verification

R2#

Administrative Distance

There can be deployed more than one dynamic routing protocol in the same network. Using multiple routing protocols such as OSPF and RIP, it might be necessary to route the same network address.  Routing protocols use different metrics, the metric of RIP is hop count, and the metric of OSPF is bandwidth. To determine the best path it’s not possible to compare metrics.

AD (Administrative Distance) defines the routing source preference. Each routing source is prioritized most to least preferable using an AD value including static routes, specific routing protocols, and directly connected networks. To select the best path Cisco routers use the AD feature when they learn about the same destination network with two or more different routing sources. The AD value 0 to 255 is an integer value. More preferred the route sources on the lower value.

The Most preferred administrative distance is 0. A directly connected network has the AD value of 0, which cannot be changed. If the AD value is 255 then the router will not believe the source of that route and in the routing table, it will not be installed.

Administrative Distance
Administrative Distance Number


De-advertising a Network on Router R1

R1# configure terminal

R1 (config) #router rip

R1 (config-router) # no network 192.168.2.0

R1 (config-router) #end

R1#

Note: The entry from the routing table of router R1 will be removed after de-advertising the network 192.168.2.0, and the router R2 will not be able to communicate with the 192.168.2.0 network.

R1# show ip route

IP Route
IP Route Status

De-activating the RIP Protocol from the Router R1 and R2

Router R1

R1#configure terminal

R1 (config) #no router rip

 Router R2

R2#configure terminal

R2 (config) #no router rip

Note: After putting the command no router rip on routers R1 and R2, it will de-advertise the RIP and removed the RIP from R1 and R2, and bring the routing table to its default condition.

Search Tags

  1. What is RIP protocol and how it works
  2. What is difference between RIPv1 and RIPv2
  3. How to Configure RIPv1
  4. How to configure RIP v1 and RIP v2


If you want to Configure RIPv2 then Visit: 👇

How to Configure RIP Version 2

 

Get Packet Tracer Lab


If you want to configure and Practical Lab of Static and Dynamic Routing then visit below link: ðŸ‘‡

How to Configure Static Routing

Dynamic Routing

Redistribution of Routes in Dynamic Routing

How to Configure OSPF Multi-area

How to Configure OSPF Single-area

How to Configure EIGRP

How to Configure IGRP

How to Configure RIPv2

Post a Comment

0 Comments