I faced today a problem with setting up a working "work-place" with 4 PCs and one virtual machine placed on the one of the PCs.

I managed to go through the connecting PCs through switch into the same LAN network and after a few tweaks I also managed to provide internet connection - one of the 4 PCs has a modem connected to it (via USB) - it reads it as an ethernet connection - and I had to provide that internet to the rest of the computers. After these steps everything was working fine - all the PCs could ping themself and PCs without a mobile modem also had an actual internet connection.

The problem came up when I was supposed to connect "another-like" PC using Hyper-V with virtual Windows Server 2016 on it. I couldn't get it working - I mean I managed to put through the internet from the host into the VM Windows Server - but its IPs had to be set automaticly, because when I was trying to set it manualy (in order to get VM working in the same LAN network where all the 4 PCs where already working) - it simply lost an actual connection with the network and the rest of the PCs (besides the host PC) couldn't ping the VM - as it wasn't in the same LAN network.

I have two ways of making a virtual network in Hyper-V - one is to turn the mobile modem connected to the one of the PCs (the host) into a virtual one or trying to make a virtual ethernet connection - just like the rest of the 3 PCs are connected (via switch) - but I couldn't get it working in the both cases.


I've made a simplified representation of how does it look like. PC4 has a mobile network with internet connection. All 4 PCs are connected via switch and are in the same LAN network (ethernet1) and moreover - these take the internet from PC4 (thanks to the mobile modem - called Ethernet2). Now I launched VM in Hyper-V on PC4 - it needs to take the internet for itself and still to be in the same LAN network as rest of the PCs (it should act as PC5 actually for example). Now in Hyper-V I have two options - to make a virtual switch with Ethernet1 (LAN) or Ethernet2 (Modem) - but I couldn't make work none of these. So maybe someone could at least give a lead of how IPs and Gateways should be set - or what exact settings in Hyper-V should be done? Sorry to be so novice but it's actually my first try with something like that - never done it before.

  • A virtual switch including the LAN should work. What went wrong when you tried to do that? – David Schwartz Jul 10 '19 at 5:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.