Ping not working with internal networking, two linux guests
Posted: 18. Jun 2012, 04:42
Hi,
I'm a newbie both to VirtualBox and Linux Fedora/Ubuntu (I'm trying both). My goal is to explore Eclipse/gcc cross development tools between two VirtualBox Linux boxes before moving to doing the same thing between a Linux guest and real embedded Linux HW (probably a PandaBoard). But I can't seem to get to first base exploring the ecosystem and tools.
As a first step, I'm trying to get two Linux guests two see each other under Internal Networking. I'm using two network adapters in VirtualBox for each guest, one to support NAT (for internet access) and one to support Internal Networking (for inter-guest communication). Both guests' adapters for internal networking are set to the same internal network name.
First I tried to get DHCP working for that internal network using vboxmanage, but didn't seem to work. So I manually assigned network addresses for each guest: 10.0.2.100 and 10.0.2.101. Each guest can ping itself when both guests are running. But neither can ping each other. I read a few posts on this forum where Windows hosts having the same problem, in this case the cause seemed to be that ICMP is not enabled by default in Windows. But although I was not able to easily determine how I enable/disable ICMP for Linux, my google searches didn't seem to indicate that ICMP is disabled for Ubuntu (for Fedora it's not as clear). So if this is true, then why can't I ping my Ubuntu guest from my Fedora guest?
How in tarnation do I debug this problem so that I can get to the next step?
Thanks much in advance for any help!
- Andy
I'm a newbie both to VirtualBox and Linux Fedora/Ubuntu (I'm trying both). My goal is to explore Eclipse/gcc cross development tools between two VirtualBox Linux boxes before moving to doing the same thing between a Linux guest and real embedded Linux HW (probably a PandaBoard). But I can't seem to get to first base exploring the ecosystem and tools.
As a first step, I'm trying to get two Linux guests two see each other under Internal Networking. I'm using two network adapters in VirtualBox for each guest, one to support NAT (for internet access) and one to support Internal Networking (for inter-guest communication). Both guests' adapters for internal networking are set to the same internal network name.
First I tried to get DHCP working for that internal network using vboxmanage, but didn't seem to work. So I manually assigned network addresses for each guest: 10.0.2.100 and 10.0.2.101. Each guest can ping itself when both guests are running. But neither can ping each other. I read a few posts on this forum where Windows hosts having the same problem, in this case the cause seemed to be that ICMP is not enabled by default in Windows. But although I was not able to easily determine how I enable/disable ICMP for Linux, my google searches didn't seem to indicate that ICMP is disabled for Ubuntu (for Fedora it's not as clear). So if this is true, then why can't I ping my Ubuntu guest from my Fedora guest?
How in tarnation do I debug this problem so that I can get to the next step?
Thanks much in advance for any help!
- Andy