Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Windows Vista can’t get an IP address from certain routers or DHCP servers


View products that this article applies to.

Certain routers or DHCP servers are incompatible with Windows Vista. This article helps you resolve the issue. If you are not sure if your router is compatible, you can still try the fix.

↑ Back to the top


Fix it automatically

Click "Fix this problem" to automatically fix this issue. Click Run in the File Download dialog box, and then follow the steps in the Fix it wizard.


Notes
  • This wizard may be only in English. However, the automatic fix also works for other language versions of Windows.
  • If you are not on the computer that has the problem, save the Fix it solution to a flash drive or a CD, and then run it on the computer that has the problem.

↑ Back to the top


Fix it manually – Disable the BROADCAST flag
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore 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
To resolve this issue yourself, disable the DHCP BROADCAST flag in Windows Vista. To do this, follow these steps:
  1. Click StartStart button , type regedit in the Start Search box, and then click regedit in the Programs list.

     User Account Control permission  If you are prompted for an administrator password or for confirmation, type the password or provide confirmation.
  2. Locate the following register node:
    HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > WindowsNT > CurrentVersion > NetworkCards > <number>
  3. Look at each number that is listed under the NetworkCards node in order to find the network adapter GUID. On the right side, the Description item lists the network adapter and the ServiceName item lists the corresponding GUID. Remember this GUID.
  4. Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{<Network Adapter GUID>}
    In this registry path, click the <Network Adapter GUID> subkey that corresponds to the network adapter that is connected to the network.
    Note Network Adapter GUID  is a placeholder for the network adapter GUID in this article. To find the corresponding GUID, refer to step 2 and step 3.
  5. On the Edit menu, point to New, and then click DWORD (32-bit) Value.
  6. In the New Value #1 box, type DhcpConnEnableBcastFlagToggle, and then press ENTER.
  7. Right-click DhcpConnEnableBcastFlagToggle, and then click Modify.
  8. In the Value data box, type 1, and then click OK.
  9. Close Registry Editor.
When you set this registry key to 1, Windows Vista first tries to obtain an IP address by using the BROADCAST flag in DHCP Discover packets. If that fails, Windows Vista tries to obtain an IP address without using the BROADCAST flag in DHCP Discover packets.

↑ Back to the top


Cause

By default, the BROADCAST flag in DHCP discovery packets is enabled in Windows Vista (DhcpConnEnableBcastFlagToggle = 1). Therefore, Windows Vista gets an IP address by using the BROADCAST flag in DHCP discovery packets. If a router or DHCP server can’t process the DHCP discovery packets, Windows Vista will fail to get an IP address. The fix disables the BROADCAST flag by setting DhcpConnEnableBcastFlagToggle to 0.

By default, this problem does not exist in Windows XP Service Pack 2, Windows XP Service Pack 3 or Windows 7 because the BROADCAST flag is disabled (DhcpConnEnableBcastFlagToggle = 0).

↑ Back to the top


More Information

If you know the router or the non-Microsoft DHCP server does not support the DHCP BROADCAST flag, you can configure the following values for the following registry entry instead of using the DhcpConnEnableBcastFlagToggle registry key. 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{<Network Adapter GUID>}

Value name: DhcpConnForceBroadcastFlag
Value type: REG_DWORD
Value data: 0
Notes
  • A value of 0 disables the registry entry. You can use this value to prevent Windows Vista from using the DHCP BROADCAST flag. After you configure the registry entry, Windows Vista never uses the DHCP BROADCAST flag.
  • This issue does not occur in Windows 7. By default, DhcpConnEnableBcastFlagToggle is set to 1.

↑ Back to the top


Keywords: kb, kbmsifixme, kbfixme, kbwin7swept, kbnetwork_generalbroadband, kbnetwork_routerissues, kbexpertisebeginner, kbhardware, kbentirenet, kbtshoot, kbprb, kbsmbportal

↑ Back to the top

Article Info
Article ID : 928233
Revision : 3
Created on : 4/17/2018
Published on : 4/17/2018
Exists online : False
Views : 507