Wednesday, March 17, 2010

What is the process of assigning IP address by DHCP service

There are four stages in assigning IP address to a host by DHCP server.
1) DHCP discover
2) DHCP offer
3) DHCP request
4) DHCP Acknowledge

DHCP Discover:
When ever client has to obtain an IP address from a DHCP server it will broadcast
a message called “DHCP discover” , which contains destination address 255.255.255.255
and source IP address as 0.0.0.0 and its MAC address.

DHCP offer:
The DHCP server on the network will respond to DHCP discover by sending a
DHCP offer message to the client requesting an IP address.

DHCP request:
The client after receiving offer message will send a “DHCP request” message
asking the DHCP server to confirm the IP address it has offered to it through DHCP offer
message.

DHCP Acknowledge:
DHCP server will respond to the “DHCP request” message by sending
acknowledge message through which it confirms the IP address to other machine.

No comments:

Post a Comment