大网数据广告活动
网络与域名解析

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

· 52CE 我爱测

If a Windows 7 Service Pack 1 or Windows Server 2008 R2 Service Pack 1 system is configured with a Static IPv4 address, and the underlying network driver is uninstalled and reinstalled, reconfiguring the same Static IPv4 address information may result in a blank default gateway. The Static IP address information must be reentered twice before the…

This article provides a solution to an issue where blank default gateway may occur after you configure Static IP address following network driver upgrade in Windows 7 Service Pack 1 and Server 2008 R2 Service Pack 1.

Applies to:   Windows 7 Service Pack 1, Windows Server 2008 R2 Service Pack 1
Original KB number:   2555789

Symptoms

After upgrading a network driver and reentering static IPv4 address information within the Local Area Connection Properties/Internet Protocol Version 4 (TCP/IPv4) Properties dialog box, 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 Properties/Internet Protocol Version 4 (TCP/IPv4) Properties dialog box, 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.

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

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

  3. 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
    

    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
    

    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.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Server · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。