CNLAB5
CNLAB5
THEORY:
Static routing is a method of routing in which network routes are manually configured
by a network administrator. Unlike dynamic routing protocols that learn routes
automatically, static routes must be explicitly defined and maintained. Each route
specifies a destination network and the next-hop address or exit interface to reach that
network.
Static routing is generally used in small or simple networks where there is minimal
need for frequent route updates. It provides better control, predictable behavior, and
enhanced security since only predefined paths are allowed. However, it lacks
scalability and fault tolerance because routes do not adjust automatically if there is a
failure in the network.
In static routing, when a router receives a data packet, it consults its routing table to
determine the best path to forward the packet. If the destination is found in the table
through a static route, the packet is forwarded accordingly. If not, the packet is
dropped or sent to a default gateway if configured.
Static routes are commonly configured using commands such as:
ip route <destination-network> <subnet-mask> <next-hop-ip-address/interface>
For example:
ip route 192.168.2.0 255.255.255.0 192.168.1.2
This command tells the router to forward packets destined for the 192.168.2.0/24
network to the next-hop address 192.168.1.2.
Static routing is useful in scenarios such as stub networks, default routing in small
offices, or for specifying backup routes in combination with dynamic routing.
OBSERVATIONS:
In this lab, we worked on configuring static routing in Cisco Packet Tracer using a
network composed of 3 routers, 3 switches, and 6 PCs (2 PCs per switch). The aim
was to enable communication between all the devices across different networks using
manually configured static routes.
Network Setup
We first created the network topology as shown in the diagram:
Each router was connected to a switch using FastEthernet ports.
Each switch connected to 2 PCs.
The routers were interconnected using serial cables. Since routers do not have
serial interfaces by default, we added WIC-2T serial interface modules.
We used serial cables instead of crossover cables due to better control over speed.
Serial links allow us to set the clock rate on the DCE side, making it possible to
simulate faster and more reliable connections than the limited-speed crossover cables.
Initial Testing
Using the ping command:
Ping between PCs in the same network was successful.
Ping between PCs in different networks failed — this was expected since no
routing information was configured yet.
Static Routing Configuration
To enable inter-network communication, we configured static routes on all three
routers using the following commands:
DISCUSSION:
This lab provided hands-on experience in designing and configuring a network with
multiple subnets and routers using static routing. We learned how to manually assign
IP addresses based on subnetting requirements and understood the importance of
serial connections between routers, especially for speed and reliability using clock
rate configuration. The use of verification commands like show ip interface brief,
show ip route, and show cdp neighbors helped us ensure correct setup and
connectivity. Additionally, the successful results of ping and tracert commands
confirmed that our static routes were working as intended, allowing communication
between devices across different networks.
CONCLUSION:
Hence, in this way we completed our lab on static routing.
TRIBHUVAN UNIVERSITY
KATHAMDU ENGINEERING COLLEGE
KALIMATI, KATHMANDU