how to setup mulit-NIC Debian Host with NIC-per-VM

Discussions related to using VirtualBox on Linux hosts.
Post Reply
cordeg
Posts: 1
Joined: 6. Jan 2016, 19:49

how to setup mulit-NIC Debian Host with NIC-per-VM

Post by cordeg »

I have a Debian PC with multiple NICs and would like to have one or more Debian VMs each "owning" 1 physical NIC. The resulting network would be created by having the HOST eth0 (static IP) providing a DHCP server and each VM 1-N being assigned eth1-ethN and running dhclient. ALL NICs would be attached to an external switch along with some other external nodes, but the Debian PC would effectively emulate N+1 of the nodes on the overall network.

I assume that I need to use "bridged" networking on each VM, selecting the appropriate NIC (eth1-ethN) for that VM. However, on an initial attempt with a first such VM, it shows one NIC (physical eth2; virtual "eth0") with an IP address assignment that is in the right subnet but not within any of the pools defined for the DHCP Server (physical eth0), and I cannot ping the Host eth0 IP from the Guest "eth0".

Has anyone ever accomplished this "part of a network in a box" type of setup with VirtualBox and can explain how it can be done?
Post Reply