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

CS222 Lab 05

This lab explores DHCP and DNS servers in a wired network using Packet Tracer. Students will configure three PCs and a server with a DHCP server to dynamically assign IP addresses. They will also configure a DNS server to resolve domain names to IP addresses and verify DNS packets can be sent in the network.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

CS222 Lab 05

This lab explores DHCP and DNS servers in a wired network using Packet Tracer. Students will configure three PCs and a server with a DHCP server to dynamically assign IP addresses. They will also configure a DNS server to resolve domain names to IP addresses and verify DNS packets can be sent in the network.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Usman Institute of Technology

Department of Computer Science


Course Code: CS222
Course Title: Data Communication & Computer Networks
Fall 2023

Lab 05
Objective:
Exploring the efficacy of DHCP and DNS server in a wired network using packet tracer.

Student Information

Student Name

Student ID

Date

Assessment

Marks Obtained

Remarks

Signature
Lab 05: DHCP & DNS

Usman Institute of Technology


Department of Computer Science
CS222 – Data Communication & Computer Networks

Lab 05
Instructions

• Come to the lab in time. Students who are late more than 20 minutes, will not be allowed to attend the lab.
• Students have to perform the examples and exercises by themselves.
• Lab work must be submitted on the same day it is performed.

1. Objective
Exploring the efficacy of DHCP and DNS server in a wired network using packet tracer.

2. Labs Descriptions
i. DHCP
It stands for dynamic host configuration protocol, it is a network management protocol used
mainly to distribute IP address to all connected devices in a network. when ever a system is
turned on in a network it sends a request to server this request is called DHCP DISCOVER,
on receiving the request it supplies the client with a IP address from its pool this offer is
called DHCP OFFER, on receiving the offer the client responds with the packet called DHCP
REQUEST to eventually get the IP.

a) Select 3 PCs and a server from “End Devices” your work area will look like this.

Figure 1: selecting devices and placing them on the work plane.

b) Choose “Connection Type” to connect these devices with HUB.


c) Now click on all three PCs

Page 2 of 7
Lab 05: DHCP & DNS

d) Go to “DESKTOP”
e) Then “IP CONFIGURATION”
f) Here select option “DHCP” instead of assigning IP Address Statically
g) Now click the Server

Figure 2: Connecting the server and systems together via HUB.

h) The screen you will see will look some thing like this:

Figure 3: Depicting DHCP Server settings

i) Above diagram shows the screen which you will see on clicking “SERVER” Machine.

j) Here go to Fast Ethernet placed just under Interface marked with red.

Page 3 of 7
Lab 05: DHCP & DNS

k) After clicking “Fast Ethernet” you will see following window. Here assign IP ADDRESS to this
SERVER.

Figure 4: Setting IP Address

L) Now click “DHCP” to make this server a DHCP server.

Figure 5: Selecting DHCP as Server

m) DHCP is “Dynamic Host Configuration Protocol” a DHCP server is responsible for Assigning IP
Addresses to the devices present in the Network from its pool. This Concept can be seen in the
image shown below.

Page 4 of 7
Lab 05: DHCP & DNS

Figure 6: Turning DHCP Server ‘on’

n) now each device will take IP from DHCP

ii. DNS
DNS is” Domain Name Services” server the main purpose of this server is to resolve domain
name against its allocated IP address. Humans can recognize a name that’s why we give
names to web sites or locations in networks but actual destination is located through IP
address which is a sequence of numbers and is very difficult for an individual to remember.

example: It is easy to remember www.yahoo.com then 87.248.113.14

Figure 6: Turning DNS ‘on’ and defining name translation.

Page 5 of 7
Lab 05: DHCP & DNS

GO TO “FAST ETHERNET” of DNS and assign this server IP address 192.168.1.8

Figure 7: Setting IP Address

Figure 8: Network Topology now consist of DHCP and DNS both.

a) Mention this IP Address of DNS at DHCP server as well. Look at the previous screen shot where
we have discussed DHCP server there the slot of DNS server is empty, because we have no DNS
server in our network but once you will introduce a DNS server you will have to give its Address
at DHCP server.

b) Now after creating DNS server the DNS Packets should also travel successfully

Page 6 of 7
Lab 05: DHCP & DNS

Lab tasks
Create the following network with DHCP server. Send DNS packets in your network

Page 7 of 7

You might also like