0% found this document useful (0 votes)
26 views9 pages

Static Routing and RIP Lab Manual

Lab #09 focuses on the implementation of Static Routing and RIP using Packet Tracer. It includes objectives, descriptions of static routing and RIP, configuration commands for routers, and exercises for students to verify their configurations and test connectivity. The lab manual provides detailed steps for configuring routers and understanding routing protocols.

Uploaded by

Sobia Iqbal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views9 pages

Static Routing and RIP Lab Manual

Lab #09 focuses on the implementation of Static Routing and RIP using Packet Tracer. It includes objectives, descriptions of static routing and RIP, configuration commands for routers, and exercises for students to verify their configurations and test connectivity. The lab manual provides detailed steps for configuring routers and understanding routing protocols.

Uploaded by

Sobia Iqbal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

LAB # 09

School of Informatics and Robotics

Lab Manual
Networking

Instructor
Sobia Iqbal
LAB # 09

Table of Contents

Lecture Topics Covered Page #

Lecture No 3
1
Lecture No 17
2
Lecture No 27
3
Lecture 41
No 4
Lecture 50
No 5
Lecture No 60
6
Lecture No 69
7
Lecture No 84
8
Lecture No 91
10
Lecture No 96
11
Lecture No 112
12
Lecture No 120
13
Lecture 125
No14
Lecture No 137
15
LAB # 09

Implementation of Static Routing using PT

Objectives
1. To learn how to configure a topology with Static Routing Protocol
2. Test and verify the configuration

Description

Static Routing:
A router can learn about remote networks in one of two ways:
1. Manually, from configured static routes
2. Automatically, from a dynamic routing protocol

Static routes are commonly used when routing from a network to a stub network. A stub
network is a network accessed by a single route.

The ip route command:


The command for configuring a static route is ip route. The complete syntax for configuring a
static route is:
Router(config)#ip route network-address subnet-mask {ip-address | exit-interface }

The following parameters are used:


 network-address - Destination network address of the remote network to be added to
the routing table
 subnet-mask - Subnet mask of the remote network to be added to the routing table.
The subnet mask can be modified to summarize a group of networks.

One or both of the following parameters must also be used:


 ip-address - Commonly referred to as the next-hop router's IP address
 Exit-interface - Outgoing interface that would be used in forwarding packets to the
destination network.
LAB # 09

Procedure
To implement this practical following network topology is required to be configured using the
commands learned in previous practical. After configuring the given network a packet should
be ping from any one machine to another.

Topology

Router1 Configuration Command

Router1>en
Router1#config t
Router1(config)#interface f0/0
Router1(config-if)#ip address [Link] [Link]
Router1(config-if)#no shut
Router1(config-if)#interface s2/0
Router1(config-if)#ip address [Link] [Link]
Router1(config-if)#no shut
Router1(config-if)#interface s3/0
Router1(config-if)#clock rate 64000
Router1(config-if)#ip address [Link] [Link]
Router1(config-if)#no shut
Router1(config-if)#exit
Router1(config)#exit
Router1#copy run start
LAB # 09

Router1#config t
Router1(config)#ip route [Link] [Link] [Link]
LAB # 09

Router1(config)#ip route [Link] [Link] [Link]


Router1(config)#exit
Router1#copy run start

Verify Router1 configuration command:

Router#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B – BGPD - EIGRP, EX – EIGRP


external, O - OSPF, IA – OSPF inter area, N1 – OSPF NSSA external type1, N2 – OSPF NSSA
external type2, E1 – OSPF external type1, E2 – OSPF external type2, E – EGP, I - IS-IS, 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 [Link]/24 is directly connected, FastEthernet 0/0


C [Link]/24 is directly connected, Serial 2/0
C [Link]/24 is directly connected, Serial 3/0
S [Link]/24 [1/0] via [Link]
S [Link]/24 [1/0] via [Link]

Exercises
1. Configure Router2 and Router3 with their respective IP address and also apply static
command.
2. Verify your configuration by using the command – Router# show ip route
3. Add a PC with each of the router and configure them with their respective IP.
4. Test the connectivity from any one PC to other by using ping command.
LAB # 09

Implementation of RIP using Packet Tracer

Objectives
1. To learn how to configure a topology with RIP
2. Test and verify the configuration

Description
The Routing Information Protocol (RIP) is a distance-vector routing protocol, which employs
the hop count as a routing metric. RIP prevents routing loops by implementing a limit on the
number of hops allowed in a path from the source to a destination. The maximum number of
hops allowed for RIP is 15. Originally each RIP router transmitted full updates every 30 seconds.

RIP versions:
 RIP version 1
