Getting your IP back


Post to Twitter Post to Facebook Post to StumbleUpon

So you’re having trouble getting to the Internet? Can’t ping the Internet gateway? Can’t ping your own IP address? Have network adapters that refuse to enable or disable? Could be a corrupt IP stack. You can take a look at MSKB 299357, or you can follow these steps:

  1. Make sure you’re logged in with a local administrator account.
  2. Open a command prompt.
  3. Run the following command :
    netsh int ip reset logfile.txt
    where logfile.txt is the name of a file where the command can write its output.
  4.  When the command completes, run it again with a different filename for the output file. 
  5. When that run completes, run it one more time, again with a different filename for the log file.
  6. Restart the computer in Safe Mode with Networking.

This will reset the TCP/IP settings back to sane defaults, which means all adapters in the computer will be set for DHCP. If you’re doing this on an SBS server, restarting in Safe Mode with Networking is absolutely crucial in order to avoid the dreaded 30 minute reboot. When the computer comes back up, set the network settings as needed, then reboot normally.

You may still have other issues, but these steps will get you a nice, clean, DHCP-enabled set of network adapters in the system.