Understanding of DHCP using wireshark and packet tracer Solved

$24.99 $18.99

Dynamic Host Configuration Protocol (DHCP) is a network management protocol used to automate the process of configuring devices on IP networks, thus allowing them to use network services such as DNS, NTP, and any communica-tion protocol based on UDP or TCP. DHCP is an enhancement of an older protocol called BOOTP. Experiment Begin by opening…

5/5 – (2 votes)

You’ll get a: zip file solution

 

Categorys:

Description

5/5 – (2 votes)

Dynamic Host Configuration Protocol (DHCP) is a network management protocol used to automate the process of configuring devices on IP networks, thus allowing them to use network services such as DNS, NTP, and any communica-tion protocol based on UDP or TCP. DHCP is an enhancement of an older protocol called BOOTP.

  • Experiment

    1. Begin by opening the Windows Command Prompt application (which can be found in your Accessories folder). Enter “ipconfig /release”. The executable for ipconfig is in C/windows/system32. This command releases your current IP address, so that your host’s IP address becomes 0.0.0.0.

    1. Start up the Wireshark packet sniffer, as described in the introductory Wireshark lab and begin Wireshark packet capture.

    1. Now go back to the Windows Command Prompt and enter “ipconfig /renew”. This instructs your host to obtain a network configuration, including a new IP address.

    1. Wait until the “ipconfig /renew” has terminated. Then enter the same command “ipconfig /renew” again.

    1. When the second “ipconfig /renew” terminates, enter the command “ipconfig/release” to release the previously-allocated IP address to your computer.

    1. Finally, enter “ipconfig /renew” to again be allocated an IP address for your computer.

    1. Stop Wireshark packet capture.

You should hand in a screen shot of the Command Prompt window. Whenever possible, when answering a question below, you should hand in a printout of the packet(s) within the trace that you used to answer the question asked. Annotate the printout to explain your answer. To print a packet, use File-¿Print, choose Selected packet only, choose Packet summary line, and select the minimum amount of packet detail that you need to answer the question.

  • Questions

    1. Are DHCP messages sent over UDP or TCP?

    1. Draw a timing datagram illustrating the sequence of the first four-packet Discover/Offer/Request/ACK DHCP ex-change between the client and server. For each packet, indicated the source and destination port numbers. Are the port numbers the same as in the example given in this lab assignment?

    1. What is the link-layer (e.g., Ethernet) address of your host?

What values in the DHCP discover message differentiate this message from the DHCP request message?

  1. What is the value of the Transaction-ID in each of the first four (Discover/Offer/Request/ACK) DHCP messages? What are the values of the Transaction-ID in the second set (Request/ACK) set of DHCP messages? What is the purpose of the Transaction-ID field?

  1. A host uses DHCP to obtain an IP address, among other things. But a host’s IP address is not confirmed until the end of the four-message exchange! If the IP address is not set until the end of the four-message exchange, then what values are used in the IP datagrams in the four-message exchange? For each of the four DHCP mes-sages (Discover/Offer/Request/ACK DHCP), indicate the source and destination IP addresses that are carried in the encapsulating IP datagram.

  1. What is the IP address of your DHCP server?

  1. 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.

  1. In the example screenshot in this assignment, there is no relay agent between the host and the DHCP server. What values in the trace indicate the absence of a relay agent? Is there a relay agent in your experiment? If so what is the IP address of the agent?

  1. Explain the purpose of the router and subnet mask lines in the DHCP offer message.

  1. In the example screenshots in this assignment, the host requests the offered IP address in the DHCP Request message. What happens in your own experiment?

  1. Explain the purpose of the lease time. How long is the lease time in your experiment?

  1. What is the purpose of the DHCP release message? Does the DHCP server issue an acknowledgment of receipt of the client’s DHCP request? What would happen if the client’s DHCP release message is lost?

  1. 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.

Experiment2: Implementing DHCP server in a router

    1. Implement following topology in packet tracer

Figure 1: Caption

  1. Set ip address of router as 192.168.1.1/24.

  1. Turn on port of router

  1. Run following code in router configuration

Figure 2: Caption

  1. Also add following commands in router configuration Router(config)ip dhcp excluded-address 192.168.1.1 192.168.1.10

  1. configure all PCs as following:

    1. Click PC1->Desktop->IP configuration. Then enable DHCP

  1. Check which ip addresses are assigned to pc by DHCP server

3

Understanding of DHCP using wireshark and packet tracer Solved
$24.99 $18.99