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