Monday, August 13, 2007

How to change IP address from the Windows command line

Check out this web page:

http://www.daybarr.com/blog/2007/05/11/how-to-change-ip-address-from-the-windows-command-line
It explains how to use comand prompt to change your ip address, gateway and dns servers plus how to chage it back to dhcp again. It uses netsh.
This is how you set your ip address, subnet mask and gateway:

netsh interface ip set address "Local Area Connection" static 192.168.1.140 255.255.255.0 192.168.1.1 1
netsh interface ip set dns "Local Area Connection" static 4.2.2.2 primary

Then back to DHCP
netsh interface ip set address "Local Area Connection" dhcp
netsh interface ip set dns "Local Area Connection" dhcp

This is so helpful. You just put this code in to a text file and change the extension from txt to cmd. Then you can open it and it will set your ip address. Then have another file that will change it back to DHCP again.

4 comments:

Anonymous said...

visit changeipaddress.org to know the procedure to change ip address.

Anonymous said...

Can anyone recommend the well-priced Script Deployment system for a small IT service company like mine? Does anyone use Kaseya.com or GFI.com? How do they compare to these guys I found recently: N-able N-central event management
? What is your best take in cost vs performance among those three? I need a good advice please... Thanks in advance!

Anonymous said...

What is the best-priced RMM utility freeware?
I Googled the web and discovered the following:
Kaseya.com
GFI.com
Logmein.com

They all look different... Does anyone can recommend any other?
As well did anyone hear of this:
N-able remote monitoring and management software ?

Unknown said...

I recommend logmein.com hands down. I use it on an Ipod too