Bookmark and Share Subscribe Bookmark and Share

Categories

Unique Page Views

  • 1021


Missing Default Gateway in Windows Server 2008

Jan
20
 « »    

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.

Type: STRING (REG_SZ)
Name: DefaultGateway
Value: enter the IP Address of the gateway; in this case it was 192.168.11.2

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.

 

 

 

 

 

 

 

 

 

 

 

 

 



3 Responses to “Missing Default Gateway in Windows Server 2008”

  1. amollerup says:

    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

    • JPPinto.com says:

      I’m afraid that does not apply here. I set the gateway through the GUI and not through NETSH. I would try that hotfix but its not really a reproducible error, it happens every now and then.

Leave a Reply