Hyper-V – Configuring Pass-Through DHCP on Windows 10

dhcphyper-vnetworkingvirtual-machineswindows 10

I've created a windows Hyper-V VM on a Windows 10 (X64) 2004 Pro host.
I'm using the Hyper-V manager console, and the VM is working fine and has internet connectivity when using the default switch.
I'm trying to configure it so that the VM receives IP address and gateway from the network DHCP, not from the Hyper-V.
I've used the Virtual Switch Manager to create an 'external network' using the same NIC, but I can't find where to set the DHCP request from the VM to a "Pass through" mode so that it can access my LAN resources.

My LAN subnet is 192.168.x.x, and the VM receives an IP of 172.20.x.x from the Hyper-V DHCP I assume and therefore can't access my network resources.

Your advice will be highly appreciated.

Best Answer

A virtual switch acts exactly like a switch; if it's of the "external" type, it will be connected to a physical NIC on the host system, and it will use it as an uplink to the physical network.

You don't need to configure anything for DHCP to work; if it's available on the physical network, it will be available to any VM connected to this virtual switch.

Related Topic