N
N
naruto_hokagi2017-04-06 22:42:14
linux
naruto_hokagi, 2017-04-06 22:42:14

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

3 answer(s)
V
vman, 2017-04-06
@vman

set network connection type: NAT

P
pfg21, 2017-04-06
@pfg21

In both virtual machines to put Bridged networking ??
with different macs and assign them different ip

D
Daemon23RUS, 2017-04-07
@Daemon23RUS

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 question

Ask a Question

731 491 924 answers to any question