How do I change static IP address from command line?

X

xp_newbie

I am behind a NAT router, having a 192.168.0.27 static address and I
would like to temporarily change it to 192.168.0.59 from the command
line - without rebooting.

(and then after completing some task, switch back to the previous IP
address, using the same command line method).

Is this possible at all on Windows XP? If so, how do I accomplish
that?

Thanks!
Alex
 
C

Chuck

I am behind a NAT router, having a 192.168.0.27 static address and I
would like to temporarily change it to 192.168.0.59 from the command
line - without rebooting.

(and then after completing some task, switch back to the previous IP
address, using the same command line method).

Is this possible at all on Windows XP? If so, how do I accomplish
that?

Thanks!
Alex

Alex,

Try
netsh int ip set address "Local Area Connection" static 192.168.0.27
255.255.255.0 192.168.0.1 1

and

netsh int ip set address "Local Area Connection" static 192.168.0.59
255.255.255.0 192.168.0.1 1
 
X

xp_newbie

Chuck said:
Try
netsh int ip set address "Local Area Connection" static 192.168.0.27
255.255.255.0 192.168.0.1 1

and

netsh int ip set address "Local Area Connection" static 192.168.0.59
255.255.255.0 192.168.0.1 1

Chuck, thank you very much - your tip works perfectly!

Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top