Windows 2008 virtual machines lose their Gateway IP address after rebooting

I was working on a Windows 2008 Server in an segmented network. This was a fresh new installation of Windows 2008. After a reboot the server was not reachable from another VLan. After some troubleshooting I found the problem. The gateway address has disappeared. Strange, so I started searching on the internet and I found an Knowledgebase article at the VMware site describing my problem, this is VMware KB1016878.

Symptoms

  • After every reboot, Windows 2008 virtual machines lose their Gateway IP address.
  • Gateway IP address is lost or reset after rebooting

Resolution

This issue may occur if there is a problem with the registry keys DefaultGateway and DefaultGatewayMetric.

Microsoft has identified this issue and has released a hotfix. For more information and to download the hotfix, see the Microsoft Knowledge Base article 973243.

To work around this issue:

  1. From the Windows Registry Editor, navigate to HKLM/System/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/%CLSID%.
  2. Check the DefaultGateway and DefaultGatewayMetric keys for issues. For example:
  • Remove any newline feeds before the correct default gateway IP
  • If the address is missing, add it manually.

Related articles:

Disclaimer.
The information in this article is provided “AS IS” with no warranties, and confers no rights. This article does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.

Marco

Marco works for ViaData as a Senior Technical Consultant. He has over 15 years experience as a system engineer and consultant, specialized in virtualization. VMware VCP4, VCP5-DC & VCP5-DT. VMware vExpert 2013, 2014,2015 & 2016. Microsoft MCSE & MCITP Enterprise Administrator. Veeam VMSP, VMTSP & VMCE.