I'd like to be able to have a reliable IP address for my host (which is Windows 10 and the machine running hyper-v) on the internal network hyper-V creates. By default, the host gets an IP (via what I originally thought was DHCP, but I now understand to be APIPA/auto-IP) on the internal network of the form 169.254.x.x with a subnet mask.

I could just give it a static IP address in the adapter properties, but I've no idea what range of IPs are dynamically assigned, so I worry the static IP I pick could be dynamically assigned to a Hyper-V VM.

If I was on Windows Server, there'a a GUI and cmdlets to control DHCP server stuff, and I'm guessing I could apply those to the local DHCP server that is running on the host. But I'm not. Is there any way to create DHCP reservations for MAC ranges on the internal network on Windows 10? Or any way to know the range of IPs the internal adapter will use so that I can pick a static IP safely?

  • "I have no idea what range of IPs are dynamically assigned" - You should know this, you indicated the host is assigned an ip address within the 196.254.x.x subnet. You will need to determine and provide the exact subnet configuration of the DHCP server to answer your question – Ramhound Jun 22 '17 at 18:18
  • Right - but I've no idea how I can get at this information. Hyper-V/Windows 10 is running a dhcp server, and I can tell it's offering IPs on the 169.254.x.x subnet just by looking at adapter properties in ipconfig. But how/where this dhcp server is configured is really the gist of my question. – aggieNick02 Jun 22 '17 at 18:37
  • You defined the ranage when you added the DHCP role. If you mean the Windows 10 VM is acting as the DHCP server, then you have to provide more details, because Windows 10 doesn't normally have that capability. – Ramhound Jun 22 '17 at 18:44
  • Windows 10 is on the machine running Hyper-V (not a VM). I'll edit to reflect. – aggieNick02 Jun 22 '17 at 18:50
  • I understand you are running a VM, and that VM is the DHCP, and I would assume its running Windows Server. The host i understand is Windows 10. – Ramhound Jun 22 '17 at 18:51

I think I understand this better now. All the generated IP addresses for the virtual network (both host and VM) are APIPA/link-local, so there isn't actually a DHCP server running anywhere.

It sounds like the algorithm for generating these addresses actually checks to make sure that the address isn't in use elsewhere on the subnet, so I think I'm actually fine just using any static IP in the to block.

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.