modifying IP addresses in the Windows system can be implemented in the "Network and Sharing Center" that comes with the system, but there are times when you may not be able to access the interface for a variety of reasons, such as software problems or poisoning. In some cases, users need to configure static IP to be able to achieve normal network traffic, in the Windows system through the command line to modify the IP address is omnipotent, so the small set here describes the use of the command line to configure IP methods.
Win 7/8.10 using the command line to configure IP tutorials is not difficult, for systems such as WIN7/WIN8.1/WIN10, just remember a set of commands, as follows:
1, open the command prompt, enter Netsh return
2, then enter interface after the return
3, input IP, carriage return
4, enter set address "connection name" static new IP Address Subnet Mask Gateway 1, and then enter
Note that the above command needs to be modified in accordance with user requirements, the connection name can refer to the "Network connection" in the name modified to support Chinese, but the quotation marks in English. There must be a space between each item, and finally enter "1" to represent the determination. 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 at a one-time input, but to ensure that do not wrap: netsh interface ip set address "connection name" static new IP 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 use similar commands to modify DNS, the same format as above, as long as the "address" replaced by "DNS" can: netsh interface ip set DNS "Ethernet 3" Static DNS address
It should be noted 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 the command netsh interface ip set addressing "connection name" DHCP, and DNS addresses can also be recovered by command netsh interface ip set DNS "connection name" DHCP.