How can the Win8 system quickly modify the IP address? One-click to switch IP address bat to make

  

If you need to use the network frequently in two locations, you need to switch IP addresses frequently for fixed-line IP. It is irritating to input IP over and over again, so we can Make this setting process of Win8 system into bat, and double-click to complete all settings when needed.

Operation steps:

1. Set the IP address batch processing and save the following code as Notepad. Bat file, such as: IPadd.bat, double-click to run.

The code is as follows:
@echo off echo HTMer modify IP address tool echo is setting your IP address, please wait …… netsh interface ip set address name="local connection" source =static addr=192.168.0.2 mask=255.255.255.0 netsh interface ip set address name="local connection" gateway=192.168.0.1 gwmetric=0 netsh interface ip set dns name="local connection" source=static addr =192.168.0.3 register=primary netsh interface ip add dns name="local connection" addr=192.168.0.4 netsh interface ip set wins name="local connection" source=static addr=none

Note: above The relevant parameters in the code are as follows, and can be modified according to your actual situation:
addr=192.168.0.2--IP address mask=255.255.255.0--subnet mask gateway=192.168.0.1--gateway addr= 192.168.0.3--Preferred DNS addr=192.168.0.4--Alternate DNS (If there is no alternate DNS, please delete this line of code as a whole)

2. Set the IP address automatically, it will be like The code is stored with Notepad. Bat file, such as: dhcp.bat, double-click to run.

The code is as follows:
@echo off echo HTMer modify the IP address tool echo is setting the IP address automatically, please wait …… netsh interface ip set address name="local connection" source =dhcp netsh interface ip set dns name="local connection" source=dhcp

Note: The "local link" in the above code is the system default name of the network link in your computer, if you have multiple Network card, or rename the local link, please change the corresponding local link name in the code to your current name.

For users who need fixed-line IP multi-link network, it is definitely a practical skill, which is convenient for users who frequently surf the Internet in mobile, telecom and Unicom.

Copyright © Windows knowledge All Rights Reserved