Good medicine cures ailments automatically switching IP scripts is very simple

  

Because often running back and forth with a notebook, you need to switch IP addresses frequently. Is there a good software that can be implemented? This is a problem that many office workers often ask. What software is needed, through the following two small scripts, you can automatically switch the IP under Windows, and the method is very simple, is it really want to know? Then hurry down.

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

& Quot; local " is the name of your local network card, it may be " connected ", local needs under their own replacement. 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.

From the office to the home environment, or from the conference room to the IP switch on the office workstation, I believe that you have been bothered by the trouble, then use the 2 small scripts of this tutorial to ensure that you will get your medicine right away. Until the disease is removed, and these two small scripts are not complicated.

Copyright © Windows knowledge All Rights Reserved