Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

DHCP IP

Hi all ,

I want to know the whole process of how computer gets IP address from DHCP server when its in Different VLAN.

4 REPLIES
Cisco Employee

Re: DHCP IP

Hi Nilesh,

The client send a broadcast for bootp and the broadcast will only reach till the layer 3 interface where multiple helper address is configured bur after that it will be a unicast to multiple DHCP addresses whatever is configured in ip helper command and and then the DHCP request will be sent to each and every DHCP server what is configured in helper address command and all the servers will reply and it depends on client which one to take.

What exactly happens is mostly DHCP server are centrally located in one vlan and clients may exist in multiple vlan. The broadcast for DHCP will not cross the layer 3 boundary so "ip helper-address " is configured in respective vlan layer 3 interfaces. Once the broadcast for bootp hits the layer 3 interface is converted as a unicast request and sent to the DHCP server configured in ip helper command and then the DHCP server send a DHCP offer packet which is then again forwarded back to the client.

Then client again sends the DHCP request and gets an acknoledgement.

HTH

Ankur

*Pls rate all helpfull post

Re: DHCP IP

Here's a good and thorough explanation by Scott Morris on this subject;

http://tcpmag.com/qanda/article.asp?EditorialsID=285

I just noticed that Ankur has responded to your query before I did. I would just point out one thing in his posting, there's a perception that the ip helper address would always use a unicast DHCP server address but it doesn't have to be that way. The helper address can be configured to point to a whole subnet, a directed broadcast rather than a unicast, and this can be useful when the unicast IP of the server is not known or when multiple servers exist in a remote subnet.

HTH

Sundar

Cisco Employee

Re: DHCP IP

Hey Sundar,

True, I just posted an example of mostly deployed scenario.

Anyways time for deep sleep now. Gud Night!!

Regards,

Ankur

Re: DHCP IP

i would say you should read the Header of DHCP protocol and whole the cycle of DHCP process then you will come to know how DHCP works... i did the same thing...

if you understand the GID field of the DHCP header then its easy to find out your answer by your own.

regards

Devang

208
Views
10
Helpful
4
Replies
CreatePlease login to create content