About DHCP

Here is a short description of how DHCP works.

DHCP stands for dynamic host configuration protocol. It's a protocol that lets network admin to automate the assignment of IP addresses in network. Each machine connecting to internet using TCP/IP needs unique IP address. Without DHCP, the ip address must to be entered manually at each machine and if that machine moves to other subnet, a new ip adress must be entered. When DHCP is used, new ip address is assigned automaticaly when computer connects to network.
How it works :

  • When DHCP client needs an ip address, it broadcasts DHCP Discover packet i.e. a requests for configuration information.
  • In response to this message all servers on that subnet unicast a DHCP Offer packet to that client.
  • Client selects one of these servers and broadcasts a DHCP Request packet which contains host name of selected DHCP server and its ip address.DHCP Request packet also contains mac address of client machine.Other servers treat this as rejection.
  • Server then respnds with DHCP Ack packet.This packet contains ip address for client, lease time and other configuration info which is requested by client.
  • When client wants to disconnect it sends DHCP Release packet.Server then marks that ip address as unused.
  • When half the lease time is over, client broadcasts anothoer DHCP Request packet containing current ip address and server address in configuration.
  • Client can remember last used ip address in non volatile memory.Next time when it boots it can request for same ip address.This way client may have same ip address over long period of time.
DHCP server can be configured to assign a fixed ip address to a particular client based on his mac address.Other addresses are assigned from a pool of ip addresses. By default, all client requests are on UDP port 68. The server replies on UDP port 67.

Replies

  • durga ch
    durga ch
    "Client can remember last used ip address in non volatile memory.Next time when it boots it can request for same ip address.This way client may have same ip address over long period of time."

    tend to happen only when the requested IP is available with the server.

    Good information KG
  • komputergeek
    komputergeek
    durga
    tend to happen only when the requested IP is available with the server.
    Yes very true.
  • Sachin Jain
    Sachin Jain
    Nice Information KG.......Thanks..
  • synergynext
    synergynext
    great! thanks for the info 😀

You are reading an archived discussion.

Related Posts

An International Conference on Control, Communication and Power Engineering is going to be conducted during Nov 07-08, 2011, in Pune, India. The event is organized by Association of Computer Electronics...
Electricity Board supplies electricity, here as 220V and 11kV. The later is again decreased to 220V and then used. My question is what is the need for 11kV supply. I...
hey friends, suggest me where to start from as i am just a beginer in this subject...How to proceed n which websites to follow to take some help??
hello.. I need to know the formulas that can be used to design a drum brake . Something that incorporates the deceleration req, friction of friction lining, pedal force and...
Hello CE'ians.. I am NIYAZ.. fresh to the CE community. I have completed my b.tech information technology. Now am searching for the job, temporarily stayed in chennai. I came from...