Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

migrated from serverfault.com Jun 6 '13 at 20:43

This question came from our site for system and network administrators.

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.