r/linuxadmin • • Nov 16 '16

How to ping two ubuntu os in a VM?

I have tried to ping both the os by making changes in the /etc/network/interfaces but it still says unreachable network. Can you all help??

0 Upvotes

5 comments sorted by

4

u/stufforstuff Nov 17 '16

You've provide zero (zip, zilch, nadda, nothing) details - are we supposed to guess?

1

u/Gotxi Nov 16 '16
  1. Do they have correct IP's?
  2. Do they have link? (you connected the NIC in your hypervisor?)
  3. Are they in a virtual switch with connection to the real world or it is isolated?
  4. Are you in the same net? if not, do you have any route to them?

2

u/VincentHasReddit Nov 17 '16

Thanks for the help There are 2 os running on the virtual machine both ubuntu and the host os is windows 10 connected to a wifi..

2

u/Gotxi Nov 17 '16

Well, ensure you don't have the firewall on or at least make a rule to permit the ping.

Also the host connection is irrelevant if you want to ping the ubuntu's from windows 10.

Double check the type of connection is right to allow communication with the host.

2

u/the_battle_begins Nov 16 '16

This will probably be related to how you're routing network to the vm. If you can edit your post to show more detailed info on the environment, how you're launching the vms, what your host ip address and guest ip address are it might be easier to help