configure Linux guest as router

Discussions related to using VirtualBox on Windows hosts.
Locked
danniRaven
Posts: 1
Joined: 25. Jun 2009, 05:36
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu

configure Linux guest as router

Post by danniRaven »

I very recently had my first experience using the Linux OS Ubuntu. I have three guests installed on my computer VirtualBox (all Ubuntu) the third of which needs to be configured as a router connecting the first two to each other and controls traffic from them to the host. I have been told Linux routes by default you just need to turn something on however I don't know what to do. All the googling I've done has lead to search results with three physical machines, NIC cards, and an actual router. How would I go about it if they are all virtual machines? Any help would be much appreciated. Thanks!

Danni Raven
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: configure Linux guest as router

Post by fixedwheel »

Hi, this is nothing special with Virtualbox guests, assign virtual NICs to the router VM as needed. One would be bridged (or NAT) - the other ones connected to the "internal network" where the other Ubuntus VMs are connected to.
All the googling I've done has lead to search results with three physical machines, NIC cards, and an actual router.
hmm ...the first hit googling ubuntu router setup shows how to set up Ubuntu acting as router https://help.ubuntu.com/community/Router
benynug
Posts: 4
Joined: 25. Jun 2013, 11:56

Re: configure Linux guest as router

Post by benynug »

fixedwheel wrote:Hi, this is nothing special with Virtualbox guests, assign virtual NICs to the router VM as needed. One would be bridged (or NAT) - the other ones connected to the "internal network" where the other Ubuntus VMs are connected to.
I have the same problem, and I already assign 2 NIC in the router VM, both are host-only.
but still that VM does not work as a router, it can only connects to other VMs, but it can not make the other VMs connected with each other. Any solutions?
Thanks.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: configure Linux guest as router

Post by noteirak »

Cross posting is not allowed, and I already gave you a full answer, both in your topic and in PM.
Locking this topic.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Locked