HackGh Community Forum
Tutorial - [TUTORIAL] What is DHCP and How Does it Work ? Empty


Free counters!
Staff Online
Staff Online
Members2390
Most Online179
Newest Member
https://hackgh.forumotion.com/u2487


You are not connected. Please login or register

[TUTORIAL] What is DHCP and How Does it Work ?

View previous topic View next topic Go down  Message [Page 1 of 1]

WhIPL4$h

WhIPL4$h
Manager
Manager
Tutorial - [TUTORIAL] What is DHCP and How Does it Work ? Networking-foundations-dynamic-host-configuration-protocol

DHCP assigns an IP address when a system is started or a new device is added to the network, for example:

1. A user turns on a computer which has a DHCP client.

2. The client computer sends a broadcast request ( called a DISCOVER) to every device in the network, looking for a DHCP server to answer.

3. The router directs the broadcast request or DISCOVER packet to the correct DHCP server.

4. The server with DHCP server software receives the DISCOVER packet. Depending on availability and usage policies fixed on the server, the server determines an appropriate address to give to the client. The server then reserves that address for the client temporarily and sends back to the client computer, an OFFER (or DHCPOFFER) packet, containing that address information. The server also configures the client’s WINS servers, DNS servers, NTP servers, and sometimes other services as well.

5. The client then sends a REQUEST (called DHCPREQUEST) packet, conforming the server that it intends to use the address.

6. The server then sends an ACK (or DHCPACK) packet, confirming that the respective client computer has a been given a lease on the address for a specific period of time defined by the server.

If a computer uses a static IP address, that means it was manually configured to use that specific IP address. The main problem of manual assigning of the IP’s is that it is prone to user error which may lead to configuring of two computers with the same IP address. It creates a conflict that results in loss of service. Using DHCP reduces the work as it dynamically assigns IP addresses and also reduces the chances of conflicts.

-CodingSec

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum