[英]Public network configuration doesn't work on OSX, El Capitan
I'm using vagrant 1.7.4 on Mac OSX El Capitan 10.11.1. 我在Mac OSX El Capitan 10.11.1。上使用流浪汉1.7.4。 I configured public network like below.
我如下配置公共网络。
config.vm.network "public_network", :bridge => 'en0: Wi-Fi (AirPort)', ip:"192.168.18.31"
But I found it doesn't works on my mac but work on PC. 但是我发现它不能在我的Mac上运行,但可以在PC上运行。 I'm using virtual box 5.0.8 r103449.
我正在使用虚拟盒子5.0.8 r103449。 Also I turned off firewall too.
我也关闭了防火墙。
Does the host network interface you want to route through exist on eth0
? 您要路由的主机网络接口是否在
eth0
存在? Running ifconfig
on my Mac OS shows an adapter name matching pattern en0
. 在我的Mac OS上运行
ifconfig
显示适配器名称匹配模式en0
。
You can use multiple interfaces in the bridge parameter if you would like to attempt to use many: 如果要尝试使用多个接口,可以在bridge参数中使用多个接口:
bridge: [
"en1: Wi-Fi (AirPort)",
"eth0: Broadcom NetXtreme Gigabit Ethernet Controller",
]
The first network adapter that exists and can successfully be bridge will be used. 将使用存在的并且可以成功桥接的第一个网络适配器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.