Lost Default Gateway Windows 2008 R2 SP1

Do you know the problem reboot your server and you can’t RDP to it but you can ping and if you are in the same subnet you can RDP ?

Well maybe you hit a bug , yes I was surprised to where is my DGW ? try bing and you find more of the same problems but easy to fix with a hot fix but why one server does this and others don’t ?

See in google / Bing / Yahoo

The default gateway setting is lost when you reboot the server

for some reason my LAN just suddenly lost its Default Gateway

No Default Gateway  ?

Default Gateway Missing After Reboot

my tcpip default gateway gets reset on reboot

It looks like this after a reboot your Ip and subnet and DNS is there but no default Gateway

image

And if you looked it up in the registery

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipPara
metersInterfaces<GUID>DefaultGateway
Where <GUID> is the interface value for the network card.

It is not there , sure you can put it in but after a reboot it is gone.

Yes a scheduled task Winking smile No there is a hot fix for this.

image

 

Or you can reset the IP stack.

netsh int ip reset

netsh: this is a Windows utility that allows one to display or change network settings locally or remotely.

int: this argument specifies that you wish to use the “interface” context within the netsh utility.

ip: this argument specifies that you wish to use the “ip” context within the “interface” context of netsh. An example of another context that could have been specified here instead would be “ipv6.”

reset: this argument is an instruction within the previously-specified context and subcontext means what it says, to reset to default.

Consider the following scenario:

  • You use the netsh command to enable a network interface on a computer that is running Windows Server 2008 or Windows Vista. The computer retrieves IP addresses from a DHCP server.
  • You use the netsh command to set a default gateway for the network interface.

In this scenario, the default gateway is set successfully. You can verify it by running the ipconfig /all command. However, the default gateway of the network interface is missing after the computer restarts. If you double-click the following registry entry, you find that a null character exists in the value data of the DefaultGateway subkey:

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParametersInterfaces<GUID>DefaultGateway

Note <GUID> is the interface value of the network card.

To work around the issue, use the following command to set the default gateway on the interface:

Netsh int ipv4 set address <Interface Name> source=dhcp

Go here to get the HOTFIX :

Article ID: 973243 – Last Review: February 16, 2011 – Revision: 6.0

The default gateway is missing on a computer that is running Windows Server 2008 or Windows Vista after the computer restarts if the default gateway is set by using the Netsh command

 

 

Technorati Tags: ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
WordPress Tags: Lost,Default,Gateway,Windows,Yahoo,Reboot,HKEY_LOCAL_MACHINE,SYSTEM,CurrentControlSet,Services,Tcpip,Para,Interfaces,GUID,DefaultGateway,Where,interface,display,argument,context,Consider,scenario,computer,Server,Vista,DHCP,double,data,Parameters,Note,issue,Netsh,Name,HOTFIX,Article,Last,Review,February,Revision,same,subnet,find,reset,value,network,card,specifies,wish,within,here,command,restarts

  • Tag