The default gateway is missing on a computer that is running Windows Server 2008 or Windows Vista after the computer restarts if the default gateway is set by using the Netsh command
Consider the following scenario:
- You use the netsh command to enable a network interface on a computer that is running Windows Server 2008 or Windows Vista. The computer retrieves IP addresses from a DHCP server.
- You use the netsh command to set a default gateway for the network interface.
In this scenario, the default gateway is set successfully. You can verify it by running the ipconfig /all command. However, the default gateway of the network interface is missing after the computer restarts. If you double-click the following registry entry, you find that a null character exists in the value data of the DhcpDefaultGateway subkey:
For more information on this issue, including potential causes, workarounds, and resolutions, see: Microsoft KB Article KB973243.