EXPERIMENT 5: DHCP
EQUIPMENTS
Wireshark
INTRODUCTION
Dynamic Host Configuration Protocol (DHCP) is a client/server protocol
that automatically provides an Internet Protocol (IP) host with its IP address
and other related configuration information such as the subnet mask and
default gateway. A DHCP server enables computers to request IP addresses
and networking parameters automatically from the Internet service
provider (ISP), reducing the need for a network administrator or a user to
manually assign IP addresses to all network devices. In the absence of a
DHCP server, a computer or other device on the network needs to be
manually assigned an IP address, or to assign itself an APIPA address, which
will not enable it to communicate outside its local subnet. DHCP can be
implemented on networks ranging in size from home networks to
large campus networks and regional Internet service
provider networks. A router or a residential gateway can be enabled to act as
a DHCP server. Most residential network routers receive a globally unique IP
address within the ISP network. Within a local network, a DHCP server
assigns a local IP address to each device connected to the network.
PROCEDURE
1. On the Command prompt “ipconfig /release” was entered.
2. Packet capture was started
3. On the Windows Command Prompt “ipconfig /renew” was entered
4. Then the same command “ipconfig /renew” was entered again.
5. Then “ipconfig/release” was entered
6. At the end “ipconfig /renew” was entered.
7. Packet capture was stopped.
Answer the following questions:
It was 192.168.1.1
9. Explain the purpose of the router and subnet mask lines in the DHCP
offer message.
The router line indicates the client about the default gateway to use.
The subnet line indicate the subnet mask.
10.In the DHCP trace file noted in footnote 2, the DHCP server offers a
specific IP address to the client (see also question 8. above). In the
client’s response to the
first server OFFER message, does the client accept this IP address?
Where in the client’s RESPONSE is the client’s requested address?
The client accepts the IP address given in the offer message. And then
requests that IP address 192.168.1.110 in the DHCP request message .
11.Explain the purpose of the lease time. How long is the lease time in
your experiment?
A device is assigned an IP address for a length of time called its DHCP
lease time. When its DHCP lease expires, it must renew the lease and
potentially receive a new IP address.
13.Clear the bootp filter from your Wireshark window. Were any ARP
packets sent or received during the DHCP packet-exchange period? If
so, explain the purpose of those ARP packets.
Yes, there were ARG messages . Before offering an IP address to a client, the
DHCP server issues an ARP request for the offered IP to make sure the IP
address is not already in use by another workstation.
CONCLUSION
In this experiment we got familiar with the DHCP protocol . We understood
its purpose. We were able to implement it on Wireshark and understand it’s
working.