How to share host VPN connection with VM instances in Hyper-V?

I am running my workstation on server 2008 and several servers in Hyper-V VM on this server. I connect to my corporate LAN using a VPN from the main OS (host), but my virtual machine does not see the servers in the corporate LAN. Internet and local access to my home network are working fine. Each of the virtual machines has one virtual network adapter.

What should I try to make it work?

Perhaps I need to provide more detailed information, please ask if necessary.

More details:

  • Cannot start multiple VPN connections.
  • do not use NAT through the host
  • VM receives an IP address from a home network router (DHCP)
+5
source share
4 answers

As I said, you need to configure some routes. Add a route to your corporate LAN through your host as a gateway. Just the fact that you tell me that he gets it from home, DHCPP tells me that this is a problem. Your virtual machine only sees 1 default gateway, and it is on the Internet. The VM has no idea that the host has a VPN. Adding this route (on VM machines) triggers any requests that your virtual machine makes to the subnet of your corporate network for routing through your host, not your home router.

Add something like this:

route ADD 10.0.0.0 MASK 255.0.0.0 192.168.1.30

: , 10... *, IP- 192.168.1.30. 10.0.0.0 corp lan 192 ip IP- . .

+3

VPN ? Windows VPN ?

VPN- , .

, , .

+1

. , , , vm.

, , , VMWares ? , .

0

- . , . , , , . , . ? , .

, , VM, .

, , VMWare. , , . , . , NAT , VPN . .

0
source

All Articles