Cant ping Vbox guest from host but can ping it from other devices on network?

1

Host OS: Fedora 17 with Virtual Box with IP 10.51.49.6 Guest OS: CentOS 6.3 with IP 10.51.49.13

Guest networking mode is set to Bridged to eth0 on Host but what I cannot do is connect from Host to Guest or Guest to Host. I can connect to/from Guest from/to any other device on the network however.

I did some traffic captures and it looks like .6 does not know the MAC address of .13 and cannot learn it. What would prevent it from doing that?

Lukasz

Posted 2013-06-06T18:39:55.763

Reputation: 349

Answers

0

What we have done to solve this problem is to create two network adapters on the guest virtual machines. One for the public connection to the outside world and one for the internal connection from host <-> guest.

Keep your first interface the same as it is now.

Create a second interface with the type: Host Only.

Important NOTE: If you have never created a host only adapter, you must do this before you create the Host only interface in the guest. Go to File -> Preferences -> Network, then add a host only network. You may want to confirm that DHCP is enabled on this interface at the same. This will create the interface on the host system so it can communicate with the guest systems.

Boot up the guests and you should see two interfaces. The first interface, probably eth0 in your setup, should be your bridged network adapter. The second interface, probably eth1, should be your host only adapter. In my setup this is a 192.168.x.x address. On the host OS, a new interface was created called vboxnet0 this should also have a 192.168.x.x network. All of these together will give you the ability to talk with each other internally.

Jason Murray

Posted 2013-06-06T18:39:55.763

Reputation: