I have two VMs in VirtualBox, one Ubuntu 16.04 and one Android-x86 32-bit. I have set both of them to be on the same internal network.

In the Android VM, I ran the following (using Alt-F1):

android:~ # ifconfig eth0 netmask up

I can see the IP address being set in ifconfig, and the interface is "UP BROADCAST RUNNING MULTICAST". Moreover:

android:/ # ip route get dev eth0  src  cache

This does not work:

android:/ # ping
connect: Network is unreachable

But this does:

android:/ # ping -I eth0
PING ( from eth0: 56(84) bytes of data.
64 bytes from ...

I never could manage a ping from the Ubuntu VM ( It just doesn't print anything and says 100% packet loss on termination.

Any idea why this happens?

Edit: I realise that if I use the Terminal Emulator from inside Android itself, as a normal user the command ip route get returns RTNETLINK answers: Network is unreachable.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.