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 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

1 Answer 1

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:

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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.
{"cc_re__cc_re__cc_by_sa_3_0": ["                  <li><a href=\"//area51.stackexchange.com\" title=\"proposing new sites in the Stack Exchange network\">Area 51</a></li>\r\n                        <li><a href=\"//careers.stackoverflow.com\">Stack Overflow Careers</a></li>\r\n                    \r\n                </ol>\r\n            </td>\r\n    </tr>\r\n</table>\r\n                </div>\r\n            </div>\r\n\r\n            <div id=\"copyright\">\r\n                site design / logo &#169; 2015 stack exchange inc; user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc by-sa 3.0</a> \r\n                with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n            </div>\r\n            <div id=\"svnrev\">\r\n                rev 2015.4.24.2525\r\n            </div>\r\n                <div id=\"additional-notices\">\r\n                    Ubuntu and Canonical are registered trademarks of Canonical Ltd.\r\n                </div>\r\n            \r\n        </div>\r\n    </div>\r\n    <noscript>\r\n        <div id=\"noscript-wa"], "copyright__copyright__copyright": ["ion\n\n1 Answer 1\n\nI 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!!!\n\nIn VM, Settings>Network: Attached to: Bridged adapter:\n\nThen, your modem(router, etc...)'s DHCP will give an IP for the Virtual Machine.\n\nIf I didn't understand your problem well, please notify me via comment! :)\n\nshare|improve this answer\n\nYour Answer\n\n\u00a0\ndiscard\n\nBy posting your answer, you agree to the privacy policy and terms of service."]}