Jump to content

What is DHCP?


rev.dennis
 Share

Recommended Posts

Dynamic Host Configuration Protocol (DHCP) is a network protocol that enables a server to automatically assign an IP address to a computer from a defined range of numbers (i.e., a scope) configured for a given network.


 


DHCP assigns an IP address when a system is started, for example:


  1. A user turns on a computer with a DHCP client. The client computer sends a broadcast request (called a DISCOVER or DHCPDISCOVER), looking for a DHCP server to answer. The router directs the DISCOVER packet to the correct DHCP server.

    UDP Src=0.0.0.0 sPort=68

    Dest=255.255.255.255 dPort=67

     
  2. The server receives the DISCOVER packet. Based on availability and usage policies set on the server, the server determines an appropriate address (if any) to give to the client. The server then temporarily reserves that address for the client and sends back to the client an OFFER (or DHCPOFFER) packet, with that address information. The server also configures the client's DNS servers, WINS servers, NTP servers, and sometimes other services as well.

    UDP Src=192.168.1.1 sPort=67

    Dest=255.255.255.255 dPort=68

     

  3. The client sends a REQUEST (or DHCPREQUEST) packet, letting the server know that it intends to use the address.

    UDP Src=0.0.0.0 sPort=68

    Dest=255.255.255.255 dPort=67

     

  4. The server sends an ACK (or DHCPACK) packet, confirming that the client has a been given a lease on the address for a server-specified period of time.

    UDP Src=192.168.1.1 sPort=67

    Dest=255.255.255.255 dPort=68

     

gallery_2_63_7838.jpg

gallery_2_63_34691.png

Link to comment
Share on other sites

 Share

×
×
  • Create New...