Win7 command line configuration static IP address method

Source: Internet
Author: User

Modifying the IP address can be implemented in the system's own "network and Sharing Center". However, there are times when the interface may not be accessible for a variety of reasons, such as WIN10 Preview version 10049. However, many users do need to set up a static IP to achieve normal network communication, at this time only through the "omnipotent" command line to solve the problem.

For systems such as WIN7/WIN8.1/WIN10, just remember a set of commands and follow these steps:

1. Open a command prompt and enter the netsh rear carriage return

2, then enter interface after the return

3. Input IP, enter

4, enter the set address "connection name" static new IP Address Subnet Mask Gateway 1, and then return

Note that the above command needs to be modified according to user requirements, the connection name can be referenced in the "Network Connection" name modification, support Chinese, but the quotation marks in English. There should be a space between each item, and finally enter "1", which represents OK. You can refer to the following example:

Set Address "Ethernet 3" static 192.168.1.108 255.255.255.0 192.168.0.1 1

5, you can also put the above command one-time input, but to ensure that does not wrap: netsh interface ip set address "connection name" static new IP Address Subnet Mask Gateway 1

Example: netsh interface ip set address "Ethernet 3" static 192.168.1.108 255.255.255.0 192.168.0.1 1

In addition, you can also use similar commands to modify DNS, the same format as above, as long as the "address" to "DNS" can: netsh interface ip set DNS "Ethernet 3" Static DNS address

It is important to note that the system IP becomes static after the modification. If you do not meet the needs of users, you can use the system's own Network "Troubleshooter" for automatic repair, restore dynamic IP. Of course, the IP address can also be restored by ordering the Netsh interface ip set address "connection name" DHCP, and the DNS address can also be restored by commanding the Netsh interface ip set DNS "connection name" DHCP.

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.