How to Configure RIP Version 1 (RIPv1) Routing in Cisco Packet Tracer
RIP is an internal routing protocol for the internal network that is not connected to the Internet backbone. It is widely used in internet connection systems, where many users connect to a network and can access it from different locations.
How to Configure RIPv1 on Cisco Router
When a user is connected to the terminal server (the device at which the call ends), it informs the nearest router with IP address with an RIP message warning.
It can, therefore, see that RIP is a protocol used by different routers used to exchange information and thus knows where to route a packet to reach a destination.
RIP (Routing Information Protocol) is a widely used distance vector routing protocol that most routers support. In other words, RIP is a Dynamic Routing protocol.
To configure this routing protocol on Cisco Routers, the Router Rip command is applied in global configuration mode and the connected networks are identified.
In this article, we will configure RIP Version 1 on two Routers with simulator software.
Step 1
Open Packet Tracer and create a network topology as in the following image, assign an IP address to the computers you have added to the workspace, and then wire all the devices.
Step 2
Assign IP addresses to the GigabitEthernet 0/1 and Serial 0/1/0 interfaces of the Cisco Router R1 and open the ports.
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#interface serial 0/1/0
R1(config-if)#ip address 10.1.1.1 255.255.255.0
R1(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial0/1/0, changed state to down
R1(config-if)#exit
R1(config)#interface gigabitethernet 0/1
R1(config-if)#ip address 192.168.5.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to up
R1(config-if)#end
R1#
Step 3
In the same way, configure the Serial0/ 1/1 and Gig0/1 interfaces of Router R2 as follows.
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#interface serial 0/1/1
R2(config-if)#ip address 10.1.1.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#
%LINK-5-CHANGED: Interface Serial0/1/1, changed state to up
R2(config-if)#exit
R2(config)#interface gigabitethernet 0/1
R2(config-if)#ip address 192.168.10.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to up
R2(config-if)#end
R2#
Step 4
Before enabling RIP, test the connection by pinging the interfaces through the computers. Pinging R1’s GigabitEthernet and Serial interfaces via PC1 will be successful as follows.
Step 5
The ping operation of the R2 Router’s Serial interface will fail because no routing protocol is configured.
Step 6
To communicate two different segments, you must configure a routing protocol on Routers. In this article, since we have explained RIP, first use the following commands in CLI to configure RIP on R1.
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#router rip
R1(config-router)#network 192.168.5.0
R1(config-router)#network 10.1.1.0
R1(config-router)#end
R1#
%SYS-5-CONFIG_I: Configured from console by console
R1#
Step 7
Now, to enable RIP in R2, follow these commands:
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#router rip
R2(config-router)#network 192.168.10.0
R2(config-router)#network 10.1.1.0
R2(config-router)#end
R2#
%SYS-5-CONFIG_I: Configured from console by console
R2#
Step 8
After you configure RIPv1, you can use the show ip route command to validate routes created on Routers.
The route outputs on R1 are as follows;
Step 9
Likewise, use the show ip route command to learn routing routes on Cisco Router R2.
Step 10
Ping from PC1 to the Serial interface of R2 and PC3 and PC4 computers on the subnet will be successful as follows.
Step 11
Ping operation from 192.168.10.0/24 network to 192.168.5.0/24 network will be successful.
Step 12
You can check the routing protocol running on the router with the show ip protocols command.
Step 13
In the same way, check R2.
Step 14
After executing the show ip rip database command in R1, you can see detailed route records.
Step 15
In the same way, you can examine it by applying the same command on R2.
Show Commands
R1#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/24 is directly connected, Serial0/1/0
L 10.1.1.1/32 is directly connected, Serial0/1/0
192.168.5.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.5.0/24 is directly connected, GigabitEthernet0/1
L 192.168.5.1/32 is directly connected, GigabitEthernet0/1
R 192.168.10.0/24 via 10.1.1.2, 00:00:14, Serial0/1/0
R1#
R2#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/24 is directly connected, Serial0/1/1
L 10.1.1.2/32 is directly connected, Serial0/1/1
R 192.168.5.0/24 via 10.1.1.1, 00:00:09, Serial0/1/1
192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/24 is directly connected, GigabitEthernet0/1
L 192.168.10.1/32 is directly connected, GigabitEthernet0/1
R2#
R1#show ip protocols
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 7 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Redistributing: rip
Default version control: send version 1, receive any version
Interface Send Recv Triggered RIP Key-chain
GigabitEthernet0/1 1 2 1
Serial0/1/0 1 2 1
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
10.0.0.0
192.168.5.0
Passive Interface(s):
Routing Information Sources:
Gateway Distance Last Update
10.1.1.2 120 00:00:00
Distance: (default is 120)
R1#
R2#show ip protocols
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 14 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Redistributing: rip
Default version control: send version 1, receive any version
Interface Send Recv Triggered RIP Key-chain
GigabitEthernet0/1 1 2 1
Serial0/1/1 1 2 1
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
10.0.0.0
192.168.10.0
Passive Interface(s):
Routing Information Sources:
Gateway Distance Last Update
10.1.1.1 120 00:00:01
Distance: (default is 120)
R2#
R1#show running-config
Building configuration...
Current configuration : 823 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
no ip cef
no ipv6 cef
!
license udi pid CISCO1941/K9 sn FTX1524N07E
!
spanning-tree mode pvst
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface GigabitEthernet0/1
ip address 192.168.5.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/1/0
ip address 10.1.1.1 255.255.255.0
clock rate 2000000
!
interface Serial0/1/1
no ip address
clock rate 2000000
shutdown
!
interface Vlan1
no ip address
shutdown
!
router rip
network 10.0.0.0
network 192.168.5.0
!
ip classless
!
ip flow-export version 9
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
end
R1#
R2#show running-config
Building configuration...
Current configuration : 805 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
no ip cef
no ipv6 cef
!
license udi pid CISCO1941/K9 sn FTX15248JFW
!
spanning-tree mode pvst
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface GigabitEthernet0/1
ip address 192.168.10.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/1/0
no ip address
clock rate 2000000
shutdown
!
interface Serial0/1/1
ip address 10.1.1.2 255.255.255.0
!
interface Vlan1
no ip address
shutdown
!
router rip
network 10.0.0.0
network 192.168.10.0
!
ip classless
!
ip flow-export version 9
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
end
R2#
R1#show ip rip dtbse
10.1.1.0/24 auto-summary
10.1.1.0/24 directly connected, Serial0/1/0
192.168.5.0/24 auto-summary
192.168.5.0/24 directly connected, GigabitEthernet0/1
192.168.10.0/24 auto-summary
192.168.10.0/24
via 10.1.1.2, 00:00:15, Serial0/1/0
R1#
R2#show ip rip dtbse
10.1.1.0/24 auto-summary
10.1.1.0/24 directly connected, Serial0/1/1
192.168.5.0/24 auto-summary
192.168.5.0/24
via 10.1.1.1, 00:00:03, Serial0/1/1
192.168.10.0/24 auto-summary
192.168.10.0/24 directly connected, GigabitEthernet0/1
R2#
Video
You can do it by watching the video below to enable RIPv1 on the router, and you can also subscribe to our YouTube channel to support us!
Final Word
In this article, we have configured RIPv1, a dynamic routing protocol on routers, and communicated computers in two segments. Thanks for following us!
Related Articles
♦ Cisco Static NAT
♦ Cisco Dynamic NAT
♦ Cisco Static Routing
♦ Cisco Port Security
♦ Cisco NAT PAT