RIP is very simple and straight forward to configure.
You have to add all the networks that are directly connected to the router to its routing table.
- For Kopsiro Router, we shall add two networks to the routing table; LAN network to PC-1 and the network Connecting to Kapso Router.
- For Kapso Router, we add the Network connecting to Kopsiro Router and the LAN router to PC-2
Steps
Kopsiro Router
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#hostname Kopsiro
Kopsiro(config)#interface fa0/0
Kopsiro(config-if)#ip add
Kopsiro(config-if)#ip address 172.16.0.1 255.255.0.0
Kopsiro(config-if)#no shut
Kopsiro(config)#int fa0/1
Kopsiro(config-if)#ip add
Kopsiro(config-if)#ip address 10.0.1.1 255.255.255.0
Kopsiro(config-if)#no shut
Kopsiro(config)#router rip
Kopsiro(config-router)#version 2
Kopsiro(config-router)#network 10.0.0.0
Kopsiro(config-router)#net
Kopsiro(config-router)#network 172.16.0.0
Kapso Router
R2#config t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#hostname Kapso
Kapso(config)#int fa0/0
Kapso(config-if)#ip add 172.16.0.3 255.255.0.0
Kapso(config-if)#no shut
Kapso(config-if)#int fa0/1
Kapso(config-if)#ip address 192.168.0.1 255.255.255.0
Kapso(config-if)#no shut
Kapso(config-router)#version 2
Kapso(config-router)#network 192.168.0.0
Kapso(config-router)#network 172.16.0.0
Tests
Kopsiro#show ip route
Codes: 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
i - IS-IS, su - IS-IS summary, 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
C 172.16.0.0/16 is directly connected, FastEthernet0/0
10.0.0.0/24 is subnetted, 1 subnets
C 10.0.1.0 is directly connected, FastEthernet0/1
R 192.168.0.0/24 [120/1] via 172.16.0.3, 00:00:01, FastEthernet0/0
Kapso#show ip route
Codes: 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
i - IS-IS, su - IS-IS summary, 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
C 172.16.0.0/16 is directly connected, FastEthernet0/0
R 10.0.0.0/8 [120/1] via 172.16.0.1, 00:00:01, FastEthernet0/0
C 192.168.0.0/24 is directly connected, FastEthernet0/1
Kapso#
From the above output, the two routers have learned each others LAN networks
PC-2> ping 10.0.1.3
84 bytes from 10.0.1.3 icmp_seq=1 ttl=62 time=23.297 ms
84 bytes from 10.0.1.3 icmp_seq=2 ttl=62 time=32.293 ms
84 bytes from 10.0.1.3 icmp_seq=3 ttl=62 time=32.315 ms
84 bytes from 10.0.1.3 icmp_seq=4 ttl=62 time=31.245 ms
84 bytes from 10.0.1.3 icmp_seq=5 ttl=62 time=32.312 ms
PC-2> ping 10.0.1.3
84 bytes from 10.0.1.3 icmp_seq=1 ttl=62 time=23.297 ms
84 bytes from 10.0.1.3 icmp_seq=2 ttl=62 time=32.293 ms
84 bytes from 10.0.1.3 icmp_seq=3 ttl=62 time=32.315 ms
84 bytes from 10.0.1.3 icmp_seq=4 ttl=62 time=31.245 ms
84 bytes from 10.0.1.3 icmp_seq=5 ttl=62 time=32.312 ms
PC-1> ping 192.168.0.2
84 bytes from 192.168.0.2 icmp_seq=1 ttl=62 time=42.271 ms
84 bytes from 192.168.0.2 icmp_seq=2 ttl=62 time=43.337 ms
84 bytes from 192.168.0.2 icmp_seq=3 ttl=62 time=44.424 ms
84 bytes from 192.168.0.2 icmp_seq=4 ttl=62 time=44.190 ms
84 bytes from 192.168.0.2 icmp_seq=5 ttl=62 time=43.249 ms
From the above pings, the two PCs can ping each other.
84 bytes from 192.168.0.2 icmp_seq=1 ttl=62 time=42.271 ms
84 bytes from 192.168.0.2 icmp_seq=2 ttl=62 time=43.337 ms
84 bytes from 192.168.0.2 icmp_seq=3 ttl=62 time=44.424 ms
84 bytes from 192.168.0.2 icmp_seq=4 ttl=62 time=44.190 ms
84 bytes from 192.168.0.2 icmp_seq=5 ttl=62 time=43.249 ms
From the above pings, the two PCs can ping each other.