HackGh Community Forum

Log in

I forgot my password



Who Is Online?
Guests : 0
Hidden : 0
Registered : 0
Users Online :
Refresh View the whole list



Free counters!
Staff Online
Staff Online
Members1895
Most Online179
Newest Member

You are not connected. Please login or register

 » Computer Tricks And Technology Tips » Technology News And Tips » 

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

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

1 [TUTORIAL] What is DHCP and How Does it Work ? on Tue Aug 09, 2016 10:46 am

WhIPL4$h

avatar
Manager
Manager


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 user profile

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