Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have an Ubuntu guest installed in VirtualBox with two virtual network adapters : Internal network adapter + Bridged Adapter. The bridged adapter is using DHCP for connectivity configuration and works well. The internal network adapter is configured manually so i can simulate a cross cable connection with another Ubuntu guest and also works well. The internal network adapter has this configuration :

IP :
GW : --
DNS : --

My router is providing to the bridged adapter an IP in the range (actually it has I am using Virtualbox on windows and I have two Ubuntu guests and I want to be able to ping from the bridged adapter to the internal network adapter and viceversa on the same virtual machine because right now I can not do it (I can not ping eth0 from eth1 or the opposite). Basically I want to establish my Bridged adapter IP as the internal networks adapter gateway so any traffic coming from my internal network (the other ubuntu guest) through the internal network adapter can reach internet. Here is my complete scenario :

Windows Host <--- Bridged Connection ----> Ubuntu Guest 1 <---- Internal network ---> Ubuntu Guest 2

My "Ubuntu guest 1" can access internet through the bridged adapter correctly. Between "Ubuntu Guest 1" and "Ubuntu Guest 2" I can ping in both directions and captures traffic in Wireshark through the internal network adapters that both VMs have. I am only missing the interconnection between the adapters in my "Ubuntu guest 1" as explained.

share|improve this question
If you want to understand this, not only a quick and dirt solution, you should do some research into basic IP networking. If you just want the setup and the commands I can answer this, but it's not going to help you to understand it. –  Javier Rivera Feb 26 '13 at 8:33
I already know the basic IP networking, i was just asking if Ubuntu automatically interconnect the two adapters somehow. Anyway i think i am going to put my two interfaces in Ubuntu guest 1 in two different sub-nets and configure the routes between the two of them. –  Youssef Khloufi Feb 26 '13 at 22:15
This is the only way. If you put both NICs in the same network (using bridge) this will be a very different topology from what you describe. –  Javier Rivera Feb 26 '13 at 22:49
add comment

Your Answer


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

Browse other questions tagged or ask your own question.