Static and DHCP address on same Interface
I have not been able to find an answer to this so I thought I would try here. On versions of Windows prior to Vista I was able to get both DHCP and a static address on the same adapter by going to the registry and adding the address and mask after the 0.0.0.0 entries. I have tried this in Vista with no luck. In fact Vista does not even seem to use the IPAddress or SubnetMask entries at all when DHCP is enabled. Not sure if it matters but this is Vista-64 Ultimate. Oh and I read the pre-release doc from Jan 07 that covers the new registry entries and it seems ato allude that this still works but I have not had any luck. Any idea if there is a way to achive this functionality in Vista? Thanks,C
November 12th, 2007 11:40pm

Hi, Why do you need a static and dynamic IP address on the same NIC? If you want to always get the same IP address on network A but want to be able to take your computer to network B, C, etc make a IP reservation on network A. That's what I would do. Mike Clarkehttp://mystyleit.comCLS, WSCP, MCP, MCTS, MCSA+M, MCSE+M
Free Windows Admin Tool Kit Click here and download it now
November 13th, 2007 12:23am

Sorry, no help. This has nothing to do with reservations as this PC is not moved. I know for a fact that this functionality was there in previous versions. Since it seems to be of interest I will clarify why I need this functionality. I need it so that a firewall that is in Transparent mode with an out of band private IP on it can be managed from the same PC that is getting a DHCP address from an outside server through the transparent firewall. In other words I defineately need two differnt IP's in different networks but one of these networks is DHCP enabled. I also have no control over the DHCP server or the DHCP subnet, I simply plug this machine into it. Without using a second adapter plugged into the same network my only only sollution is the dual IP scenario that worked beautifully in XP. Any help on how to do this, what has changed in Vista, etc. would be greatly appreciated. Thanks much, C
November 13th, 2007 12:53am

Sounds like a very unique problem you got there. No idea how to fix it with software. My fix would be to buy a switch and a second NIC. Put the data drop into the switch and connect the two NICs into the switch. Give one NIC the static IP and the other leave dynamic. Mike Clarkehttp://mystyleit.comCLS, WSCP, MCP, MCTS, MCSA+M, MCSE+M
Free Windows Admin Tool Kit Click here and download it now
November 13th, 2007 5:06am

Thanks, I realize there are many HW methods to acomplish this. If I really want to get creative I could use VMWare or the MS equivlant and run the virtual adapter in bridge mode and install a whole other OS just for this but I am looking for simplicity here and more to the point I am looking for functionality that was in previous OS's. The document I mentioned earlier is TCP/IP Registry Values for Microsoft Windows Vista and Windows Server "Longhorn", it was published in January as "Preliminary". You can still download it from MS and I can not find any more updated info. The following snippet alludes to the fact that things are as they were in XP or 2K. IPAddress Key: Tcpip\Parameters\Interfaces\interfaceGUID Value Type: REG_MULTI_SZlist of dotted-decimal IPv4 addresses Valid Range: Any set of valid IPv4 addresses Default: None Description: This value specifies the IPv4 addresses of the IPv4 interfaces to be bound to the adapter. If the first address in the list is 0.0.0.0, the primary interface on the adapter is configured using DHCP. A system with more than one IPv4 interface for an adapter is logically multihomed. There must be a valid subnet mask value in the SubnetMask value for each IPv4 address that is specified in this value. To add addresses with the Registry Editor tool, select this key and type the list of IPv4 addresses, pressing Enter after each one. Then, modify the SubnetMask value, and type a corresponding list of subnet masks. I can tell you for sure that in Vista (at least a fully patched install, as I did not check on the fresh install) that this is no longer true. The 0.0.0.0 is no longer set when DHCP is turned on and even if added manully with additional IP's afterwords seems to do nothing. This procedure is documented on the Web for previous OS's, so I must not be the only one to do this. http://www.petri.co.il/configure_tcp_ip_to_use_dhcp_and_a_static_ip_address_at_the_same_time.htm http://news.softpedia.com/news/Both-DHCP-and-Static-IP-addresss-at-the-same-time-47494.shtml So what MS said in their "preliminary" doc is definately not true. I am hoping someone on here has an MS tech contact that can verify this. I am hoping someone can give me a definitive yeah or nay on if this possible or not in Vista. It may be that I simply need to change a differant registry entry or it may be that this feature has been decremented. I really am just hoping for something definitve either way. I know there is Windows uber-guru on here somewhere with chi I require. Thanks much in advance to the master with the knowledge I need. Regards, C
November 13th, 2007 6:29am

Bump, I'm also in need of this feature.
Free Windows Admin Tool Kit Click here and download it now
February 6th, 2008 10:08pm

Any updates on this? I could do with this feature as well.
May 13th, 2008 3:39pm

I also need to do this.... works fine in XP.... stupid Vista...
Free Windows Admin Tool Kit Click here and download it now
September 19th, 2008 6:36am

Okay here's the deal. I develop applications which are targets to operate on a certain subnet. I need to configure static arrangements so I can setup static routes between peices, however, for my public interface, I want to have dhcp configured so that as I migrate between external network interfaces my interface can change along with it. This has never worked since windows 3.1. Yes at one point you could set a IP address in the registry as 0.0.0.0, and it would work for a while until you tried to reconfigure and add more static IP addresses. Please someone, the dhcp address should just add an additional IP like adding a regular IP, it is not a replacment for static IP which may be required in parallel.
November 16th, 2008 9:44am

This is something that existed in previous windows versions and is very much needed in Vista. Please someone knowledgeable chime in.
Free Windows Admin Tool Kit Click here and download it now
February 1st, 2009 1:54pm

I came here looking for the answer to the same question. I have static at home and DHCP at work so everytime I move my laptop to work and use DHCP my home setting are just lost and gone with the wind. Then when I get back home I have to reconfigure everything. It's so retarded not to have a feature of storing the configuration under a certain name like it's done in Mac OS X. And if that feature exists, it's so retarded to have it hidden to well. I mean seriously, this is the year 2009, do we really have to state the obvious here? Sometimes Microsoft is so disappointing. Eventhough I like Vista, it's obvious that Microsoft is not leading in the development department anymore, it's just trying to catch up with the others.
September 30th, 2009 4:31pm

Not sure if this is exactly what you are looking for, but it may get you started on the right track. http://news.softpedia.com/news/Both-DHCP-and-Static-IP-addresss-at-the-same-time-47494.shtml
Free Windows Admin Tool Kit Click here and download it now
October 5th, 2009 9:34pm

I am using xp sp3 instead of vista, but I am having another trouble ... With this trick I can successfully configure both dhcp and a static ip on my "wired" adapter, but I just cannot make it to work on my "wireless" adapter ;-( Anybody knows why ?? -- Many thanks, D.C.
January 5th, 2010 9:53pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics