Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I need some help. I'm completely new to Linux. I'm trying to set up the following scenario:

+-----+eth0       +-----+               +---+
| VM2 |-----------| VM1 |---------------| H |
+-----+ eth1      +-----+eth0 (NAT)     +---+

VM2 - Virtual machine from Virtual Box, using Ubuntu VM1 - Virtual machine from Virtual Box, using Ubuntu: I want this to act as a NAT. H - Host, my Windows Vista

  • The dots were just added since after saving the spaces disappear.

So if I ping H from VM2, H would receive a different IP address from VM2. Could you give me a step by step on this?

All machines are of course 32 bit.

Thanks. Would appreciate the help so much.

share|improve this question
Could you rephrase what you are trying to do? Do you mean the VMs should have an isolated network inaccessible from the host, and one VM should route out through the other? – misterben Nov 12 '10 at 9:16
It's really hard to understand what you want. What are the eth, network cards?. Can you update the question with a real picture and add more data? – Javier Rivera Nov 18 '10 at 11:09

I think, you made a difficult system... I did more easyer system in the past, and I can say, that you have to use Bridge networking mode!!!

In VM, Settings>Network: Attached to: Bridged adapter: Bridge illustration

Then, your modem(router, etc...)'s DHCP will give an IP for the Virtual Machine.

If I didn't understand your problem well, please notify me via comment! :)

share|improve this answer

Your Answer


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