Sunday 15 January 2012

Change TCP/IP settings using cmd

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 10.10.69.205 255.255.255.0 10.10.5.1 1

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

No comments:

Post a Comment