CNLAB MANUAL-experiments1-4
CNLAB MANUAL-experiments1-4
L P U
Course No: CS306 Course Title: Computer Networks Lab
3 2 4
OBJECTIVE: To learn the handling and configuration of networking hardware like RJ-45 connector,
Network cables, crimping tool, etc
Learn the proper handling of RJ-45 connectors to prevent damage and ensure secure connections.
Understand the different parts of an RJ-45 connector, including the cable strain relief, wiring
channels, and contacts.
2. Network Cable Preparation:
Learn how to prepare network cables for termination by stripping the outer jacket using a cable
stripper. Understand the appropriate length of cable required for specific network connections.
4. Crimping Process:
Practice the crimping process using a crimping tool to secure the wires within the RJ-45
connector. Understand the proper technique for applying pressure while crimping to ensure a
reliable connection.
6. Hands-on Practice:
Engage in hands-on practice by creating various network connections using RJ-45 connectors,
network cables, and crimping tools.
Experiment with different cable types, lengths, and wiring standards to gain proficiency.
7. Troubleshooting:
Understand common issues that may arise during the handling and configuration of networking
hardware. Learn troubleshooting techniques to identify and resolve problems, such as loose
connections, faulty crimps, or incorrect wiring.
PRE EXPERIMENT QUESTIONS:
Q1. What are some examples of networking hardware components that you expect to
encounter in this experiment?
Q2. How familiar are you with the purpose and functionality of RJ-45 connectors?
RJ-45 connector
OBJECTIVE: To understand and use basic computer network commands such as ping, ipconfig,
arp, finger, and hostname for network troubleshooting and management.
BRIEF DESCRIPTION:
Network commands are essential tools for diagnosing and troubleshooting network-related issues. This lab
experiment focuses on using the following commands:
ping: Tests connectivity between the host and another device on the network.
ipconfig: Displays network configuration details of the system.
arp: Shows and manages the ARP (Address Resolution Protocol) table.
finger: Displays information about system users (if enabled).
hostname: Displays or sets the hostname of the system.
PRE-EXPERIMENT QUESTIONS
STEPS
1. ping Command
Purpose: To test connectivity to another device.
Task: Ping a local device and a public website. Note the response time and packet loss.
2. ipconfig Command
Purpose: To display the system's IP configuration.
Sample Input: ipconfig
Sample Output:
IPv4 Address: 192.168.1.2
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
Task: Identify the IP address, subnet mask, and default gateway of your system
3. arp Command
Purpose: To view the ARP table.
4. finger Command
Purpose: To display information about logged-in users. (Ensure the service is enabled.)
Sample Input: finger username
Sample Output: [DESKTOP-AQI6RU8]
Task: Retrieve information about a specific user.
5. hostname Command
Purpose: To display the system's hostname.
Sample Input: hostname
Sample Output: DESKTOP-AQI6RU8
Description:
This experiment involves studying various networking devices used in a LAN setup, their
specifications, and how they interact to form a network. You will identify core devices such as switches,
routers, and access points, along with auxiliary devices and tools like patch panels and cables. By the
end of this experiment, you will gain insights into setting up and managing a network for 70-80 systems
in a lab environment.
Observe and note down the make, model, and specifications of the available switches, routers, and other
networking devices in the lab.
Study Device Functionality:
Device Interconnection:
Learn how devices (switches, routers, access points) are interconnected to form a LAN.
Network Testing:
Use a LAN tester and network monitoring tools like Wireshark to verify connectivity and network
traffic.
Post-Lab Questions:
1. What are the key differences between a router and a switch in a LAN setup?
2. Why is a managed switch preferred in large network setups?
3. How does a patch panel simplify network management?
4. Explain the importance of using a firewall in a network.
5. What tools can be used to monitor and troubleshoot a LAN network?
Expected Outcome:
By the end of this experiment, students should be able to:
1. Identify the core and auxiliary devices in a LAN setup.
2. Understand the functionalities of switches, routers, and access points.
3. Recognize the importance of proper cable management and selection.
4. Perform basic troubleshooting using LAN testers and monitoring tools.
LAB EXPERIMENT 2.b
1.Sample for Understanding: modify as per your Laboratory
PCs (Nodes):
o There are 10 rows with 6 PCs in each row, making a total of 60 systems.
o Represent each system as a small rectangle or icon labeled PC1, PC2, ..., PC60.
Switches:
o Use four central switches, each with 24 ports.
o Each switch will connect to 15 PCs (spanning multiple rows).
o Label the switches Switch-1, Switch-2, Switch-3, and Switch-4.
Add patch panels near each central switch for cable management.
Represent the patch panels as small rectangles labeled Patch Panel-1, Patch Panel-2, etc.
Connect the PCs to their respective patch panels using lines (representing Ethernet cables).
From each patch panel, draw connections to the corresponding switch.
5. Internet Connection
7. Final Connections
Each row of PCs connects to its assigned switch through the patch panel.
o Example:
Rows 1-2 → Switch-1
Rows 3-4 → Switch-2
Rows 5-6 → Switch-3
Rows 7-10 → Switch-4
The four switches connect to the router, which is linked to the internet.
Lab Experiment 3.a: Configuring and Testing a Sample Network Using Cisco Packet
Tracer (Two PCs)
Objective: To configure and test a basic network connection between two PCs in Cisco Packet Tracer
using real-time and simulation modes.
Description: This experiment involves creating a simple network setup with two PCs connected
through a switch. Students will learn to assign IP addresses, establish connectivity, and verify network
operations using both real-time and simulation modes in Cisco Packet Tracer.
Pre-Experiment Questions:
Steps:
Post-Experiment Questions:
Objective: To configure two or more network segments connected using hubs and verify
communication between devices.
Description: This experiment demonstrates how to set up multiple network segments using hubs and
establish inter-segment communication by assigning appropriate IP addresses.
Pre-Experiment Questions:
Steps:
Post-Experiment Questions:
Objective
To configure a router to connect two different LANs, one using a Class A network and the other
using a Class C network, enabling communication between the networks.
Description
Set up two separate LANs, each with its own IP class (Class A and Class C).
Assign appropriate IP addresses to each LAN.
Configure a router with two interfaces to route traffic between the networks.
Verify connectivity using the ping command.
Pre-Lab Questions
Lab Setup
1. Network Design
Devices Required
1 Router
2 Switches
4 PCs (2 for each LAN)
IP Addressing
Lab Steps
2. Create the Network Topology
Router> enable
Router# configure terminal
Router(config)# interface fastEthernet 0/0
Router(config-if)# ip address 10.0.0.1 255.0.0.0
Router(config-if)# no shutdown
Router(config-if)# exit
Configure the Class C network (LAN 2)
Router(config)# interface fastEthernet 0/1
Router(config-if)# ip address 192.168.1.1 255.255.255.0
Router(config-if)# no shutdown
Router(config-if)# exit
Save Configuration
Router# write memory
4. Configure IP Addresses on PCs
For each PC:
o IP Address: 10.0.0.2
o Subnet Mask: 255.0.0.0
o Default Gateway: 10.0.0.1
o IP Address: 10.0.0.3
o Subnet Mask: 255.0.0.0
o Default Gateway: 10.0.0.1
o IP Address: 192.168.1.2
o Subnet Mask: 255.255.255.0
o Default Gateway: 192.168.1.1
o IP Address: 192.168.1.3
o Subnet Mask: 255.255.255.0
o Default Gateway: 192.168.1.1
5. Verify Connectivity
ping 10.0.0.3
ping 192.168.1.3
ping 192.168.1.2
Post-Lab Questions
Objective: Configure a DHCP service on a dedicated server in Cisco Packet Tracer so that four connected PCs
dynamically receive IP addresses, subnet masks, default gateways, and DNS settings.
Description
Set up a simple network with one server, one switch, and four PCs.
Assign a static IP address to the server to ensure it is always reachable.
Enable and configure the DHCP service on the server, defining the DHCP pool and related network
parameters.
Configure the PCs to use DHCP to obtain their network settings.
Verify that the PCs receive the correct configurations and test connectivity across the network.
Pre-Experiment Questions
Lab Steps
1. Network Setup
Devices and Connections:
Devices:
o 1 Server (to act as the DHCP server)
o 1 Switch
o 4 PCs
Connections:
1. Open Cisco Packet Tracer.
2. Drag and drop a Server, a Switch, and four PCs onto the workspace.
3. Connect the server to the switch using a straight-through cable.
4. Connect each of the four PCs to the switch using straight-through cables.
2. Assign a Static IP to the DHCP Server
Before enabling DHCP, assign the server a static IP address to ensure it is consistently reachable:
Test Connectivity:
Open the Command Prompt on any PC (found under the Desktop tab).
Ping the server’s static IP (192.168.1.2) to confirm connectivity:
ping 192.168.1.2
Ping another PC’s IP address to ensure that devices can communicate with each other
ping <other-PC-IP-address>
Post-Experiment Questions
Expected Outcomes