Windows 2008 VM’s losing default gateway
I am currently in the process of deploying a number of new Windows 2008 virtual machines and came across an interesting little issue. Every time I reboot the server the default gateway blanks itself, meaning I cannot connect to it via RDP as it is in a remote data centre. Thank goodness for vCenter console access, if this was a physical server it would be a real pain in the you know what.
So how do you fix it? well simply open a command prompt and type the following
netsh int ip reset c:\resetlog.txt
This is basically a reset of the TCP/IP components and as a result all IP information for your network connections will be wiped back to the default dynamic DHCP setting. So now you need to re-enter the static IP information for the server and restart it. It’s worthwhile doing a couple of reboots just so you can be sure that the problem has actually disappeared.
Further information can be found in Microsoft KB article 299357




