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

I have two virtual machine running on a virtual box.

VM 1 and VM 2

The network is in the NAT mode (default).

Both the machines have the same IP address.So I assume that they are in two different networks.

My requirement is that I should be able to communicate from VM 1 to VM 2 using IP. i.e I would like to ping from VM 1 to VM 2 and back.

For this I would prefer if they were a part of the same network.Is there some routing functionality implemented in Virtual Box?

How do I created and internal network with two VM's that can talk to each other using IP.

share|improve this question

marked as duplicate by jlliagre, Falcon Momot, MadHatter, Jenny D, Rex Nov 6 '13 at 15:36

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

why the negative score? – liv2hak Nov 6 '13 at 7:00
virtualbox, and in particular this networking implementation with it, is hardly suitable for production, despite its vendor's vehement insistence to the contrary. – Falcon Momot Nov 6 '13 at 7:17

You can configure VirtualBox for the VM to have different addresses but that would have no effect on the fact they cannot ping each other.

NAT is designed to allow outgoing traffic from the VM, not incoming one.

Just use any other networking mode.

share|improve this answer
In other networking mode's I can't seem to get the connection for some reason. – liv2hak Nov 6 '13 at 7:11
I am guessing there is no DHCP server running on my home network to assign ip addresses in a bridged network. – liv2hak Nov 6 '13 at 7:18
If you are using VirtualBox at home, you are in the wrong site. serverfault is for professional admins. – jlliagre Nov 6 '13 at 9:55

Not the answer you're looking for? Browse other questions tagged or ask your own question.