Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Experiment 1 on DHCP In order to observe DHCP in action, you will perform the following six steps and capture the DHCP messages exchanged as
Experiment on DHCP
In order to observe DHCP in action, you will perform the following six steps and
capture the DHCP messages exchanged as a result of executing these steps.
Below is the stepbystep procedure to down a wireless interface, start collecting packets using
Wireshark, bring up the interface, stop capturing packets, and analyze DHCP IP address
assignment using Wireshark commands:
StepbyStep Procedure:
Disable Wireless Interface:
Open a terminal on your Unix machine.
Disable the wireless interface using the following command:
sudo ifconfig down
Replace with the name of your wireless
interface eg wlan
Start Wireshark Capture:
Open Wireshark on your Unix machine.
Start capturing packets on the disabled wireless interface:
Go to Capture Options.
Select the interface corresponding to the wireless interface.
Configure capture filters to capture DHCP packets only if desired.
Start the capture.
Enable Wireless Interface:
After starting the capture, reenable the wireless interface using the following command:
sudo ifconfig up
Replace with the name of your wireless interface.
Continue Capturing Packets:
Let Wireshark continue capturing packets for a desired duration, during which DHCP
packets will be captured as well.
Stop Wireshark Capture:
After capturing packets for the desired duration, stop the Wireshark capture:
Go to Capture Stop.
Save Captured Packets:
Save the captured packets to a file for analysis:
Go to File Save As
Choose a location and filename as to save the
capture file.
Answer the following questions from the captured packet trace:
Are DHCP messages sent over UDP or TCP
Draw a timing datagram illustrating the sequence of the first fourpacket
DiscoverOfferRequestACK DHCP exchange between the client and server. For each packet,
indicate the source and destination port numbers.
What is the linklayer eg Ethernet address of your host?
What values in the DHCP discover message differentiate this message from the DHCP
request message?
What is the value of the TransactionID in each of the first four DiscoverOfferRequestACK
DHCP messages? What are the values of the TransactionID in the second set RequestACK
set of DHCP messages? What is the purpose of the TransactionID field?
For each of the four DHCP messages DiscoverOfferRequestACK DHCP indicate the
source and destination IP addresses that are carried in the encapsulating IP datagram.
What is the IP address of your DHCP server?
What IP address is the DHCP server offering to your host in the DHCP Offer message?
Indicate which DHCP message contains the offered DHCP address.
Explain the purpose of the lease time. How long is the lease time in your experiment?
Were any ARP packets sent or received during the DHCP packetexchange period? If so
explain the purpose of those ARP packets.Experiment on DHCP
In order to observe DHCP in action, you will perform the following six steps and
capture the DHCP messages exchanged as a result of executing these steps.
Below is the stepbystep procedure to down a wireless interface, start collecting packets using
Wireshark, bring up the interface, stop capturing packets, and analyze DHCP IP address
assignment using Wireshark commands:
StepbyStep Procedure:
Disable Wireless Interface:
Open a terminal on your Unix machine.
Disable the wireless interface using the following command:
sudo ifconfig down
Replace with the name of your wireless
interface eg wlan
Start Wireshark Capture:
Open Wireshark on your Unix machine.
Start capturing packets on the disabled wireless interface:
Go to Capture Options.
Select the interface corresponding to the wireless interface.
Configure capture filters to capture DHCP packets only if desired.
Start the capture.
Enable Wireless Interface:
After starting the capture, reenable the wireless interface using the following command:
sudo ifconfig up
Replace with the name of your wireless interface.
Continue Capturing Packets:
Let Wireshark continue capturing packets for a desired duration, during which DHCP
packets will be captured as well.
Stop Wireshark Capture:
After capturing packets for the desired duration, stop the Wireshark capture:
Go to Capture Stop.
Save Captured Packets:
Save the captured packets to a file for analysis:
Go to File Save As
Choose a location and filename as to save the
capture file.
Answer the following questions from the captured packet trace:
Are DHCP messages sent over UDP or TCP
Draw a timing datagram illustrating the sequence of the first fourpacket
DiscoverOfferRequestACK DHCP exchange between the cl
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started