Lab 2
Lab 2
Routers
Objective:
The purpose of this lab is to configure and test RIP (Routing Information Protocol) on two Cisco
routers to enable dynamic routing between networks. The routers will exchange routing
information to allow communication between different subnets.
Theory:
What is RIP?
RIP (Routing Information Protocol) is a distance-vector routing protocol that uses hop count as
its metric. RIP is commonly used in smaller networks or as a part of the initial configuration of
larger networks. RIP routers share routing tables periodically and use the hop count to determine
the best path to each destination network.
RIP routers share routing updates with their neighbors periodically (every 30 seconds by
default).
Each router keeps a routing table that lists available routes and their associated hop count
(maximum of 15 hops).
If a router detects a route that is no longer valid (for example, due to a link failure), RIP will
recalculate the best route and propagate the changes to its neighbors.
Dynamic Routing: RIP enables routers to automatically adjust their routing tables without
manual configuration, which helps in dynamic environments.
Simplicity: RIP is easy to configure and is often used in smaller networks or for initial
configurations.
Cost-Effective: Due to its simple algorithm, RIP does not require powerful routers or
sophisticated hardware.
RIP Process:
RIP Initialization: When the router is powered on, it sends a routing update to its neighbors.
Routing Table Exchange: Routers exchange routing updates every 30 seconds, allowing each
router to know about the available routes.
Convergence: Once a router has learned the routing paths, it builds its routing table and adjusts
to the network's current topology.
Components of RIP:
RIP Routers: Devices that use RIP to exchange routing information and dynamically calculate
the best routes to destination networks.
Routing Table: A table that stores routes and their associated metrics (hop count). The table is
updated dynamically as RIP updates are received.
Neighbors: Routers directly connected to each other that exchange routing information.
RIP Configuration on Cisco Routers (Based on Your CLI):
The following is the configuration for two Cisco routers that will communicate using RIP, as per
the CLI commands you p rovided:
Router 1 Configuration:
Router1> enable
Router1# configure terminal
Configure Interfaces:
Router 2 Configuration:
Router2> enable
Router2# configure terminal
Configure Interfaces:
Router2(config-if)# no shutdown
Router2(config-if)# exit
Ease of Setup: RIP is relatively easy to configure and manage. It does not require complex
configurations or extensive training, making it ideal for small networks or for network
administrators who are new to routing protocols.
Lightweight: Compared to more advanced protocols like OSPF or EIGRP, RIP is less resource-
intensive, requiring less CPU and memory on routers. This makes it
a good choice for smaller routers or older hardware with limited resources.
Dynamic Routing: RIP automatically calculates the best routes in the network based on the
number of hops. This means there’s no need for manual route configuration, simplifying network
management as the network grows or changes.
Good for Simple Networks: For small or medium-sized networks (usually with less than 15
hops), RIP works efficiently, providing a reliable routing solution without the need for complex
setups.
Minimal Administrative Effort: For small networks, RIP can be the most straightforward
routing solution, minimizing the need for constant administrative attention or configuration
updates.
Classful and Classless Support: Traditional RIP (RIP v1) operates in a classful manner, which
means it doesn’t send subnet information in updates. However, RIP v2 and RIPng (RIP for IPv6)
support classless routing, allowing for subnet information to be included in the routing updates
and offering more flexibility in IP addressing.
Periodic Updates: RIP routers send regular updates every 30 seconds to keep the network aware
of any changes. This helps routers stay up-to-date with the network topology, automatically
adjusting when links go down or when new paths are available.
Backup Routes and Load Balancing:
Multiple Routes: RIP can support up to 4 equal-cost routes for load balancing, which can help
distribute network traffic more efficiently and provide some redundancy in case of failures.
Wide Compatibility:
Industry Standard: RIP is one of the oldest and most widely supported routing protocols. Many
network devices, including routers and switches, support RIP, making it a good option for basic
networking needs.
Disadvantages of RIP:
Limited Scalability:
Hop Count Limitation: RIP has a maximum hop count of 15, which makes it unsuitable for
large-scale networks. Any network requiring more than 15 hops will be considered unreachable
by RIP.
Slow Convergence:
Convergence Time: RIP has a slow convergence time compared to other routing protocols like
OSPF or EIGRP. This means that after a network change (e.g., a link failure), it takes longer for
RIP to update its routing tables across the network, leading to temporary routing loops or
unreachable destinations.
Frequent Updates: RIP sends full routing updates every 30 seconds, even if there have been no
changes in the network. This can result in unnecessary bandwidth consumption, especially in
larger networks.
Basic Algorithm: RIP uses the distance-vector algorithm, which is relatively simple and lacks the
advanced features of more complex protocols like OSPF or EIGRP. This simplicity can lead to
inefficient routing decisions, as RIP doesn’t consider factors such as link bandwidth or load.
Routing Loops:
Potential for Loops: Due to its slow convergence and distance-vector nature, RIP is more prone
to routing loops. Although mechanisms like split horizon, route poisoning, and hold-down timers
help mitigate this, they do not entirely eliminate the risk of loops in unstable networks.
Lack of Security: Early versions of RIP did not support authentication, making it vulnerable to
unauthorized or malicious routing updates. Although RIPng (RIP next generation) introduced
security features, earlier versions lack robust security mechanisms compared to other protocols.
No Support for Hierarchical Structure: RIP does not support hierarchical network designs, which
can make it harder to manage large networks efficiently. In contrast, protocols like OSPF support
hierarchical routing and areas, providing better scalability and efficiency.
Limited Load Balancing: RIP has limited support for load balancing. While it supports basic load
balancing (up to 4 equal-cost paths), it does not handle load balancing across unequal paths,
which can limit its performance in complex network topologies.
Place two Cisco routers in Cisco Packet Tracer and connect them via Ethernet links.
Ping Test: From one of the PCs in Router 1's network, try to ping a PC in Router 2's network to
verify connectivity.
Check Routing Table: On both routers, use the show ip route command to view the routing
tables and ensure they have learned about the remote networks via RIP.
Conclusion:
This lab demonstrated the configuration and implementation of RIP on two Cisco routers. By
configuring RIP and assigning appropriate IP addresses to the interfaces, the routers were able to
exchange routing information and dynamically adjust their routing tables. RIP provides an
efficient and simple solution for small-to-medium-sized networks, allowing for dynamic routing
and easier management of network topologies.