Reset Network Settings in Windows Server

I recently setup a few virtual machines in Scale Computing.  I had an issue with static network settings not working as expected in Windows Server 2008 R2.  Virtual machines when soft rebooted a second IP address would be used and could not be cleared, or duplicate ip warning would cause a 169 address to be used.  On second soft reboot or sometimes network card reset, the problem would disappear until rebooted again.  Alternating between a working network card and not working on soft reboot.

I used the script below to clear out the network settings and set the network card to obtain the IP address automatically .  I would then reboot and setup the static network card information.  I also reviewed the network card settings in the registry, removing non existing network drivers to no success.  Scale computing’s support offered no support beyond recommending driver re-installation (which was what we first addressed before contacting support.) The resources I found for fixing network card information in Windows Server 2008 were interesting and I thought I should share.

 

Reset Windows Server 2008 R2 network card information batch commands:

ipconfig /flushdns
netsh interface ip delete arpcache
nbtstat -R
nbtstat -RR
netsh int ipv4 reset
netsh int ipv6 reset

Additional Resources:
http://www.activeservers.com/Remove-Non-Existing-Network-Adapters.aspx

http://blogs.technet.com/b/exchange/archive/2013/10/22/do-you-have-a-sleepy-nic.aspx

http://www.windowsnetworking.com/articles-tutorials/windows-server-2008/10-Windows-Server-2008-Netsh-commands.html

http://www.hanselman.com/blog/TheNuclearOptionResettingTheCrapOutOfYourNetworkAdaptersInVista.aspx

2 thoughts on “Reset Network Settings in Windows Server

  1. Preston Post author

    I investigated further and found these articles useful:

    VMWare Article Regarding this Issue:
    http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1028373

    Cisco Article: Duplicate IP Address 0.0.0.0 Error Message Troubleshoot
    http://www.cisco.com/c/en/us/support/docs/ios-nx-os-software/8021x/116529-problemsolution-product-00.html

    This article points to a Sonic Wall VPN possibly responding to all ARP requests:
    https://ask.wireshark.org/questions/13628/duplicate-ip-addres-from-sonicwall-tz-215

    How to disable Gratuitous ARP in Windows
    https://support.microsoft.com/en-us/kb/219374

    Microsoft TCPIP and the ArpRetryCount Documentation
    http://download.microsoft.com/download/c/2/6/c26893a6-46c7-4b5c-b287-830216597340/TCPIP_Reg.doc

Leave a Reply

%d bloggers like this: