Click here to return home   Click here to visit the Tweaks.com Network

Change TCP/IP settings by command line
Posted 12/10/2002 by TweakXP Member

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.


Example:
set address name="Local Area Connection" static 10.0.5.99 255.255.255.0 10.0.5.1 1

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


More info on http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/winxppro/proddocs/netsh_int_ip.asp

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





Free Computer Magazines for TweakXP.com Visitors!
InfoWorld Making the right technology buying decisions is more important to business success than ever. That's why InfoWorld is dedicated to helping IT professionals get technology right. eWeek is the essential weekly technology information source for builders of e-business.
Other Titles: RCR Wireless, Network World, InfoWorld, Information Week, CRN Magazine, BaseLine Magazine, Many More Free Magazines!

 


© 2001-2007 Advanced PC Media LLC, All rights reserved.
TweakXP.com® is a registered trademark of Advanced PC Media LLC.

Microsoft, Windows and Windows XP are registered trademarks of Microsoft
Corporation.  Microsoft Corporation in no way endorses or is affiliated with TweakXP.com®.
All other products mentioned are registered trademarks and/or trademarks of their respective companies.