@Saiful-Hussain said in Domain with Internet access on Windows 10 Hyper-V:
I am having problems setting up a Lab network on Hyper-V that also has access to the Internet.
So far I have set up a Windows Server 2012 virtual machine as a Domain Controler/DNS Server and the Switch on the Hyper-V Manager is set up as an External.
The Server 2012 looses internet connection soon as I give it a static IP address.
Go to the settings of the Virtual Switch Manager in Hyper-V and check that the Virtual Switch is set to
External If not, you may have to switch it external or...you could create a new virtual switch call it (Ext-Test) and make sure that it is also set to your physical network adapter and that
Allow Management Operating System to share this network adapter to be checked`. Then click apply and ok.
Then make sure that your VM is connected to this virtual switch that you just created in the VM settings. When you do so, you should see that your VM will end up with a DHCP address from your actual physical network. If you see that, then you can statically set an IP address, Subnet Mask, Default Gateway and DNS address that would be available on your physical network.
**if the post above has answered the question, please mark the topic as solved.