PC Review


Reply
Thread Tools Rate Thread

How does DHCP work?

 
 
sampo_rasanen@hotmail.com
Guest
Posts: n/a
 
      7th Mar 2007
How does the computer choose the IP-address if there is multiple DHCP-
servers on the network? Is it best lease-time or what?

 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGF1bA==?=
Guest
Posts: n/a
 
      7th Mar 2007
> How does the computer choose the IP-address if there is multiple DHCP-
> servers on the network? Is it best lease-time or what?


When you connect your computer to the network the computer sends out a
question to all the other computers on the network asking for an IP number.
The DHCP server on the network sends a reply saying something like " Ok, i
can give you an IP address" and so then your computer sends a request to that
server that answered the question first, to be given an IP address.

So if there are more than one DHCP server running on the network then often
your computer will get an IP number from the server that answers the question
fastest.

Hope this answers your question.
 
Reply With Quote
 
Pop
Guest
Posts: n/a
 
      7th Mar 2007
Paul wrote:
>> How does the computer choose the IP-address if there is multiple DHCP-
>> servers on the network? Is it best lease-time or what?

>
> When you connect your computer to the network the computer sends out a
> question to all the other computers on the network asking for an IP number.
> The DHCP server on the network sends a reply saying something like " Ok, i
> can give you an IP address" and so then your computer sends a request to that
> server that answered the question first, to be given an IP address.
>
> So if there are more than one DHCP server running on the network then often
> your computer will get an IP number from the server that answers the question
> fastest.
>
> Hope this answers your question.



And... if you are using a router, it pretends to be a primitive DHCP server and does very well. Logging in to your
router allows you to configure settings.

pop
 
Reply With Quote
 
sampo_rasanen@hotmail.com
Guest
Posts: n/a
 
      7th Mar 2007
Is it always the "fastest" server who gives the IP?
I thought that the PC choose from the the addresses (for example by
the best lease time), and then tell the other servers that "I already
made the decision and I got an IP now".
Am I wrong?



> So if there are more than one DHCP server running on the network then often
> your computer will get an IP number from the server that answers the question
> fastest.
>
> Hope this answers your question.



 
Reply With Quote
 
John John
Guest
Posts: n/a
 
      7th Mar 2007
It's a bit of a mystery as to which lease the client accepts. Sometimes
it will accept less favorable lease even when better ones are available.

John

(E-Mail Removed) wrote:

> Is it always the "fastest" server who gives the IP?
> I thought that the PC choose from the the addresses (for example by
> the best lease time), and then tell the other servers that "I already
> made the decision and I got an IP now".
> Am I wrong?
>
>
>
>
>>So if there are more than one DHCP server running on the network then often
>>your computer will get an IP number from the server that answers the question
>>fastest.
>>
>>Hope this answers your question.

>
>
>


 
Reply With Quote
 
NoConsequence
Guest
Posts: n/a
 
      8th Mar 2007
On 7 Mar 2007 01:27:26 -0800, (E-Mail Removed) wrote:

>How does the computer choose the IP-address if there is multiple DHCP-
>servers on the network? Is it best lease-time or what?


Ask in a networking group. This really doesn't have anything to do
with WinXP.

 
Reply With Quote
 
John Wunderlich
Guest
Posts: n/a
 
      8th Mar 2007
(E-Mail Removed) wrote in
news:(E-Mail Removed):

>> So if there are more than one DHCP server running on the network
>> then often your computer will get an IP number from the server
>> that answers the question fastest.
>>
>> Hope this answers your question.


> Is it always the "fastest" server who gives the IP?
> I thought that the PC choose from the the addresses (for example
> by the best lease time), and then tell the other servers that "I
> already made the decision and I got an IP now".
> Am I wrong?


According to the Standard (RFC 2131):
3. The client receives one or more DHCPOFFER messages from one or more
servers. The client may choose to wait for multiple responses.
The client chooses one server from which to request configuration
parameters, based on the configuration parameters offered in the
DHCPOFFER messages. The client broadcasts a DHCPREQUEST message[..]

The key phrase is ... client *may* choose to wait...
The reality is usually that the first one offered is accepted.

<http://www.faqs.org/rfcs/rfc2131.html>

HTH,
John

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP DHCP does not work ebay.ntailoring@gmail.com Windows XP Networking 3 7th Jul 2008 06:23 PM
XP Won't Work With DHCP =?Utf-8?B?SG93YXJkIFMu?= Windows XP Networking 10 12th Mar 2007 06:19 AM
DHCP + NAT port forwarding = does NOT work ?? Wolfgang Hercker Microsoft Windows 2000 Networking 1 26th Sep 2006 04:32 PM
Xp pro ( on lap top ) does'n work with dhcp =?Utf-8?B?am9obklUQUxZ?= Windows XP Networking 3 22nd Aug 2006 12:33 AM
Logon Script will not work when xp uses DHCP Greg Windows XP General 0 18th May 2004 04:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:58 PM.