Share via


VPN connectivity issue from Hyper-V host

Question

Sunday, July 19, 2020 8:43 AM

Hello team,

I am connecting to my office network through Cisco AnyConnect Secure Mobility Client in my laptop with Windows 10 Enterprise Version 1909.I am configuring the connectivity in my laptop to the client network , during that I am getting the error below

So I enabled the Hyper-V in my laptop and created one VM , same Windows 10 Enterprise Version 1909.But I am not able to connect to the VPN(office network) in my host (laptop), so I can be able to connect to my client VPN from the VM

Any help regarding this is greatly appreciated!

Best regards S.Swaminathan Live & let others live!!!

All replies (5)

Monday, July 20, 2020 3:05 AM

Hi,

When you have a VM under the Host, the VM can or may be configured to use Host’s Virtual VPN Network. Typically a VM will have to be configured to specify which host network adapter to use. In this case you will have to specify you are using the VPN Virtual Adapter. In this case the VM, will have the only option to ride on the VPN network. This is independent of what kind of networking you have chosen on your VM configuration such as Bridged, Host-only, etc. Of course choosing Internal network or choosing Bridged, Host-only riding on the default Ethernet gateway may not help establish a VPN on your VM. Some VPN connections may force all traffic on all networks now be re-routed via it’s virtual adapter. In that case not everything I said above will be true.

Essentially you may have to experiment a bit to figure this out for the said VPN, Hypervisor, VM Network configuration and any additional routing, gateway configuration you may want to throw in the mix. I have not tried this myself but this is how I would approach the issue. It’s entirely possible the VPN software will get “bent out of shape” once it sees MAC address spoofing that typically happens when you ride on a Host adapter with Bridged Network configuration. Try it out and let us know how it goes!

This "Windows 10 Networking" Forum will be migrating to a new home on Microsoft Q&A, please refer to this sticky post for more details.

Best regards

Cherry

"Windows 10 Networking" forum will be migrating to a new home on Microsoft Q&A!

We invite you to post new questions in the "Windows 10 Networking"  forum's new home on Microsoft Q&A!

For more information, please refer to the sticky post.


Monday, July 20, 2020 1:18 PM

Hello,

Followed the link https://win10.guru/hyper-v-virtual-machine-use-host-vpn-connection/?replytocom=1885#respond

and configured the vpn in vm. But did not ping the site in VPN.

I manually created the route to the vpn network inside the vm and after that the vm is pinging the website in the VPN network but getting the below page

Any advice please....

Thanks & and regards S.Swaminathan Live & and let others live!!!


Tuesday, July 21, 2020 6:38 AM

Hi,

Please follow the steps below:

1. Open Hyper-V Manager.
2. Select “Virtual Switch Manager…” from the Actions pane.
3. Select “New virtual network switch” from the tree list on the left.
4. Reboot the Hyper-V host.
5. Open each VM’s settings and go to the network adapter(s).
6. Change the vmSwitch to the one created in step 3.
7. Start the VM.
8. Connect to VPN on the Hyper-V host.
9. Test connectivity. 

This "Windows 10 Networking" Forum will be migrating to a new home on Microsoft Q&A, please refer to this sticky post for more details.

Best regards

Cherry

"Windows 10 Networking" forum will be migrating to a new home on Microsoft Q&A!

We invite you to post new questions in the "Windows 10 Networking"  forum's new home on Microsoft Q&A!

For more information, please refer to the sticky post.


Tuesday, July 21, 2020 6:15 PM

Hi all,

Finally the issue got resolved after removing the 3rd party Antivirus and kept only the native Windows defender and the issue got fixed with the default switch itself .

I complicated myself following the other solutions provided in the web

Thanks for all the help........

Thanks & and regards S.Swaminathan Live & and let others live!!!


Wednesday, July 22, 2020 1:16 AM

Hi,

 

I am glad to hear that your issue was successfully resolved. If there is anything else we can do for you, please feel free to post in the forum.

This "Windows 10 Networking" Forum will be migrating to a new home on Microsoft Q&A, please refer to this sticky post for more details.

Best regards

Cherry

 

"Windows 10 Networking" forum will be migrating to a new home on Microsoft Q&A!

We invite you to post new questions in the "Windows 10 Networking"  forum's new home on Microsoft Q&A!

For more information, please refer to the sticky post.