Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My host machine is in a subnet and I wanted to set up a network with various hosts in VirtualBox that talk to each other. So VirtualBox should act as a router between those two networks. Now in VB I have the choice between bridged network which wouldn't work and NAT which I don't want, since I just want to have a normal subnet without NAT.

How could I achieve this? Is it possible?

share|improve this question
Try Vyatta for example – raspi Sep 18 '11 at 17:35
up vote 3 down vote accepted

VirtualBox alone will not function as a router. You will need an additional application on a virtualized instance to handle that. Any of the firewall OS packages or any OS that can be configured to route can be virtualized within VirtualBox to accomplish the routing - Vyatta and Smoothwall are some of the common OS packages. Just enable two NICs for that VM, one bridged and another for Internal Network. The other VMs can then also be placed on the Internal Network.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.