I need to get the following scheme:
my computer should be in the 2 networks: in the a
real one network (for internet, it can be wifi or lan or something other) and the second
virtual network (where my pc is a member of virtual network).
Virtual machines must also have Internet access.
I did it easily, using vmware workstation:
- Creating network as NAT.
- Specifying gateway as 10.1.1.1 in the NAT settings (Virtual Network Editor).
- Specifying host ip 10.1.1.2 and gateway 10.1.1.1 in the virtual interface of host-machine (vmnet8).
- Specifying NAT in the virtual machines settings.
- Specifying the ip address like 10.1.1.x in the virtual machines.
Unfortunately my trial period has expired. So, I tried to do something similar with Virtualbox, but could not. If I specifying NAT in the virtual machine settings, I can get access to the Internet only, and did not see my real computer. It seems that the system only works with 10.0.2.x subnet and via dhcp only..
When I tried to specify virtual adapter, I was able to get a network connection between the real and the virtual machine. But the Internet did not work.
How can I get a working solution? Thanks.