Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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>

eg.

netsh int ipv4 set address "Local Area Network" static 192.168.1.100 255.255.255.0 192.168.1.1 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
add comment

Your Answer

 
discard

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.