Forum Discussion
Windows 10 hyper-v default switch problems when VPN turned on
HotCakeX Thanks for your reply. I had gave it a try but instead using google DNS I used the exact same DNS as on my host which is my router gateway address. All was looking OK; the guest had the Internet connection and it was able to ping any web address.
Then I tried to start the VPN (L2TP/IPsec vpn) but the host was not able to connect. I was receiving rejections. I have deleted the external VNIC and I was able to connect to the VPN again. Seems like this configuration is breaking my VPN connection.
The other downside for this configuration is that I am switching the networks quite often; from cable to WIFI, from one WIFI to another and this configuration would require constant changes on my guest.
I have the same config and it's working fine for me. not sure if it's relevant but I'm on Windows 10 insider 18956.
i'm using custom DNS (cloudflare's) on my host and 3 VMs that i have (Windows server 2019 and Windows 10 pro). they all use the Same external virtual network adapter and they're all on the same subnet as my host, have static IP too which is mandatory for my servers.
my network adapter is a USB WIFI adapter. my VMs all have direct connection to the internet, whether or not my host is using VPN.
when you switch from WIFI to cable you just have to go to virtual switch manger in Hyper-v and attach your other network adapter to the external vNIC.
- kapalkatAug 13, 2019Copper Contributor
HotCakeX Thanks for your fast reply. What kind of VPN do you use?
The other thing about following:
"when you switch from WIFI to cable you just have to go to virtual switch manger in Hyper-v and attach your other network adapter to the external vNIC." and what about guest network configuration? I would need to change it as well.
- HotCakeXAug 14, 2019MVPYou're welcome,
I use IKEv2 and PPTP,
guest VM networks don't need any changes because they all see the same virtual adapter on their ends- kapalkatAug 14, 2019Copper Contributor
HotCakeX Thanks, I did the configuration one more time and it started to work....more or less:) As this time VMs have access to the Internet when the host VPN is turned on but they do not have access to resources provided by the VPN. Seems like the VM traffic bypasses the VPN.
Whole point of this configuration is to get both for the VMs; resources behind the VPN and access to the Internet.
I haven't explained this well at the first place.
I can confirm that your configuration is fine when VMs do not need access to host VPN.