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.
My computer is Win8, which is pre-installed in the notebook. Click on the Windows Defender software
The first method 1. If you do not find this local security policy option in your win8 system contro
Solving Microphone and Line Input Problems Under Win8 This article provides a solution to the proble
Users who have upgraded to Windows 8 systems know that there are many new features added to the syst
Win8 boot password how to cancel Win8 boot acceleration tutorial
Win8 update chrome error code 0X00000000 how to do?
Win 8.1 shutdown method Daquan Win+X can also
How to remove the family group function of win8.1
Win8 system wake-up password how to set
Windows 8 Live Tiles on or off
Intelligent Switching Win8 Input Method
Installation Win8.1 system failed to start error 0xC0000225 Cause analysis and solution
How does Win8 enable allocation access?
Detailed steps to activate Windows 8
Easily find MAC addresses in Windows XP
How to deal with the display splash screen? How to adjust the Win10 system screen flicker?
How to copy LINUX user information
Microsoft is ready to improve the Windows 10 start menu, expecting user feedback
How to send mail to Foxmail Foxmail setup tutorial
Microsoft pushes Windows 10 build 10586.71 to non-Insider users
Mobile hard disk and U disk installed Windows7 method