Lab 4
Lab 4
Lab Outcomes By the end of this lab, students will be able to:
1. Introduction to Routers
Routers are network devices that connect multiple networks and direct data packets based on
their destination IP addresses. Unlike switches, which operate at Layer 2 (Data Link Layer) and
use MAC addresses, routers operate at Layer 3 (Network Layer) and use IP addresses.
2. Role of Gateways
A gateway is a device that acts as an access point between different networks. Routers are
commonly used as gateways in networks to facilitate communication between different subnets
and external networks such as the internet.
• Default Gateway: The IP address assigned to a router interface that serves as an exit
point for traffic leaving a local network.
• Use Case: If a computer in Network A (192.168.1.0/24) wants to communicate with a
server in Network B (10.0.0.0/24), the router serves as the gateway to route the data
correctly.
3. Designing Networks with IP Addressing and Subnet Masks
Understanding IP Addressing
Example:
• IP Address: 192.168.1.10
• Subnet Mask: 255.255.255.0
o Network: 192.168.1.0
o Host: .10
Subnetting Classes
Class A
Class B
Class C
To configure a router, we use the Command Line Interface (CLI) via console, SSH, or Telnet.
Connect to the router using a console cable and open a terminal emulator (e.g., PuTTY, Tera
Term). Once connected, enter privileged EXEC mode:
Router> enable
Static routing is a manually configured routing method where specific routes are defined by the
network administrator.
This command tells the router to send traffic destined for the 192.168.2.0/24 network through the
next-hop IP address 192.168.1.2.
Use the following command to check if the static route is correctly configured:
Objective:
Configure a single router and a switch with two VLANs to allow inter-VLAN
communication.
VLANs Setup:
VLAN 10 – IT Department
VLAN 20 – HR Department
🛠 Steps to Complete:
Solution Submission:
Task 2: Static Routing Between Two Routers with Two Switch Networks
Objective:
Implement static routing on two routers, each connected to a switch with multiple end
devices (total: 6 devices). Ensure devices can communicate within their network and across
networks via routers.
🛠 Steps to Complete:
Solution Submission:
Screenshot 1: Network topology with router and switch connections.
Screenshot 2: Static routing configuration on both routers.
Screenshot 3️: Successful communication between devices across networks.
Objective:
Design a three-router network, where each router connects to its own switch and local
network. Implement routing to enable full communication between all networks.
🛠 Steps to Complete:
Solution Submission:
# Qualities & 0 < Poor <=4 4.1 < Satisfactory 7.1 < Excellent
Criteria <= 7 <=10
ER1 Task Completion Minimal or no Some tasks were All tasks were
program completed, but the completed, and
functionality was program has the program runs
achieved. errors or without errors.
incomplete
functionalities.
# Qualities & 0 < Poor <=4 4.1 < Satisfactory 7.1 < Excellent
Criteria <= 7 <=10
ER6 Program Output Output is Output is mostly Output is clear,
inaccurate or accurate but may accurate, and well
poorly presented. lack labels, presented with
captions, or labels, captions,
formatting. and proper
formatting.
# Qualities & 0 < Poor <= 4 4.1< Satisfactory 7.1< Excellent <=
Criteria <= 7 10
ER8 Question & Answers some Answers most Answers all
Answer questions but not questions questions
confidently or confidently and confidently and
based on lab task based on lab task demonstrates a
knowledge. knowledge. deep
understanding of
the given lab task.