AfromtheB wrote:Asking because I'm having a similar issue.
AfromtheB wrote:Mine is slightly different
Then you shouldn't be posting here, it's easy enough to create a new thread. This is going to be a single answer deviation from the original thread/issue. If there's any continuation/follow up, I'm going to split your issue.
Martin wrote:Is this on a wired connection or on wireless?
There is a
really good reason that Martin asked that
really pointed question. And that's because Bridged-over-WiFi doesn't always play nice. Bridged networking is outside the WLAN specification. It may or may not work. Some combinations of Routers/Access Points, WLAN cards and drivers work, some don't. See:
Bridging & Wifi - Supported hardware and add your experience. For example, it works fine in my home, but not in my office. Same laptop, same VM.
And yes, the source of the problem (as you figured by accident) is the DHCP broadcast requests. Here's the technical explanation, pay special attention to the last paragraph:
vushakov in ticket [url=https://www.virtualbox.org/ticket/10019#comment:18]10019:18[/url] wrote:
Many wifi routers now try to use unicast link-level destination for broadcast/multicast IP destination. The reasons are explained in
http://tools.ietf.org/html/draft-vyncke ... ficient-01 - that is in context of IPv6, but the same logic applies to IPv4 (IPv6 is hit harder since it relies more on multicast). Behavior varies between wifi routers, so you may get bridged setup working with some and not working with others.
If the wifi router that is not working for you just uses unicast delivery for multicast, then 4.3.16 should help (a typical packet capture can be seen in #12207). In this case the host was receiving DHCP replies intended for the guest (broadcast IP, but unicast to host MAC), but was not rewriting MAC address correctly, so the guest was not receiving the packet. If you plug another computer into the wired port of the router to capture DHCP exchange as seen on the wired side, you would see the same DHCP replies sent to ethernet broadcast on the wired connection. So this is just an optimization for wifi that some routers do.
Unfortunately - and this is orthogonal to multicast/unicast issue above - some routers will send DHCP replies to broadcast IP, but to the unicast client MAC address (i.e. guest MAC in this case) fetched from the DHCP request. These packets will never be even seen by the host. I'm afraid the packet captures in comment:14 is an example of that. In the ethernet capture you can see DHCP replies unicast to guest and in the wireless capture you don't see any replies at all. I have one router like this (though it at least uses ethernet broadcast for its DHCP NAKs, so you can see something in the wireless capture
.
This latter kind of routers has problems with DHCP, but usually you can work around it by not using DHCP and using static IP instead. E.g. I cannot connect to that router of mine with DHCP, but if I use static IP in the guest then I get normal connectivity. Yes, this is suboptimal
, but better than no connectivity if you must use bridged for some reason.