Solved

Windows XPdoes not keep its DHCP IP address if a DHCP server is not available

Posted on 2010-09-07
4
777 Views
Last Modified: 2012-05-10
Hi,

i have many client computer does not keep its DHCP IP address if a DHCP server is not available.

My client is Windows XP SP2/SP3 and my DHCP server is WIndows 2008 SP1.

Thanks for your help
0
Comment
Question by:cawasaki
4 Comments
 
LVL 5

Expert Comment

by:Bidonet
ID: 33618303
Normally, when the DHCP is not availble you won't get an IP address.  If the DHCP server becomes unavailable after the client got the IP address, it should work until the lease time expires.  Then, the client must contact the DHCP to renew the address, otherwise, no IP address.

0
 
LVL 14

Expert Comment

by:sentner
ID: 33618316
If you're saying it loses the address as soon as the DHCP serve becomes unavailable, it may be that your router is setting the DHCP leases to expire quickly.  

On your computer, check the lease expiration time.  

ipconfig /all

Note also though that if your computer is rebooted or disconnected and reconnected to the network, it will drop the lease anyways, and will not revert to the old DHCP supplied address, as it needs to get a new one.  
0
 
LVL 6

Accepted Solution

by:
Alan Gunn earned 500 total points
ID: 33618372
Additonally, if your machine has a live network cable connected but no DHCP server, the machine will assign itself a 169.254.*.* address.
From
http://www.computing.net/answers/networking/i-have-a-169254xx-ip-address-c/22962.html

" If your local IP address is returned as 169.254.y.z with a subnet mask of 255.255.0.0, the IP address was assigned by the Automatic Private IP Addressing (APIPA) feature of Windows XP Professional. This assignment means that TCP/IP is configured for automatic configuration, that no DHCP server was found, and that no alternative configuration is specified. This configuration has no default gateway for the interface. " 
This can be a problem because the machine will stop looking for a DHCP server and have to be re-started (Or, if the user has rights,  Ipconfig /release , Ipconfig /renew can be run at a command prompt).
0
 
LVL 39

Expert Comment

by:Krzysztof Pytko
ID: 33620313
Yup, sentner is right. DHCP client need to renew its DHCP lease, so contact with DHCP server is required. If it is not available then no IP address is issued. Then you see 169.254.x.y/16, it is called APIPA (Automatic Private IP Addressing) If you see this IP address you know that client could not locate or connect to DHCP server.

In your case you should:

- check how long time have your leases in DHCP scope's properites you can check it and adjust

- investigate why your DHCP server is so often offline.

You can read in this article how the renwal proces looks like

http://technet.microsoft.com/en-us/library/cc958919.aspx

and here overview of whole lease renew
http://technet.microsoft.com/en-us/library/cc958935.aspx
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

863 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

20 Experts available now in Live!

Get 1:1 Help Now