Question: On a Mac: 1 . In a terminal window / shell enter the following command: % sudo ipconfig set en 0 noneWhere en 0 (

On a Mac:1. In a terminal window/shell enter the following command:% sudo ipconfig set en0 noneWhere en0(in this example) is the interface on which you want to capture packets using Wireshark. You can easily find the list of interface names in Wireshark by choosing Capture->options. This command will de-configure network interface en0.2. Start up Wireshark, capturing packets on the interface you de-configured in Step 1.3. In the terminal window/shell enter the following command:% sudo ipconfig set en0 dhcpThis will cause the DHCP protocol to request and receive an IP address and other information from the DHCP server. 4. After waiting for a few seconds, stop Wireshark capture. On a Linux machine:1. In a terminal window/shell, enter the following commands: sudo ip addr flush en0 sudo dhclient -r where en0(in this example) is the interface on which you want to capture packets using Wireshark. You can easily find the list of interface names in Wireshark by choosing Capture -> Options. This command will remove the existing IP address of the interface, and release any existing DHCP address leases. 2. Start up Wireshark, capturing packets in the interface you de-configured in Step 1.3. In the terminal window/shell, enter the following command:sudo dhclient en0where, as with above, en0 is the interface on which you are currently capturing packets. This will cause the DHCP protocol to request and receive an IP address and other information from the DHCP server. 4. After waiting for a few seconds, stop Wireshark capture. On a PC:1. In a command-line window enter the following command:> ipconfig /releaseThis command will cause your PC to give up its IP address.2. Start up Wireshark.3. In the command-line window enter the following command:> ipconfig /renewThis will cause the DHCP protocol to request and receive an IP address and other information from a DHCP server. 4. After waiting for a few seconds, stop Wireshark capture. NOTE: Filter by DHCP if needed Answer the following questions below: DISCOVER (1 point each)1. Is the DHCP Discover message sent out using UDP or TCP as the underlying transport protocol?2. What is the source IP address used in the IP datagram containing the Discover message? Is there anything special about this address? Explain.3. What is the destination IP address used in the datagram containing the Discover message. Is there anything special about this address? Explain. OFFER 4. How do you know that this Offer message is being sent in response to the DHCP Discover message you studied above?5.[2 points] What is the destination IP address used in the datagram containing the Offer message? Is there anything special about this address? Explain. [Hint: Look at your trace carefully. The answer to this question may differ from what we discussed in class. To answer consult DHCP RFC, page 24.] REQUEST 6. What is the destination IP address used in the datagram containing this Request message. Is there anything special about this address? Explain.7. What is the value in the transaction ID field of this DHCP Request message? Does it match the transaction IDs of the earlier Discover and Offer messages? ACK 8. For how long a time (the so-called lease time) has the DHPC server assigned this IP address to the client?9. What is the IP address (returned by the DHCP server to the DHCP client in this DHCP ACK message) of the first-hop router on the default path from the client to the rest of the Internet?
On a Mac: 1 . In a terminal window / shell enter

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!