F
F
fa1xx2020-10-16 12:35:32
Debian
fa1xx, 2020-10-16 12:35:32

How to set up internal network in virtual box?

I installed debian on a virtual box and put an internal network in the adapter instead of nat. I booted the system and in ifconfig only localhost. What is the problem and how to set it up? I want to achieve a closed local network between 2 virtual machines, but inside the OS I don’t see the adapters added in the box.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zohan1993, 2020-10-16
@zohan1993

What exactly do you want to achieve?
An internal network, according to the VirtualBox manual, is "a software network that can be visible to selectively installed virtual machines, but not to applications running on the host or on remote machines located externally." Such a network is a set of a host and several virtual machines. But none of the above devices have output through a physical NIC - it's entirely software-based, used by VirtualBox as a network router. In general, it turns out a private local area network only for guest operating systems without Internet access, which makes it as secure as possible.

N
nihi1ist, 2020-10-16
@nihi1ist

fa1xx , must be configured in guest systems. By default, if there is no DHCP server on the network, the network does not rise, you can raise it manually or configure statics. On Debian, this is:
/etc/network/interfaces
PS The question is quite elementary, have you tried just looking at the list of available interfaces?
ip a

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question