Warning - this blog contains opinions, strong language, occasional bold text, and HTML. Viewer discretion is advised.

2010/01/16

Rebooting an SBS 2008 causes the Default Gateway to Disappear

Ran into this problem today. No matter what I did, rebooting the fully patched SBS2008 caused the server to lose Internet connectivity. Turns out, the default gateway entry on the NIC was just getting blanked out - completely gone. Running the "Connect to the Internet" or "Fix My Network" wizards did not help ("Fix my network" is fairly nebulous anyway and I don't really trust it...). Anyway, after a bunch of troubleshooting, I discovered this article:

http://www.ct-miramar.com/BlogEngine/post/SBS2008-Losing-Gateway-Settings-on-Reboot-VMWARE-ESXI-Host.aspx

Interestingly, this SBS 2008 (like nearly all of the ones I look after) is virtualized on Hyper-V, and it was showing the exact same symptom. Unfortunately, following the steps did not resolve the problem, and rebooting the server still caused the default gateway to be lost.

But, the interesting thing about the article above is that it made me realize that I probably confused the server in the first place. See, in order to facilitate a completely remote SBS swing migration, this virtualized SBS 2008 did in fact have two NICs for a period of time (something I'll get into another time). One of the entries I found at the registry key mentioned in the above article referred to "192.168.0.1", which was the gateway for my secondary NIC. So, even though that article didn't fix my problem, it helped me realize the root cause.

After focussing my search and doing a bit more looking, I found this Experts Exchange thread, which hit the nail on the head:

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/SBS_Small_Business_Server/Q_24925134.html

Browsing to the key:

HKLM/System/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/

I discovered that the "DefaultGateway" value looked like this, which is baaaad:

So, all I needed to do was remove the first line, which was blank, and causing the blank "Default Gateway" value on the NIC. Disabling and re-enabling the NIC resolved the issue, and a follow up reboot verified that the default gateway was no longer being lost.

So, watch out for this, particularly when doing SBS or Server 2008 migrations.

0 comments:

Post a Comment