Tuesday, April 29, 2008

How to reset Internet Protocol (TCP/IP) in Windows XP

The NetShell utility (netsh) is a command-line scripting interface for
configuring and monitoring Windows XP networking. This tool provides
an interactive network shell interface to the user.

In Windows XP, a reset command is available in the IP context of the
NetShell utility. When you run the reset command, it rewrites pertinent
registry keys that are used by the IP (TCP/IP) stack to reach the same result
as the removal and the reinstallation of the protocol.
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\
SYSTEM\CurrentControlSet\Services\DHCP\Parameters\

Command usage


netsh int ip reset [log_file_name]
To manually run the command successfully, you must specify a file name for the log where actions that are taken by netsh will be recorded.

Warning Programs that access or monitor the Internet such as antivirus, firewall or proxy clients may be adversely affected when you run the netsh winsock reset command. If you have a program that no longer functions correctly after you use this resolution, reinstall the program to restore functionality.

Command samples


netsh int ip reset resetlog.txt
netsh int ip reset c:\resetlog.txt

No comments: