From office to home environment, or IP switching from conference room to office workstation, I believe that you have been bothered by the trouble, then use the following 2 small scripts Oh, the medicine is sick.
1. Switch to automatically get IP
@echo off
netsh interface ip set address name="local" source=dhcp
netsh interface Ip set dns name="local" source=dhcp
2. Switch to fixed IP
@echo off
netsh interface ip set address local static 192.168.0.84 255.255 .255.0 192.168.0.254
netsh interface ip set dns local 192.168.0.254
netsh interface ip add dns local 202.106.196.115 index=2
netsh interface ip add dns local 202.106.0.20 index=3
"local" is your local NIC name, or it may be "local connection", you need to replace it yourself. If it is a switch between two fixed IPs, change the second script yourself:)
In the dns setting, the first one is set, which means setting, the latter two are added, and you replace it yourself. Become a local dns server.
The authors Windows XP system has been using the Administrator account, and no other accounts have b
Windows XP is the most secure operating system in the Windows family, and it provides us with a good
The computer is an XP system. After right-clicking on the folder, select “Share & Secu
Generally, we rarely pay attention to the registry of the computer system in the use of the computer
Windows XP system shutdown and automatic restart solution
The reason why computer PE systems can't enter
Installing Windows XP SP2 to do things
The directory of the normal system process item in Windows XP system is
Two strokes to achieve automatic restart of WindowsXP system
A Trojan that makes the word document open and slow
Common methods for recovering WINDOWS failures (3)
Genuine Windows7 is convenient for living with three points of aesthetic interpretation
Understand the Win XP system taboo to avoid system crashes
System backup and restore tools are in hand, not afraid of (a)
Win8 powerful network video player
Steps for creating a WiFi hotspot under Win10 system
How to recover win10 recycle bin files? Win10 Recycle Bin File Recovery Tutorial
USB device unrecognized solution
Win8.1 copy file error "Target folder access denied" processing method
Some wonderful tips for using windows
Win2003 operating system application skills summary