How do I change static IP address from command line?

  • Thread starter Thread starter xp_newbie
  • Start date Start date
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
 
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
 
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
 
Back
Top