I'm not able to permanently replace my Ip addresses using NETSH. I've tried all possible options but nothing. when I reboot the computer I get my old IPs.

I'm this was done before...

any idea? Thanks!! E.


Which OS? The following will work on Vista onwards:

netsh int ipv4 set address "Local Area Network" static <IP address> <subnet mask> <gateway> <metric>


netsh int ipv4 set address "Local Area Network" static 1

You may need to replace "Local Area Network" with whatever the friendly name for the interface is, which you can check with ipconfig /all.

Replace ipv4 with ip for XP/2000/2003.

  • Windows XP OS machine – edotan Mar 27 '12 at 14:19
  • @EladDotan: IIRC, for XP all you need to do is replace ipv4 with ip for this particular command. – paradroid Mar 27 '12 at 14:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.