Blank default gateway may occur after configuring Static IP address following network driver upgrade on Windows 7 and Server 2008 R2

Article ID: 2555789 - View products that this article applies to.
Expand all | Collapse all

SYMPTOMS

After upgrading a network driver and reentering static IPv4 address information within the Local Area Connection / Internet Protocol Version 4 (TCP/IPv4) properties dialog, or when using the "netsh interface ipv4 [add | set] address" command, network connectivity may not work correctly. The following behavior may be observed:

- When viewing Local Area Connection / Internet Protocol Version 4 (TCP/IPv4) properties dialog, the "Default gateway" entry will be blank, though the previously entered IP address and Subnet mask will display correctly.

- If ipconfig.exe is run from a command prompt, the Local Area Connection "Autoconfiguration IPv4 Address" will begin with "169.254...."

This problem does not occur if the computer receives an address from a DHCP server.


CAUSE

When removing a network driver using a vendor-provided uninstallation program or through Device Manager, previously entered static IP address information may not be removed correctly from the registry. After reinstalling the network driver and reentering the same static IP address, the presence of previous registry information prevents the newly entered address information from being saved correctly. 

RESOLUTION

Once the machine is experiencing this problem, the static IP address, Subnet mask, and Default gateway must be reentered TWICE in order for the values to be saved correctly. 

- Open the Local Area Connection / Internet Protocol Version 4 (TCP/IPv4) Properties dialog, and select "Obtain an IP address automatically", and choose OK.  From the Local Area Connection Properties dialog, choose OK

- Reenter the Local Area Connection / Internet Protocol Version 4 (TCP/IPv4) Properties dialog, and select "Use the following IP address"

- Perform the first two steps AGAIN, even though the IP address appears to be displaying properly.

*or*

- Open a command prompt under the administrator context and run the following command TWICE, using the desired static address information. For example:

netsh interface ipv4 set address "Local Area Connection" static 10.0.0.55 255.0.0.0 10.0.0.1

Note: This first command may return an error "Object already exists"

netsh interface ipv4 set address "Local Area Connection" static 10.0.0.55 255.0.0.0 10.0.0.1

Note: This command should succeed with no errors



MORE INFORMATION

This problem is difficult to reproduce, and may only occur once in five or more network driver uninstallation attempts. This issue may occur with any network adapter.

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Properties

Article ID: 2555789 - Last Review: October 19, 2011 - Revision: 3.0
APPLIES TO
  • Windows 7 Professional
  • Windows 7 Enterprise
  • Windows 7 Ultimate
  • Windows 7 Service Pack 1
  • Windows Server 2008 R2 Standard
  • Windows Server 2008 R2 Datacenter
  • Windows Server 2008 R2 Enterprise
  • Windows Server 2008 R2 Service Pack 1
Keywords: 
KB2555789

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com