Easy Windows XP switch between static IP and DHCP
January 21, 2004 4:04 AM
Subscribe
In Windows XP is there any way to do a quick switch between DHCP and a given IP address? My home network connection uses DHCP - my work uses static. I've tried different hardware profiles with no success.
posted by LukeyBoy to computers & internet (5 comments total)
The next easiest would be to make a couple of batch files like this:
dhcp-on.cmd:
netsh interface ip set address "Local Area Connection" dhcp
dhcp-off.cmd:
netsh interface ip set address "Local Area Connection" static 192.168.1.100 255.255.255.0 192.168.1.1
Substituting static address, netmask, and gateway for the last three values, and the name of your interface for the value in quotes.
Then stick shortcuts on your desktop.
posted by majick at 4:53 AM on January 21, 2004 [1 favorite]