The original specification of RIP uses Classful routing. The periodic routing updates do
not carry subnet information, lacking support for variable length subnet masks (VLSM).
In other words, all subnets in a network class must have the same size.

 RIP version 2
Due to the deficiencies of the original RIP specification, RIP version 2 (RIPv2) was
developed. It included the ability to carry subnet information, thus supporting Classless
Inter-Domain Routing (CIDR).

Enabling RIP on a Cisco router:


RIP can be enabled on a Cisco router by entering router configuration mode from configuration
mode. You must be in exec mode to perform the following commands:
LAB # 09
After configuring rip, we can discover routing table by show ip route command:

Commands used to monitor RIP


 Show ip protocol

Exercises

1. Consider the topology of Lab no 7, configure RIP on all the Router.


2. Test the connectivity by using ping command from any one PC to other.
3. Verify the configuration by using the above mentioned command.

Common questions

Powered by AI

Implementing static routing involves manually configuring routes in the routing table, which simplifies the routing process for smaller networks and provides complete control over path selection. This approach requires meticulous planning and management, as any changes necessitate manual updates. On the other hand, implementing RIP involves configuring the protocol to allow routers to automatically exchange information, adaptively updating the routing tables based on network changes. While this offers greater scalability and adaptability, it also introduces complexity in managing route convergence and potential latencies in route updates, demanding more robust network management strategies to prevent routing loops and inefficiencies .

The 'show ip route' command displays the routing table of a router, allowing network administrators to verify route configurations, such as connected and static routes or those learned via dynamic protocols. It assists in troubleshooting by showing how data packets will traverse the network, indicating potential misconfigurations or missing routes. This insight is critical for diagnosing connectivity problems, ensuring routes are established and functioning as intended .

Variable Length Subnet Masks (VLSM) allow for more efficient use of IP address space by enabling different subnet sizes within the same network class, reducing wasted addresses. RIP v2 supports VLSM, making it more flexible than classful addressing by accommodating varied network requirements and optimizing address distribution. However, this flexibility requires precise planning and management to avoid overlaps and inefficiencies, necessitating careful network design and monitoring .

To configure Router1 for static routing, begin by entering privileged EXEC mode with 'en', then configure terminal mode with 'config t'. Set up each interface with 'interface' commands, followed by assigning an IP with 'ip address' and enabling it with 'no shut'. For each static route, use 'ip route [network] [subnet-mask] [next-hop | exit-interface]' to manually specify routes. Finalize the setup with 'copy run start' to save the configuration. This procedure ensures proper connection setup and route definitions .

RIP version 1 uses Classful routing and does not support subnet information, which means it lacks support for Variable Length Subnet Masks (VLSM). This limitation prevents RIP v1 from efficiently managing IP address space in more complex networks. In contrast, RIP version 2 supports Classless Inter-Domain Routing (CIDR), which includes the ability to carry subnet information, thereby allowing for more efficient use of IP address space and support for VLSM. These enhancements in RIP v2 address deficiencies in the original RIP specification .

The command 'ip route 172.16.3.0 255.255.255.0 172.16.2.1' is used to add a static route in the routing table. It specifies that the network 172.16.3.0 with the subnet mask 255.255.255.0 can be reached through the next-hop router at the IP address 172.16.2.1. This means packets destined for the network 172.16.3.0 will be forwarded to the router with IP 172.16.2.1, guiding them to the correct destination network .

Static routing would be chosen over dynamic routing in scenarios where network predictability, control, and simplicity are priorities. It is particularly suitable for small networks or stub networks where routes rarely change, thus not warranting the overhead of dynamic protocols. Static routing eliminates unnecessary route updates, saving bandwidth and preventing potential errors due to dynamic route oscillations. However, it is less scalable and practical in large or frequently changing networks .

Routing Information Protocol (RIP) prevents routing loops by implementing a limit on the number of hops in a path from the source to a destination, setting a maximum allowable hop count of 15. This hop count limit effectively prevents indefinite loops but also limits network size, as any destination beyond 15 hops is considered unreachable. Although effective for smaller networks, this limit makes RIP less viable for larger, more complex networks .

Static routing requires manual configuration of routes on each router, which involves manually entering the network address, subnet mask, and either the next hop IP address or exit-interface in the routing table. In contrast, dynamic routing allows routers to automatically learn and update routes based on information from other routers using routing protocols like RIP or OSPF. Static routing offers simplicity and is usually used for smaller or simpler networks but lacks flexibility, whereas dynamic routing provides scalability and adapts better to changes in network topology .

The 'no shut' command is crucial because it enables the router interface that is administratively down by default. Without this command, the interface remains inactive, meaning it cannot send or receive packets, effectively isolating the connected network components. Activating the interface is essential for transmitting data across the network via the specified interfaces .

You might also like