Hi everyone, in the static routing article we wrote the route to every network by hand. With 2 routers that is still easy, but once you have a dozen routers, every new network means adding a route on every single router, one at a time. Dynamic routing solves this problem, because the routers send each other information about the networks they know and build their routing tables on their own.
RIP (Routing Information Protocol) is the simplest dynamic routing protocol and usually the first one people learn. In this article I practice RIP version 2 in Cisco Packet Tracer 8.2.1 using the same topology as my guide on static routing configuration in Cisco Packet Tracer, so we can compare the results directly.
The Topology Used
Check the topology and cables

The topology has 2 Cisco 1941 routers, 2 Cisco 2960-24TT switches, and 4 PCs. If you followed the previous article, you do not need to change the topology or the IP addresses.

The green box is LAN 1 (192.168.1.0/24) behind Router0, and the yellow box is LAN 2 (192.168.2.0/24) behind Router1. The two routers are connected through the 10.0.0.0/30 network.
PC0, PC1 -> Switch0 (straight)
PC2, PC3 -> Switch1 (straight)
Router0 Gig0/0 -> Switch0 Gig0/1 (straight)
Router1 Gig0/0 -> Switch1 Gig0/1 (straight)
Router0 Gig0/1 -> Router1 Gig0/1 (cross-over)The router to router link uses a Copper Cross-Over cable because both ends are the same type of device. Here is the IP plan.
Router0 Gig0/0 192.168.1.1/24 Router0 Gig0/1 10.0.0.1/30
Router1 Gig0/0 192.168.2.1/24 Router1 Gig0/1 10.0.0.2/30
PC0 192.168.1.10 PC1 192.168.1.11 gateway 192.168.1.1
PC2 192.168.2.10 PC3 192.168.2.11 gateway 192.168.2.1If you are building the topology from scratch, set the IP addresses on the router interfaces and the PCs according to the table above before moving on to the RIP configuration.
Configuring RIP on Router0
Enable RIP version 2

Open the Router0 CLI and type the following commands.
configure terminal
no ip route 192.168.2.0 255.255.255.0 10.0.0.2
router rip
version 2
network 192.168.1.0
network 10.0.0.0
no auto-summary
end
write memoryThe no ip route line removes the static route from the previous article, so that RIP is really the one doing the work. If your topology is new, you can skip that line.
The network command in RIP does not mean advertising some other network. It selects the router’s own networks that take part in RIP. Router0 has 192.168.1.0 on Gig0/0 and 10.0.0.0 on Gig0/1, so both are listed. I use version 2 because RIP version 1 does not carry the subnet mask, and no auto-summary stops the router from summarizing 10.0.0.0/30 into 10.0.0.0/8.
Configuring RIP on Router1
List the networks owned by Router1

On Router1, the networks to list are 192.168.2.0 and 10.0.0.0.
configure terminal
no ip route 192.168.1.0 255.255.255.0 10.0.0.1
router rip
version 2
network 192.168.2.0
network 10.0.0.0
no auto-summary
end
write memoryNotice that we never write the LAN on the other side at all. That network will be learned automatically from the neighboring router.
Checking the RIP Results
Routes learned from RIP

Wait about 30 seconds, then run the following commands on Router1.
show ip route rip
show ip route connectedYou will see a line starting with R, which is 192.168.1.0/24 via 10.0.0.1. We never typed this route. Router1 got it from the RIP updates sent by Router0. The numbers [120/1] mean the RIP administrative distance is 120 and the distance is 1 hop.
RIP protocol details

show ip protocolsHere you can see that RIP sends an update every 30 seconds, uses version 2, and has automatic summarization turned off. The Routing for Networks section lists the networks we added, while Routing Information Sources shows 10.0.0.1 as the source of the updates, which is Router0.
Testing Communication Between LANs
Ping and tracert from PC3 to PC1

This time I test from the opposite direction. Open the Command Prompt on PC3 and run the following commands.
ping 192.168.1.11
tracert 192.168.1.11The ping succeeds, with one timeout at the start because of ARP. The tracert output shows the path going through 192.168.2.1 (Router1), then 10.0.0.1 (Router0), and finally reaching PC1.
Common Problems and How to Fix Them
The R route does not appear in the routing table
Make sure both routers use version 2 and that the listed networks match the interface IP addresses. Wait 30 seconds after the configuration, because RIP sends its updates periodically.
The route shows up as 10.0.0.0/8
This happens when you forget to type no auto-summary. Go back into router rip and type no auto-summary.
An S route is still in the routing table
A static route has an administrative distance of 1, so the router trusts it more than RIP, which has 120. Remove the old static route with no ip route so the router uses the route from RIP.
At this point the two LANs can talk to each other without writing a single manual route. RIP is easy to use, but it only counts hops and has a maximum of 15 hops, so it is not a great fit for large networks. In the next article we will try OSPF, which converges faster and is far more common in company networks. If you run into any other error while trying this, just leave a comment below.












