Use NetShell to quickly reset the Internet Protocol

Source: Internet
Author: User

Internet Protocol is currently one of the most commonly used protocols. So I have studied the steps and statements for resetting the Internet Protocol. Here I will share with you, hoping to help you. If you click Internet Protocol (TCP/IP) in the following project list for this connection displayed in the "local connection" attribute, you will find that the unmount button is unavailable ). This is because the Transport Control Protocol/Internet Protocol (TCP/IP) Stack is the core component of Microsoft Windows Server 2003 and cannot be deleted.

In some cases, you may need to reinstall TCP/IP to restore the TCP/IP stack to its original state. You can use the NetShell utility to reset the TCP/IP stack and restore it to the status when the operating system is installed for the first time. The NetShell utility (netsh) is a command line scripting tool that allows you to configure and monitor Windows Server 2003 networking. This tool provides an interactive network shell program interface. You can use the reset command in the Internet Protocol (IP) Context of the utility to override the following registry items related to TCP/IP:

SYSTEM \ CurrentControlSet \ Services \ Tcpip \ Parameters \

SYSTEM \ CurrentControlSet \ Services \ DHCP \ Parameters \

Command syntax

Netsh int ip reset [log_file_name]

To use the netsh command to reset the TCP/IP stack, you must specify the name of the log file that records the command results. If you enter any of the commands described in the "command example" section of this article, the TCP/IP stack on the current computer will be reset, the xx activity will be recorded in the Resetlog.txt file specified in the command line. In the first example, the log file is created in the current folder. In the second example, the complete path of the Resetlog.txt log file is specified. Note: If the file name is the same as the name of the existing log file in the target folder, the information of the new log file will be appended to the end of the existing file.
Command example: The following example shows how to use the netsh command to reset the Internet protocol stack.

Example 1:

Click Start, and then click Run.

In the displayed dialog box, type cmd and click OK.

ENTER the following command at the command prompt and press ENTER:

Netsh int ip reset resetlog.txt

Note: In the preceding command, "int" is the abbreviated form of the interface command.

Type exit and press ENTER.

Example 2 of resetting the Internet Protocol:

Click Start, and then click Run.

In the displayed dialog box, type cmd and click OK.

ENTER the following command at the command prompt and press ENTER:

Netsh int ip reset c: \ resetlog.txt

Type exit and press ENTER.

To view help information about commands, enter a space and then enter ?. Other help information about available commands in the subcontext of the netsh command is displayed. For example, to view the netsh commands described in the previous section, enter the following command at the command prompt:

Type netsh ?, Then press ENTER.

Type netsh int ?, Then press ENTER.

Type netsh int ip address ?, Then press ENTER.

Type netsh int ip reset ?, Then press ENTER.

Netsh int ip reset Log File example. The following is a log file generated by netsh after the ip reset command is run. The actual log files vary depending on the configuration on the computer on which the command is issued. Generally, if the original configuration of the TCP/IP registry is not replaced, no operations are recorded in the file.
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.