Administrators guru Posted August 7 Administrators Posted August 7 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: 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 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 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 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
Recommended Posts