Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.
  • My computer is configured to obtain a IP address automatically using DHCP.
  • It only has one network adapter.

How to configure an additional static IP address?

I found a tutorial for Windows XP, but the procedure didn't work for Windows 7.

Is it possible to configure two IP addresses on Windows 7, one being static e another being dynamic? How?

The dynamic address I got now is 10.17.11.162. The static IP is 10.17.30.19. The network mask is the same: 255.255.224.0.
Both work independently, but I don't know how to use both at the same time.

share|improve this question
    
Could you explain why having two addresses is useful? –  Isaac Rabinovitch Sep 19 '12 at 7:28

3 Answers 3

There are 2 tools to solve this Vista/Windows 7 issue, but after a DHCP refresh or cable replug, the settings are gone.

One tool is "Win IP Config", a graphical tool to add Internet Protocol addresses. The other one is iphelpcon.exe, a command-line tool (to put into Startup folder). The second tool uses the function AddIPAddress of the Microsoft DLL iphlpapi.dll.

http://www.pkostov.com/wipcfg.html

https://anonfiles.com/file/51c4fe4b6a42f3cb450228bd0c1dd50b

share|improve this answer
    
Gotta say that software distributed via an anonymous file sharing site makes me very nervous. –  Isaac Rabinovitch Sep 19 '12 at 7:26

Set the interface to be DHCP, then in a command window type:

C:\> netsh interface ipv4 add address "Local Area Connection" 10.17.30.19 255.255.224.0
share|improve this answer
    
Thanks, but it did not work. After setting to DHCP, the dynamic address 10.17.11.162 was ping'able, and the static 10.17.30.19 wasn't, as expected. After executing "netsh interface ...", the static IP was reachable but the dynamic IP was gone (even on ipconfig). –  tiago2014 Mar 1 '11 at 22:08
    
... And the GUI was again as if I had manually set the configuration to use a static IP address in it. –  tiago2014 Mar 1 '11 at 22:11
up vote 0 down vote accepted

Well, apparently Microsoft disabled configuring a network adapter with 1 static + 1 dynamic IP addresses at the same time on Windows 7.

share|improve this answer
    
Care to provide a verifiable reference for this presumption? –  Iszi Sep 11 '12 at 14:24

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.