🛰️ RIP Protocol (Routing Information Protocol)

 

🛰️ RIP Protocol (Routing Information Protocol)


🧠 What is RIP?

RIP (Routing Information Protocol) is a dynamic routing protocol used by routers to exchange routing information automatically.

It helps routers learn routes to remote networks without manual configuration.


⚙️ Key Points about RIP

  1. Distance Vector Protocol – routers share their routing tables with neighbors.

  2. Metric: Uses hop count (number of routers a packet passes through).

  3. Maximum hops: 15 (16 = unreachable).

  4. Updates: Sent every 30 seconds to maintain routing tables.

  5. Versions:

    • RIPv1: Classful (no subnet info).

    • RIPv2: Classless (supports VLSM & authentication).


🧩 RIP in OSI Model

  • Operates at the Network Layer (Layer 3).

  • Uses UDP port 520 for communication.


🧰 RIP Lab in Cisco Packet Tracer

🎯 Goal:

Connect three routers in a series and configure RIP routing so that all PCs in different networks can communicate.


🖥️ Network Topology

PC1 -- R1 -- R2 -- R3 -- PC2

IP Address Plan

DeviceInterfaceIP AddressNetwork
R1G0/0192.168.1.1192.168.1.0/24
S0/0/010.0.0.110.0.0.0/30
R2S0/0/010.0.0.210.0.0.0/30
S0/0/110.0.0.510.0.0.4/30
R3S0/0/110.0.0.610.0.0.4/30
G0/0192.168.2.1192.168.2.0/24
PC1NIC192.168.1.10192.168.1.0/24
PC2NIC192.168.2.10192.168.2.0/24

🪜 Step-by-Step Configuration

Step 1: Configure IPs on Routers

🔹 R1

enable conf t interface g0/0 ip address 192.168.1.1 255.255.255.0 no shutdown exit interface s0/0/0 ip address 10.0.0.1 255.255.255.252 clock rate 64000 no shutdown exit

🔹 R2

enable conf t interface s0/0/0 ip address 10.0.0.2 255.255.255.252 no shutdown exit interface s0/0/1 ip address 10.0.0.5 255.255.255.252 clock rate 64000 no shutdown exit

🔹 R3

enable conf t interface s0/0/1 ip address 10.0.0.6 255.255.255.252 no shutdown exit interface g0/0 ip address 192.168.2.1 255.255.255.0 no shutdown exit

Step 2: Configure RIP on Each Router

🔹 R1

router rip version 2 network 192.168.1.0 network 10.0.0.0 no auto-summary

🔹 R2

router rip version 2 network 10.0.0.0 no auto-summary

🔹 R3

router rip version 2 network 192.168.2.0 network 10.0.0.0 no auto-summary

Step 3: Verify RIP Configuration

Run these commands:

show ip route

➡ You should see routes learned via RIP marked with “R”.

show ip protocols

➡ Confirms RIP is running and updates are enabled.


Step 4: Test Connectivity

  • Go to PC1 → Command Prompt
    Type:

    ping 192.168.2.10
  • If configuration is correct, you’ll get successful replies 🎉


🧠 What You Learned

ConceptDescription
RIPDynamic routing protocol (distance-vector)
MetricHop count (max 15)
UpdatesSent every 30 seconds
RIPv2Classless, supports subnet masks
PurposeAutomatically shares routes between routers

💬 Summary

“RIP makes routers talk to each other automatically — it’s simple, but powerful for small networks.”

Comments

Popular posts from this blog

🖥️ Private IP vs Public IP Address

🧠 Introduction to CCNA Networking