I've setup a test environment that looks like:

  • modem/router connected to physical host
  • hyper-v manager running on physical host
  • Virtual Switch connected to external network
  • Two VMs (DC + client) connected to virtual switch

The DC has the following static config:

  • IP:
  • Subn:
  • Gateway:
  • DNS
  • External DNS added to 'Forwarders' within DNS Management.

Client config:

  • IP:
  • Subn:
  • Gateway:
  • DNS:


  • Client can ping router and DC
  • DC can ping router, cannot ping client
  • DC has internet, client does not

To my limited understanding the DNS query from the client should by forwarded by my DC to either the router ( or google dns It seems to do neither. Is the fact that i'm using a single NIC for all machines (physical and virtual) related to the problems im having?

  • The gateway on the client should, in normal situations, be the same as on the DC. Both DC and client are in the same subnet. If the modem/router is then use that as gateway from both machines. After that the first thing to test is: is there internet connectivity from the DC. Can you resolve DNS queries from the DC? The installation being virtual and sharing hardware should not be an issue. In this setup the client should use DC for DNS queries. The DC get's the info asked from it's cache or queries upstream ( to get the info requested – Gert Jan Kraaijeveld Feb 17 at 15:52
  • Setting the client gw to same address as DC didn't work at first which made me doubt. Apparantly the VPN on my physical host messed up NAT. Thanks for sending me in the right direction. – RockYoClock Feb 20 at 18:38

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.