Showing posts with label IP Address. Show all posts
Showing posts with label IP Address. Show all posts

Thursday, May 22, 2008

Check IP at command prompt

Check IP at command prompt
Did you know you can view it even faster (without opening all the way to cmd or command.com? Just type "cmd /k ipconfig" in the run box (Start button, run).
You can also put cmd /k ipconfig in a text file and give it a .bat extension to make a batch script so you just need to click on the file to execute it instead of going to the start menu.

Saturday, May 10, 2008

Change TCP/IP settings by command line

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.010.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 windows2000 and XP Home.