Bookmark and Share Subscribe Bookmark and Share

Categories

Advertisement



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.

 

 

 

 

 

 

 

 

 

 

 

 

 




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




6 Comments so far

    • shibu said:
    • Posted on September 21st, 2016 at 10:58 am
    • Reply
    • Permalink

    Facing the same issue in WINDOWS server 2008r2 physical machine, even after adding the same in registry issue is there, interface is not coming up.

  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

      • JPPinto.com said:
      • Posted on February 10th, 2010 at 2:12 pm
      • Reply
      • Permalink

      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 comment

Trackbacks on this post