Bridge host NIC into virtual network

Discussions related to using VirtualBox on Linux hosts.
Post Reply
oTR
Posts: 1
Joined: 18. Oct 2020, 15:53

Bridge host NIC into virtual network

Post by oTR »

Hi
I'm wondering about solution of this network issue. I got Debian linux based host with two NIC cards: eth0 and eth1. There's also two Virtual machines:

1. With 2 Virtual cards, 1st NATed to physical eth0, 2nd into virtual network 'intnet'
2. With 1 Virtual card into 'intnet'

I want to bridge eth1 from my host into 'intnet'. Is that possible?
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: Bridge host NIC into virtual network

Post by scottgus1 »

You can always add another network card to guest 1 or 2, using Bridged to eth1. But you'd have to make a Linux "bridge" inside the guest OS to connect the guest's new card into 'intnet'. Linux "bridges" are not the same as Virtualbox Bridged, and I have tried making a working Linux "bridge" and have never succeeded.

Bridged puts the guest network card into the physical LAN being Bridged to, with the default option to get IP address from the LAN. See Virtualbox Networks: In Pictures: Bridged Adapter

Is the ultimate goal to have 'intnet' be part of the LAN, so that 'intnet' gets IP addresses from the LAN? If so you might be able to skip 'intnet' and just put another network card into both guests, Bridged to eth1.
Post Reply