VirtualBox 的桥接网络问题

VirtualBox 的桥接网络问题

我在运行 OS X EL Capitan 10.11 的 Mac 主机上的 VirtualBox 中运行 Ubuntu Linux 客户机,并且该客户机未连接到主机的 Wi-Fi。

它设置为桥接网络,使用常规 en0 Wi-Fi (AirPort)。而且在VM网络设置中,只有两个选项,有线连接和调制解调器连接,并且都不起作用。

如何让Linux虚拟机访问Mac的Wi-Fi?

这是我在 mac 主机上 ifconfig -a 的输出:

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 ::1 prefixlen 128 
inet 127.0.0.1 netmask 0xff000000 
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 
nd6 options=1<PERFORMNUD>
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether a4:5e:60:c6:7f:3b 
inet6 fe80::a65e:60ff:fec6:7f3b%en0 prefixlen 64 scopeid 0x4 
inet 192.168.0.10 netmask 0xffffff00 broadcast 192.168.0.255
inet6 fd00:fc:8d08:5b72:a65e:60ff:fec6:7f3b prefixlen 64 autoconf 
inet6 fd00:fc:8d08:5b72:913c:a7d1:1ec:fd5d prefixlen 64 autoconf     temporary 
nd6 options=1<PERFORMNUD>
media: autoselect
status: active
en1: flags=963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX> mtu 1500
options=60<TSO4,TSO6>
ether 4a:00:00:ac:b4:00 
media: autoselect <full-duplex>
status: inactive
en2: flags=963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX> mtu 1500
options=60<TSO4,TSO6>
ether 4a:00:00:ac:b4:01 
media: autoselect <full-duplex>
status: inactive
p2p0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 2304
ether 06:5e:60:c6:7f:3b 
media: autoselect
status: inactive
awdl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1484
ether 56:a7:d6:a9:67:46 
inet6 fe80::54a7:d6ff:fea9:6746%awdl0 prefixlen 64 scopeid 0x8 
nd6 options=1<PERFORMNUD>
media: autoselect
status: active
bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=63<RXCSUM,TXCSUM,TSO4,TSO6>
ether a6:5e:60:6c:cc:00 
Configuration:
    id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
    maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
    root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
    ipfilter disabled flags 0x2
member: en1 flags=3<LEARNING,DISCOVER>
        ifmaxaddr 0 port 5 priority 0 path cost 0
member: en2 flags=3<LEARNING,DISCOVER>
        ifmaxaddr 0 port 6 priority 0 path cost 0
nd6 options=1<PERFORMNUD>
media: <unknown type>
status: inactive

答案1

我也有同样的问题。解决方案之一是在设置互联网时更改 MAC 地址。据我了解,它与之前安装的虚拟服务器的mac地址冲突。因此,调制解调器无法配置虚拟机在此输入图像描述

相关内容