Change TCP/IP settings by command line

Posted in Windows XP by Community Submission

When you often use a laptop on different netwoks you can very easily change your ip and much more by use this command. You can save the line in a batch file and run the file when you  switch between home and work.

set address name="Local Area Connection" static 1

The syntax is:
set address [name=]InterfaceName [source=]{dhcp | static [addr=]IPAddress [mask=]SubnetMask [gateway=]{none | DefaultGateway [[gwmetric=]GatewayMetric]}}

More info on

It is only tested in Windows XP Pro but I guess i can be used on windows 2000 and XP Home.

Free Computer Magazines and eBooks