Bookmark and Share Subscribe Bookmark and Share



Missing Default Gateway in Windows Server 2008


 « »    

You enter a default gateway and the gateway disappears, not even after a reboot – it just disappears in a couple of minutes.

I’ve recently ran into this issue on a couple of Windows Server 2008 guest machines in a VMWare environment. I am not sure if it is isolated to VMWare. I could not find a resolution so I came up with this workaround.


Open up by going from “START > RUN REGEDIT” > Press Enter

Navigate to the following key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces”, select the interface that is missing the default gateway. You can tell which interface by the IPAddress entry. Create a new STRING value in the selected interface key.

Name: DefaultGateway
Value: enter the IP Address of the gateway; in this case it was

Open the properties of the network connection and you should not see the gateway listed, after I did this I did not have any more issues with the gateway disappearing.














    Did I save you time and headaches? Buy me a cup of coffee.
    The more coffee I drink the more articles I can write.

5 Comments so far

  1. face the issue after i installed Network Load balancer. so i removed the NLB then im able to configure the GW

  2. Had the same issue after moving a few VMs from vSphere 4 to XenServer 6. Only one of the VM (WS2008R2) showed this behavior. Your tip helped me fix it. Thanks

    • amollerup said:
    • Posted on February 24th, 2010 at 1:59 am
    • Reply
    • Permalink

    This happens because the VMware vCenter Customization Specifications Manager used to sysprep Windows 2008 guests uses the "Netsh int ipv4 set address" command to set the Default Gateway IP address. This command incorrectly adds a Unicode null character before the value of the actual IP address of the Default Gateway.

    See Microsoft kb 973243

Leave a comment

Trackbacks on this post