Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

My host machine is in a 192.168.2.0/24 subnet and I wanted to set up a 10.0.0.0/8 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 vyatta.org –  raspi Sep 18 '11 at 17:35

1 Answer 1

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

 
discard

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.