Tell me about the issue and I’ll help you find the solution you need.
A computer loses its DHCP IP address if a DHCP server is not available in Windows 7 or Windows Vista
Content provided by Microsoft
Windows Vista Business
Windows Vista Enterprise
Windows Vista Ultimate
Windows 7 Enterprise
Windows 7 Professional
Windows 7 Ultimate
Windows Server 2008 Enterprise
Windows Server 2008 Foundation
Windows Server 2008 R2 Enterprise
Windows Server 2008 R2 Foundation
Windows Server 2008 R2 Standard
Windows Server 2008 Standard
Support for Windows Vista Service Pack 1 (SP1) ended on July 12, 2011. To continue receiving security updates for Windows Vista, make sure you're running Windows Vista with Service Pack 2 (SP2). For more information, refer to this Microsoft website: Support is ending for some versions of Windows.
Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
Consider the following scenario:
You have a Dynamic Host Configuration Protocol (DHCP) client computer that is running on Windows Vista or a later operating system.
The DHCP Server service is not available.
The client computer is restarted.
In this scenario, the client does not maintain a valid lease. Therefore, you cannot access some network resources.
In this scenario, the computer loses the IP address that was assigned to it by the DHCP server. This occurs even if the default gateway is available. Instead, an Automatic Private IP Addressing (APIPA) address, such as 169.254.0.1, is assigned to the client computer. Or, if the adapter was assigned an IP address by using the Alternative Configuration tab for the adapter, the adapter will use that address.
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.
To resolve this issue, add a registry value to force the client to keep its DHCP IP address, even if a DHCP server is not available. To add this value, follow these steps:
Start Registry Editor. To do this, click Start, type regedit in the Start Search box, and then press Enter.
To activate the setting for all adapters, locate the following registry subkey:
On the Edit menu, point to New, and then click DWORD Value.
Type DontPingGateway, and then press Enter.
On the Edit menu, click Modify.
In the Value data box, type 1, and then click OK.
Exit Registry Editor.
Restart the computer.
This procedure forces the client to keep its DHCP IP address even if a DHCP server is not available. If you use the Alternate Configuration tab to modify the IP address for an adapter, this IP address is assigned to the adapter.
Note In Windows 7, the new registry value is not obeyed if you try to set it for a specific adapter in the following subkey: