Page 1 of 1

Advanced virtual networking setup question

Posted: 17. Feb 2016, 15:43
by Cheffe
I would like to setup an advanced virtual network topology. I will use a Windows 10 (64bit) host with two physical network cards. One of those will be connected to the internet. I would like to create a single local network segment which is
* NATted to the internet
* can be accessed by multiple VirtualBox guests on the Windows host
* can be accessed by physical machines attached to the second physical network card on the Windows host
In picture:

Code: Select all

                            ------------------------
                            | Windows 10 Pro HOST  |
                            |      --------------- |
                            |      |    Linux    | |
                            |      | VBox guest  | |
                            |      --192.168.0.X-- |               physical
           |  |             |               |      |                 |  |
Internet--Switch--A.B.C.D-Eth1--vBridge--vSwitch--Eth2-192.168.0.1--Switch--
           |  |             |               |      |                 |  |
                            |      --192.168.0.Y-- |                hosts
                            |      |   Windows   | |
                            |      | VBox guest  | |
                            |      --------------- |
                            ------------------------
My question: Is there a relatively simple solution for this _without_ setting up a multi-NIC guest handling the NAT, and with the virtual and physical hosts being in the _same_ subnet?

Thanks in advance for sharing your ideas!

Re: Advanced virtual networking setup question

Posted: 17. Feb 2016, 19:33
by Martin
The easiest solution would be to use a small external NAT router, then you would evenn only need single physical network card in your host. :wink:

Re: Advanced virtual networking setup question

Posted: 17. Feb 2016, 19:42
by scottgus1
If you are intent on setting up system as in the diagram, use another guest with router OS like pfSense as the "vbridge + vswitch" in the diagram. Bridge the "WAN" port of the pfSense guest to Eth1, and the "LAN" port of the pfSense guest as well as the Linux guests to Eth2. All other PCs go to Eth2 as diagrammed. All traffic from the LAN and Linux guests go through Eth2 to pfSense to Eth1 and out to the web.

Scrath that. Just saw this:
without_ setting up a multi-NIC guest
Probably not in Virtualbox. There is a built-in multi-port NAT router (called "NAT network" in the network type dropdown) in Virtualbox. But it's only for Virtualbox guests, I believe. I don't think a physical NIC can attach to a "port" of this built-in NAT-service router.