(I)- I have a VPS with VT CPU declared. (Windows server 2012 r2 Datacenter)

(II)- So, installed a nested VM in Hyper-v Manager. (Windows 10 Enterprise)

(III)- Created an External Switch:↓ enter image description here

(IV)- With this settings in Host (Windows server 2012) enter image description here

enter image description here

(V)- VM Settings: (Win10-1)↓ enter image description here

enter image description here

(VI)- But no internet access! In case of Default gateway has pinged and folder sharing is true. enter image description here

What is the problem, internet access of my VM (Win10-1)?

Any helps are appreciated.



1 Answer 1


The VM has an IP address of and its gateway is

While the address does belong to the host, it is not on the same network segment as the VM, so is unreachable from the VM. The VM can only use for the gateway IP addresses from the network of 10.10.1.x.

The host has two IP addresses: and

You need to use as the gateway for the VM the IP address that is on the same network segment, which in your case is

(Note: In the usual case the host should be and the VM some other 10.10.1.x, so it seems that IP assignments here are somewhat reversed.)

  • The answer does not true. My host in situation with above IP assigned with ISP and that is my principle and I can not change. I can only change in VM IP address setting. Please revert your answer.
    – mgae2m
    Apr 27, 2020 at 21:06
  • That's what I mean : Set the gateway of the VM to
    – harrymc
    Apr 28, 2020 at 6:33
  • The VM cannot access directly the internet, it can only access the internet by going through the host. It's the host that has the direct contact to the internet. The VM needs to use the host as the gateway and that's why the host is available on its subnet. The host address is on that subnet, and that's the gateway for every computer on the subnet of 10.10.1.x including the VM.
    – harrymc
    May 3, 2020 at 6:53

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.