Help with setting up the right network

This is for discussing general topics about how to use VirtualBox.
Post Reply
Guvner
Posts: 1
Joined: 5. Nov 2015, 14:27
Primary OS: Debian Wheezy
VBox Version: OSE Debian
Guest OSses: Debian Wheezy/Jessie

Help with setting up the right network

Post by Guvner »

I'm trying to setup a host with several guest on it. So far nothing special. But what I need to have is a connection to two seperate networks outside the host.

Code: Select all

       Host    
  Nic1     Nic2
   |        |
vNetwork vDomotics

    Guest[1-4]               Guest[5-9]
  Nic1      Nic2           Nic1      Nic2
   |         |              |         |
vNetwork vDomotics       vInternal vDomotics
So in total I will have 3 networks.
vNetwork:
Network that lives inside and outside the host. This is my normal network with internet connection etc.

vDomotics:
Network that also lives inside and outside the host. This network is used for ip camera, temperature sensors, door sensors etc. For security there is not internet connection on this network.

vInternal:
This network only exists inside the host and is for Guests 1-4 to talk to the other Guests 5-9.

I know this could be done in vmWare, but I'm quite new to virtualbox and would like to make this setup work.

Could anyone point me in the right direction?
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Help with setting up the right network

Post by scottgus1 »

Take a look at the manual, section 6, Networking. There's several forms of network connections you can make in Virtualbox. Bridged and Internal are likely going to be what you'll need to set up your arrangement.

Each guest can have up to 4 virtual NICs in it that are easy to set up in the guest Settings GUI. You can have between 4 and 32 more NICs, depending on chipset, (total of 8 or 36 per guest) but these are all command-line setup. You should not need that many for your project. I would anticipate you'll need two NICs in some of your guests and maybe three in others.

For the guests that can access the internet you bridge one virtual NIC to your internet-connected host NIC.

For the guests that can access the security network you bridge another virtual NIC to your host secondary security-system NIC.

Guests which are bridged to the same host NIC can also communicate with each other through that host NIC (All guests bridged to one host NIC will be on the same network as the host NIC is). If you need a separate communication channel between guests that have internet access and guests that don't, you'd have another Virtual NIC in each guest attached to an Internal network.
Post Reply