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: In a terminal windowshell enter the following command: sudo ipconfig set en noneWhere enin 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 Captureoptions. This command will deconfigure network interface en Start up Wireshark, capturing packets on the interface you deconfigured in Step In the terminal windowshell enter the following command: sudo ipconfig set en dhcpThis will cause the DHCP protocol to request and receive an IP address and other information from the DHCP server. After waiting for a few seconds, stop Wireshark capture. On a Linux machine: In a terminal windowshell enter the following commands: sudo ip addr flush en sudo dhclient r where enin 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. Start up Wireshark, capturing packets in the interface you deconfigured in Step In the terminal windowshell enter the following command:sudo dhclient enwhere, as with above, en 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. After waiting for a few seconds, stop Wireshark capture. On a PC: In a commandline window enter the following command: ipconfig releaseThis command will cause your PC to give up its IP address Start up Wireshark In the commandline 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. After waiting for a few seconds, stop Wireshark capture. NOTE: Filter by DHCP if needed Answer the following questions below: DISCOVER point each Is the DHCP Discover message sent out using UDP or TCP as the underlying transport protocol? What is the source IP address used in the IP datagram containing the Discover message? Is there anything special about this address? Explain What is the destination IP address used in the datagram containing the Discover message. Is there anything special about this address? Explain. OFFER How do you know that this Offer message is being sent in response to the DHCP Discover message you studied above? 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 REQUEST What is the destination IP address used in the datagram containing this Request message. Is there anything special about this address? Explain 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 For how long a time the socalled lease time has the DHPC server assigned this IP address to the client? What is the IP address returned by the DHCP server to the DHCP client in this DHCP ACK message of the firsthop router on the default path from the client to the rest of the Internet?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
