Answer the question
In order to leave comments, you need to log in
How to set up a local area network with Internet access in VirtualBox?
There are two virtual machines on Linux, you need to set up a LAN with access to the Internet. I manage to set up a local network, but only one computer has access to the Internet. And I don’t know how to make the second one enter
Answer the question
In order to leave comments, you need to log in
In both virtual machines to put Bridged networking ??
with different macs and assign them different ip
You need to follow a few simple steps
1) In the virtualbox itself File->Settings->Network->NAT Networks --- add a network and configure it (DHCP, CIDR, etc.)
2) For each virtual machine, select the connection type "NAT Network" and network name from the 1st paragraph
3) In each guest system (your virtual Linux) for the network adapter, specify the receipt of IP and gateway via DHCP.
All this can be done both in the GUI and on the command line. The result should be an isolated network between virtual machines with Internet access.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question