Win7, win8.1, win10 command line configuration ip address graphic tutorial

  

win7, win8.1, win10 command line configuration ip address graphic tutorial is coming! Everyone knows that modifying the IP address can be implemented in the system's own "network and sharing center", but sometimes it may not be able to enter the corresponding interface for various reasons, such as win10 preview version 10049 and above. If the user needs to set a static IP to achieve normal network communication, look at the win7, win8.1, win10 command line configuration ip address graphic tutorial can solve the problem!


The method is not difficult. It is suitable for Win7/Win8.1/Win10 and other systems. Just remember a set of commands. The steps are as follows:

1. Open At the command prompt, enter netsh and press

2. Then enter the interface and press

3. Enter ip, enter

4. Enter set address " Name " static new IP address subnet mask gateway 1, then enter

Note that the above commands need to be modified according to user requirements, the connection name can be modified by referring to the name in the "network connection" Chinese, but the quotation marks are in English. There must be a space between each item, and finally enter "ldquo;1", which means OK. 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 enter the above command once, but make sure No line break: 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

Alternatively, you can use a similar command to modify the DNS. The format is the same as above, just replace "address" with "lds" and you can: netsh interface ip set dns " 3" static DNS address

Note that the system IP becomes static after modification. If it does not meet the user's needs, you can use the system's own network "troubleshooting" to automatically repair and restore the dynamic IP. Of course, you can also restore the IP address by using the command netsh interface ip set address "connection name" dhcp; for the same reason, the DNS address can also be restored by the command netsh interface ip set dns "connection name" dhcp.

Copyright © Windows knowledge All Rights Reserved