command line/batch changing from static IP to DHCP

Soldato
Joined
19 Jul 2005
Posts
7,069
Location
S. Yorkshire
Hi, I work between two location. In the first location I must use a static IP, in the second I must be on DHCP.

At present I am manually changing to static when needed, but it's a faff.

Is there an easy way to generate a batch file I can run that enters a predefined set of address information (IP, SN, GW) and another I can run to set it back to DHCP? I do this several times a week so it's a headache!
 
I'm on Windows 7 which isn't supported on ipswitcher and both sites have DHCP so alternate config won't work.
 
Thanks, they are both good suggestions. I'm going to use PistolPete's as I can just copy and paste into batch files. Thanks for both suggestions though!
 
No, just very lazy! It works perfectly. Well, the DNS line failed, but I've worked around that!
Thanks indeedy!
 
Back
Top Bottom