In Windows, if you want to set the IP address, you usually go to “local connection"->" attribute”, manually set the IP to be changed. address. In fact, you can also set the IP address on the command line. If your IP needs to switch back and forth between several IPs, you can use the netsh command to change it:
1. Enter the CMD command line;
Click “Start”->“Run ”, enter “cmd”, enter,
2. Set IP:
Set Dynamically Obtain IP Address (DHCP)
Settings Fixed IP
Parameter Description:
1.name: The name of the network connection, generally "local connection". You can see it in “Control Panel”->“Network Connections”.
2.source: The way to get IP. Dynamically, it is dhcp. If it is set manually, it is static.
3.addr: The IP address to be set.
4.mask: Subnet mask.
5.gateway: Gateway address.
6.gwmetric: The number of gateway hops, which can be set to an integer value or set to “automatic":auto.
3.Setting DNS:
Obtaining DNS automatically
Setting up a single DNS manually
Manual setting Multiple DNS
Parameter Description:
1.name: The name of the network connection, generally "local connection". You can see it in “Control Panel”->“Network Connections”.
2.source: The way to get IP. Dynamically, it is dhcp. If it is set manually, it is static.
3.addr: The IP address to be set.
4.register:
5.none: Disable dynamic DNS registration.
6.primary: Register only under the primary DNS suffix.
7.both: Register under the primary DNS suffix and also under a specific connection suffix.
8.index: Set the serial number of the DNS.
4. Write a batch file for setting IP/DNS:
After knowing how to set up IP and DNS, you can write a BAT file yourself:
Create a new text For the documentation, change the suffix to “.bat”;
Edit “.bat” The contents of the file are the above setting commands. For example:
When running, double-click the bat file and wait for the settings to complete.
For detailed instructions on using the netsh command, you can view it by typing the netsh /? command on the command line. I will not explain it here. I hope it will be useful to you.
Relatively speaking, Windows XP is the fastest booting of all Microso
Referring to the network login of Windows system, generally we first think of 3389 login, which is t
Text /Pang Zhangbin Despite the popularity of broadband, but there are a lot of dial-up peo
. I know that there is a service called prefetcher in the Windows XP/2003 operating system. This is
Integrated SP2: XP installation saves an hour
Mining the super useful hidden tools in Windows XP (2)
WinXP appears to delay write failure error
XP Application Optimization Guide for Windows Systems
Can I get rid of the 20% speed of QoS in Windows XP?
How to restore the file file after emptying the recycle bin
Retrieving EFS-encrypted files in XP system
Let the long-lost NetBEUI protocol reappear in Windows XP
Explain the quick installation of Windows XP operating system
Modify the XP settings skill set desktop adjustment
Save WinXP system fake three tricks
Create a restore point for the disk. Change the file to restore
Win10 play LOL typing can not see how to solve the box League of Legends can not type how to do
96 WeChat editor to replace the image of the material avatar steps
Windows8 preview version of Chinese (with Chinese language pack) (2)
How does Ubuntu replace the login window background
Win8.1 does not rely on third-party software how to encrypt the folder and hide
Comprehensive analysis of Win8 task manager in all directions
Microsoft Indonesia Senior Officials Revealed Win8 Free Upgrade to Win9
Win7 mouse left click on the web page label automatically closes how to do