can't ping between VMs on same host, different NICs

Discussions related to using VirtualBox on Linux hosts.
Post Reply
ronys
Posts: 12
Joined: 15. Jan 2009, 12:18

can't ping between VMs on same host, different NICs

Post by ronys »

Hi,

Setup:
Host with 2 NICs, connected between them via a cross cable. Host is running Debian Etch.
Guest #1 has Adapter2 defined as host-interface, eth0
Guest #2 has Adapter2 defined as host-interface, eth1

On the host machine, both interface are up and unconfigured.
On guest #1, the corresponding interface (eth1) is assigned 192.168.8.10
On guest #2, the corresponding interface (eth1) is assigned 192.168.8.11

Pinging from one to the other fails.

Sniffing on the host shows arp requests being sent but not replied, as well as unknown traffic:
14:30:28.270792 arp who-has 192.168.8.11 tell 192.168.8.10
14:30:28.270798 00:01:08:00:27:15 (oui Unknown) > 00:01:08:00:06:04 (oui Unknown), ethertype Unknown (0xa70a), length 28:
0x0000: c0a8 086e 0000 0000 0000 c0a8 080b ...n..........

The arp requests are not reaching the destination guest.

Any suggestions on how to get this to work welcome!

Thanks,

Rony
ronys
Posts: 12
Joined: 15. Jan 2009, 12:18

Problem resolved

Post by ronys »

Rebooting the host did the trick...
:roll:
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

Wouldn't it be easier to use Internal Networking instead of HIF if you only want the two VMs to communicate with each other? The Host won't know about the network that way either, so it might be safer for you ;). Unless you want to do some testing that needs the Host.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply