Document directory
- Command usage
- Command example
- Skip the following
- Netsh int ip reset sample log file
In the Connection Properties dialog box of Windows XP (Windows XP for short), if you click the "Internet Protocol (TCP/IP) option, the" unmount "button is unavailable. This is because the TCP/IP protocol is the core component of Windows Server XP and cannot be deleted.
What if we need to reset the TCP/IP to the original status? At this point, we can use the "netsh" command line tool to solve this problem. In the "run" dialog box, enter "cmd" to open the "command prompt" window, and then enter the command line "netsh int ip reset resetlog.txt" or "netsh int ip reset c: /resetlog.txt "and press Enter. The "reset" command can override the registry keys related to TCP/IP: "System/CurrentCon trolSet/Services/Tcpip/Parameters/" and "System/CurrentControlSet/Services/DHCP/Parame ters /", the result of running the preceding command is the same as deleting and re-installing TCP/IP.
In addition, the locations where the two commands are stored are different from those of the corresponding resetlog.txt log file. The former is to create the log file in the current folder, while the latter specifies the specific storage path.
Steps:
1. Start and run.
2. Enter CMD and press Enter.
3. Enter "netsh int ip reset resetlog.txt" or "netsh int ip reset c:/resetlog.txt" and press Enter.
Or:
After you open cmd, enter the netsh prompt to change to netsh. Then, enter the interface to netsh> interface> IP address, and then enter reset C:/resetlog.txt and press Enter. After completion, you will see the resetlog.txt file in the C root directory. If the file is successful, the content is <completed>.
C:/> netsh
Netsh> interface
Netsh interface> ip
Netsh interface ip> reset c:/resetlog.txt
The reset parameter may be replaced with reset all in 2000, that is, "netsh int ip reset all c:/resetlog.txt ".
Below is Microsoft's KB
How to reset the Internet Protocol (TCP/IP) in Windows XP)
Http://support.microsoft.com/kb/CHS299357/ZH-CN/
When viewing the list of network interface components, you may notice that when you select Internet Protocol (TCP/IP ),
UninstallButton. In Windows XP, the TCP/IP stack is considered as the core component of the operating system. Therefore, You Cannot uninstall TCP/IP in Windows XP.
In some extreme cases, re-installing the Internet Protocol Stack may be the most appropriate solution. With the NetShell utility, You can reset the TCP/IP stack to the initial state, that is, the same status as when installing the operating system.
More information
NetShell utility (NetshIs a command line script interface used to configure and monitor Windows XP networks. This tool provides users with interactive network Shell interfaces.
In Windows XP,ResetThe command is available in the ip context of the NetShell utility. When this command is executed, it overwrites the related registry key used by the Internet Protocol (TCP/IP) stack to achieve the same result as deleting and re-installing the protocol.
SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/SYSTEM/CurrentControlSet/Services/DHCP/Parameters/
Command to use netsh int IP reset [ Log_file_name]
To successfully execute this command, you must specify a log file name,NetshThe operation is recorded in the log file. For example, at the command prompt, type any example listed in the "command example" section later in this article to reset the TCP/IP stack on the system and record the executed operations in the log file Resetlog.txt.. The first example creates a log file in the current directory, and the second example shows creating a log in the specified path. In either case, if the specified log file already exists, the new log is appended to the end of the existing file.
Command example
Netsh int ip reset resetlog.txt
Netsh int ip reset c:/resetlog.txt
You can skip the sample log file of netsh int IP reset.
After the IP reset command is issuedNetshSample of the generated log file. The actual log files vary depending on the configuration of the system where the command is issued. In some cases, no operations may be recorded in the file. This usually happens if the TCP/IP registry key is not changed from the original configuration.
reset SYSTEM/CurrentControlSet/Services/Dhcp/Parameters/Options/15/RegLocation old REG_MULTI_SZ = SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/?/DhcpDomain SYSTEM/CurrentControlSet/Services/TcpIp/Parameters/DhcpDomainadded SYSTEM/CurrentControlSet/Services/Netbt/Parameters/Interfaces/Tcpip_{2DDD011E-B1B6-4886-87AC-B4E72693D10C}/NetbiosOptionsadded SYSTEM/CurrentControlSet/Services/Netbt/Parameters/Interfaces/Tcpip_{BAA9D128-54BB-43F6-8922-313D537BE03E}/NetbiosOptionsreset SYSTEM/CurrentControlSet/Services/Netbt/Parameters/Interfaces/Tcpip_{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}/NameServerList old REG_MULTI_SZ = 10.1.1.2deleted SYSTEM/CurrentControlSet/Services/Netbt/Parameters/EnableLmhostsadded SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{2DDD011E-B1B6-4886-87AC-B4E72693D10C}/AddressTypeadded SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{2DDD011E-B1B6-4886-87AC-B4E72693D10C}/DefaultGatewayMetricadded SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{2DDD011E-B1B6-4886-87AC-B4E72693D10C}/DisableDynamicUpdatedeleted SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{2DDD011E-B1B6-4886-87AC-B4E72693D10C}/DontAddDefaultGatewayreset SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{2DDD011E-B1B6-4886-87AC-B4E72693D10C}/EnableDhcp old REG_DWORD = 0added SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{2DDD011E-B1B6-4886-87AC-B4E72693D10C}/NameServeradded SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{2DDD011E-B1B6-4886-87AC-B4E72693D10C}/RawIpAllowedProtocolsadded SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{2DDD011E-B1B6-4886-87AC-B4E72693D10C}/TcpAllowedPortsadded SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{2DDD011E-B1B6-4886-87AC-B4E72693D10C}/UdpAllowedPortsadded SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{5B3675C3-6EB9-4936-B991-04DA31024C4E}/DisableDynamicUpdatereset SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{5B3675C3-6EB9-4936-B991-04DA31024C4E}/EnableDhcp old REG_DWORD = 0reset SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{5B3675C3-6EB9-4936-B991-04DA31024C4E}/IpAddress old REG_MULTI_SZ = 12.12.12.12deleted SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{5B3675C3-6EB9-4936-B991-04DA31024C4E}/IpAutoconfigurationAddressdeleted SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{5B3675C3-6EB9-4936-B991-04DA31024C4E}/IpAutoconfigurationMaskdeleted SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{5B3675C3-6EB9-4936-B991-04DA31024C4E}/IpAutoconfigurationSeedreset SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{5B3675C3-6EB9-4936-B991-04DA31024C4E}/RawIpAllowedProtocols old REG_MULTI_SZ = 0reset SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{5B3675C3-6EB9-4936-B991-04DA31024C4E}/SubnetMask old REG_MULTI_SZ = 255.255.255.0reset SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{5B3675C3-6EB9-4936-B991-04DA31024C4E}/TcpAllowedPorts old REG_MULTI_SZ = 0reset SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{5B3675C3-6EB9-4936-B991-04DA31024C4E}/UdpAllowedPorts old REG_MULTI_SZ = 0added SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{BAA9D128-54BB-43F6-8922-313D537BE03E}/AddressTypeadded SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{BAA9D128-54BB-43F6-8922-313D537BE03E}/DefaultGatewayMetricadded SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{BAA9D128-54BB-43F6-8922-313D537BE03E}/DisableDynamicUpdatedeleted SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{BAA9D128-54BB-43F6-8922-313D537BE03E}/DontAddDefaultGatewayreset SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{BAA9D128-54BB-43F6-8922-313D537BE03E}/EnableDhcp old REG_DWORD = 0added SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{BAA9D128-54BB-43F6-8922-313D537BE03E}/NameServeradded SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{BAA9D128-54BB-43F6-8922-313D537BE03E}/RawIpAllowedProtocolsadded SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{BAA9D128-54BB-43F6-8922-313D537BE03E}/TcpAllowedPortsadded SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{BAA9D128-54BB-43F6-8922-313D537BE03E}/UdpAllowedPortsreset SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}/DefaultGateway old REG_MULTI_SZ = 10.1.1.2reset SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}/DefaultGatewayMetric old REG_MULTI_SZ = 0added SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}/DisableDynamicUpdatereset SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}/EnableDhcp old REG_DWORD = 0reset SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}/IpAddress old REG_MULTI_SZ = 10.1.1.1deleted SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}/IpAutoconfigurationAddressdeleted SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}/IpAutoconfigurationMaskdeleted SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}/IpAutoconfigurationSeedreset SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}/NameServer old REG_SZ = 10.1.1.2,10.1.1.3reset SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}/RawIpAllowedProtocols old REG_MULTI_SZ = 0reset SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}/SubnetMask old REG_MULTI_SZ = 255.255.255.0reset SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}/TcpAllowedPorts old REG_MULTI_SZ = 0reset SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}/UdpAllowedPorts old REG_MULTI_SZ = 0deleted SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/DontAddDefaultGatewayDefaultdeleted SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/EnableIcmpRedirectdeleted SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/EnableSecurityFiltersdeleted SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/SearchListdeleted SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/UseDomainNameDevolution<completed>
The information in this article applies:
• |
Microsoft Windows XP Professional Edition |
• |
Microsoft Windows XP Home Edition |