RIP.pdf
RIP.pdf
Overview
RIP is a distance-vector routing protocol designed for small to medium
networks.
Key Features
Routing Updates:
RIP Versions
RIPv1 (Classful):
RIPv2 (Classless):
RIP 1
Timers:
At this point, the router marks the route as unreachable by setting the
metric to 16 (known as a "poison route").
Important: The route is still in the routing table at this stage, but it's
marked as unreachable (16).
An update has been received from another router, marking that route
with a metric of 16 (or unreachable).
An update has been received from another router, marking that route
with a higher metric than what is currently in the routing table. This is to
prevent loops.
After the route has been in the invalid state and hold-down state for a
total of 240 seconds, it is then flushed (removed) from the routing
table entirely.
Flush timer is the final stage of the process, and it ensures the stale
route is completely erased from the table after waiting the full 240
seconds.
RIP 2
Command Breakdown:
Router(config)# router rip
Router(config-router)# timers basic 20 120 120 160
120 : This sets the Invalid Timer to 120 seconds (default is 180 seconds).
120: This sets the Hold-down Timer to 120 seconds (default is 180
seconds).
160 : This sets the Flush Timer to 160 seconds (default is 240 seconds).
Troubleshooting Commands
1. show ip route - Displays routing table.
RIP 3
What is Passive Interfaces in RIP?
The passive-interface command allows administrators to control which
interfaces participate in the RIP process. By marking an interface as passive,
RIP:
Configuration Example:
1. Mark an Interface as Passive: Router(config)# router rip
Router(config-router)# passive-interface <interface-ID>
Helps other routers in the RIP domain know where to forward packets
destined for unknown or external networks.
1. Configure a default route on the router (using ip route 0.0.0.0 0.0.0.0 <next-
hop-IP> ).
RIP 4
Router(config)# router rip
Router(config-router)# version 2
Router(config-router)# default-information originate
When RIP shares routes with other routers, it automatically rounds off the
network addresses to classful boundaries (like 10.0.0.0/8 or
192.168.0.0/16 ).
This is done even if the sub-netted networks don't belong to the same
major network.
192.168.1.0/24
192.168.2.0/24
With auto-summary, RIP will automatically combine these two networks and
advertise them as 192.168.0.0/16 , which is incorrect because the networks are
not adjacent. This could cause routing issues.
This means RIP will advertise the exact network (like 192.168.1.0/24 and
192.168.2.0/24 ), instead of summarizing them as 192.168.0.0/16 .
2. Create a key and associate it with the key chain (e.g., key 1 ).
3. Define the key string (password) that both routers will use.
RIP 5
RouterA(config)# key chain MYCHAIN
RouterA(config-keychain)# key 1
RouterA(config-keychain-key)# key-string MYPASSWORD
RouterA(config)# interface s0
RouterA(config-if)# ip rip authentication key-chain MYCHAIN
RouterB(config)# interface s0
RouterB(config-if)# ip rip authentication key-chain MYCHAIN
that RIP updates on this interface are authenticated using the key chain.
Use this if you want simpler configuration, but it’s less secure.
MD5 encryption is used to hash the key, which adds a layer of security.
RIP 6
RouterA(config-if)# ip rip authentication mode md5
RouterB(config-if)# ip rip authentication mode md5
Key Chains: You can use different key chains on different interfaces if
needed (e.g., Router-A and Router-B may use one key chain for their direct
connection and a different one for another router’s interface).
Matching Keys: The key string and authentication mode (text or MD5)
must be the same on both routers for RIP authentication to work properly.
Avoid RIP for large networks due to its hop-count limitation and slow
convergence.
RIP 7