0% found this document useful (0 votes)
17 views

CSC-23F-078-CS3B-LABEXAM

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

CSC-23F-078-CS3B-LABEXAM

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Faculty of Information Technology

Spring-2024 (Lab-Exam)
Session: _____________________ Course Instructor/Lab Instructor: Muhammad Tahir Abbasi
Subject: ___Computer NETWORKS Course Code: ___CEN303___ Max. Marks: 15
Class & Section: ____CS3B_______________ Date: 29-06-2024 Time: _20 mins_
NAME : Malik Muhammad Umer Student ID : CSC-23F-078

Q1. How to establish connection and communication between two PCs?


Q2. How to Configure DHCP within a LAN in a packet Tracer?

Answer # 1 :
1. Open Cisco Packet Tracer.
2. From the End Devices menu, drag and drop as many as you want PCs onto the workspace.
3. Use a copper straight-through cable to connect the PCs.
4. if using a switch:
1. PC0 FastEthernet0 to Switch FastEthernet1/0.
2. PC1 FastEthernet0 to Switch FastEthernet1/1.
5. Click on PC0, go to the Desktop tab, and select IP Configuration:

Set:

o IP Address: 192.168.1.1
o Subnet Mask: 255.255.255.0

⚫ Repeat for PC1, setting:

o IP Address: 192.168.1.2
o Subnet Mask: 255.255.255.0

⚫ Repeat for PC2, setting:

o IP Address: 192.168.1.3
o Subnet Mask: 255.255.255.0

Test Connectivity

Open the Command Prompt on PC0:

1. Go to the Desktop tab and select Command Prompt.And write:

ping 192.168.1.2

Repeat the process on PC1, pinging 192.168.1.3.

Repeat the process on PC2, pinging 192.168.1.2.


Answer # 2 :
To configure DHCP within a LAN in Cisco Packet Tracer, follow these detailed steps:
1. Network Topology Setup
2. Drag and Drop Devices:
Add a Server (to act as the DHCP server).
Add a Switch.
Add End Devices (like PCs).
Using a Server as a DHCP Server
1. Set Static IP for the Server:
Click the server, go to the Desktop tab, and open IP Configuration.
Set:
IP Address: 192.168.1.2
Enable DHCP Service:
⚫ Go to the Services tab.

⚫ Select DHCP from the left menu.

⚫ Enable the DHCP service and configure a pool:


⚫ Start IP Address: 192.168.1.11

Save the configuration.

Configure End Devices


1. Click on each PC or laptop.

2. Go to the Desktop tab and select IP Configuration.

3. Choose DHCP for IP assignment. The device should


receive an IP address from the DHCP server.

Verify Connectivity

1. Check assigned IP addresses:

2.Go to the PC's Command Prompt in the


Desktop tab and type:

Test network connectivity:

Ping the router or another PC using:


ping 192.168.1.11

You might also like