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

Is there a way in VirtualBox to turn off the default routing functionality offered and have one of the VMs act as a router. Below is how my setup looks like.

I want to make the OpenBSD (VMrouter) to switch packets between the two subnets. I'm doin this to get an understanding of how this all works basically.

Networking mode for all VMs : Internal Network

    |       |        |
  VM1    VMrouter   VM2

VM1 -> CentOS VM2 -> BT5.0

VMrouter ->OpenBSD` acting as a gateway router with two VNICs one for each subnet.

share|improve this question

I think you can do this by using the Internal Network option available as an Attached to: option for the NIC.

Image of the network adapter

Give your VM1 a NIC in intnet1, give your VM2 a NIC in intnet2 and give your VMrouter a NIC in both of the intnets so it can route between the two.

share|improve this answer
Lain, thanks for the info. That is exactly how I'm having my setup though. I knew VirtualBox would route the packets between subnets. However, I would like to turn off that feature and make one of the VMs acts as an L3 router. – Pravin Oct 9 '11 at 11:15

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.