-3

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.

liv2hak
  • 303
  • 4
  • 13
  • 25

1 Answers1

1

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.

jlliagre
  • 8,861
  • 18
  • 36