VirtualBox4.2 Bridge Network的一个小tip

在VirtualBox的“网络设置”中选择“Birdge Network”模式,接口为wlan0,但虚拟机中一直获取不了IP。

查了下官方文档(http://www.virtualbox.org/manual/ch06.html):

Note

Bridging to a wireless interface is done differently from bridging to a wired interface, because most wireless adapters do not support promiscuous mode. All traffic has to use the MAC address of the host's wireless adapter, and therefore VirtualBox needs to replace the source MAC address in the Ethernet header of an outgoing packet to make sure the reply will be sent to the host interface. When VirtualBox sees an incoming packet with a destination IP address that belongs to one of the virtual machine adapters it replaces the destination MAC address in the Ethernet header with the VM adapter's MAC address and passes it on. VirtualBox examines ARP and DHCP packets in order to learn the IP addresses of virtual machines.

尝试开启wlan0接口的混杂模式:ifconfig wlan0 promisc

再重启虚拟机的networking服务,瞬间好用了:-)

又长姿势了。。。

你可能感兴趣的:(VirtualBox4.2 Bridge Network的一个小tip)