I'm trying to establish a route between my local machine (LM) and a VirtualBox VM (VM, create with Vagrant and configured with Host-only Networking
) running on a remote server (RS). The setup is as follows:
LM (OS: Windows 7, IP: 192.168.2.8)
VM (OS: Ubuntu server 14., IP: 192.168.50.4)
RS (OS: Ubuntu server 14., eth0: 192.168.2.204, vboxnet0: 192.168.50.1)
I tried to add the following route to my local machine:
route add 192.168.50.0 mask 255.255.255.0 192.168.2.204
But I can only ping the second interface (i.e. 192.168.50.1) of the remote server and cannot reach the VM. How I could fix this?