Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 1 down vote accepted

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.

share|improve this answer
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
Works!! Thank you!!!!!! – edotan Mar 27 '12 at 15:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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