Solved

How A DHCP Request Works Across Networks

Posted on 2013-05-29
5
614 Views
Last Modified: 2013-05-30
I was asked a technical question by a friend something that should be basic but is much more involved: How does a DHCP request work? How does a device obtain an IP address? How does this work across multiple networks, throughout multiple routers? For example, the client requesting an IP address is in California, and the DHCP server is in New York - what is the process involved?

Thank you in advance.
0
Comment
Question by:fireguy1125
5 Comments
 
LVL 16

Accepted Solution

by:
Brian Pringle earned 250 total points
Comment Utility
First of all, DHCP works by using a network "broadcast" message, so it will not work outside of your network unless the routers have been previously configured at both location to allow broadcast traffic to be forwarded outside of the network.  This is not normal, as there is typically a DHCP server at each location.

Your computer senses that it is connected to the network and knows that it does not have an IP address.  It sends a broadcast packet to 255.255.255.255 with a return IP address of 0.0.0.0.  The packet basically says "I am here and this is my MAC address".

The DHCP server sees the packet and replies to it, querying that the computer that just sent the packet really needs an IP address.  The computer replies that it does, so the DHCP server sends out a packet stating that "the computer with this MAC address... use this IP address".

Check out the following article for more information.
http://www.thegeekstuff.com/2013/03/dhcp-basics/
0
 
LVL 4

Expert Comment

by:iammorrison
Comment Utility
A client (PC, printer etc) broadcasts a DHCP request across the subnet (192.168.1.x for example), looking for a device or server that hosts a DHCP server role for that network. The device hosting the DHCP server role acknowledges the request and completes it, earmarking an available address from a designated pool and assigning it to the client. Is the client sure that the DHCP server is across the country? It is most likely that the two locations are on two different private networks, and there is commonly a device on the local network (like a gateway/router) that can act as a DHCP server. It is possible to use DHCP across a VPN between the offices, but it is usually much more simple and reliable (given the distance) to have a local device handle DHCP
0
 
LVL 10

Assisted Solution

by:Senthil Kumar
Senthil Kumar earned 250 total points
Comment Utility
DHCP relay Agent do this

http://technet.microsoft.com/en-us/library/cc771390.aspx
 
Also go through the below link to understand it better

http://technet.microsoft.com/en-us/library/cc940466.aspx
0
 
LVL 3

Expert Comment

by:hanu_it
Comment Utility
The below link will give clear understanding of DHCP process.

http://knowurtech.netfirms.com/networking/how_dhcp_works.html
0
 
LVL 1

Author Closing Comment

by:fireguy1125
Comment Utility
Thank you all for your help. I felt btpringle and senthil1 links provided in detail what I was looking for.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now