Internet command operations

Source: Internet
Author: User

Internet Protocol is the most basic network protocol. If you want to learn more about the Internet protocol, you must have a detailed understanding of the content. Then we will analyze this part of knowledge in detail. 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 (disabled) this is because the Transport Control Protocol/Internet Protocol (TCP/IP) Stack is a 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, restore it to the state when the operating system is first installed. NetShell utility (netsh) is a command line scripting tool, you can use this utility to configure and monitor Windows Server 2003 networking. This tool provides an interactive network Shell Interface. You can use the Internet Protocol (IP) of this utility) the reset command in the context overrides 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 in this article, the TCP/IP stack in the current computer will be reset, And 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 is 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 command 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 an example of a log file, this log file is generated by netsh after the ip reset command is run. According to the different configurations on the computer on which the command is issued, the actual log files are also different, if the original configuration of the TCP/IP Registry item 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.