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.

I am having hard time getting a bridged network to work with VirtualBox. The idea is to have the host as well as one or more guests on same LAN.

Using NAT (default) I do get access to the Internet and any node on the LAN when working from one of the VM guests. However, no LAN node including the host can access (or ping) guests in the VM.

I need to be able to use any guest as if it was a physical computer on the network (need to be accessed by any machine on LAN). According to my understanding of the VirtualBox documentation, this should be Bridged mode.

I think I set it correctly, well, actually there is not much to it:

  1. Select Bridged mode in VM network setup
  2. Select physical NIC of the host to connect the bridge to
  3. Start VM

When I do this, each VM does get new IP address that corresponds to LAN settings:

192.168.1.100
192.168.1.102
192.168.1.103

where host is 192.168.1.80 / 255.255.255.0 (IP addresses above 100 are served by DHCP server).

This seem to be correct based on what I know about Ethernet. From the VM I can ping other nodes like 192.168.1.50 and I still get Ethernet access.

However I STILL cannot ping any of the other VMs (those that are running, of course). I cannot ping them from other VMs, from the host or from other nodes on the LAN. Aside from fact that IP addresses handed to guests are now local, this still acts the same as the NAT setup.

What is going on? What am I missing?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

If the VMs you cannot ping are not using bridged networking, then you can't ping them because they are behind virtual NAT routers.

If they are using bridged networking, then their operating systems may have firewalls turned on.

share|improve this answer
    
DOH.... yes, they are using bridged connection and as you suspected it was the darn guest firewall... can't believe i wasted almost two hours without seeing this. Thank you... :-) –  iby chenko Jun 22 '12 at 15:01
    
Please be kind enough to accept my answer. Thanks. –  Fran Jun 22 '12 at 15:03
    
ops, sorry.... there you go... –  iby chenko Jun 22 '12 at 15:18

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.