Bridge virtual machines out WLAN interface

It seems that my wlan card (intel 5100 AGN) firmware doesn’t allow “spoofing” MAC addresses. This has the side effect of destroying the capability to bridge out my virtual machines on that interface. Apparently this is a common thing on wlan cards.

I can see the incoming traffic just fine in my virtual machines, but their DHCP queries don’t get bridged out of the WLAN card. It works perfectly well when using the wired ethernet port.

Is there a workaround for this? MAC-NAT or something?

I don’t want to route my virtual machines out to the Internet because I don’t want my host OS to even have an IP address.

I’m using Linux and KVM for virtualization.

Answer

Bridging over an 802.11 network is not as straightforward as bridging over Ethernet, and it’s not something a normal WiFi driver/adapter on a host would do.

For most virtualization products, it’s useful to be able to remotely manage them, so I don’t think you’re going to get away with not having the host have an IP address.

If you don’t configure a gateway, then the VM and your guests (if you’re using NAT) won’t be able to communicate with anything outside your LAN.

Attribution
Source : Link , Question Author : Thomas , Answer Author : Jason Luther

Leave a Comment