繁体   English   中英

由于主机网络问题而无法启动流浪汉

[英]Unable to start vagrant due to host networking issues

作为继承项目的一部分,我得到了一个大的 Vagrantfile,在做vagrant up ,出现以下错误:

The specified host network collides with a non-hostonly network!
This will cause your specified IP to be inaccessible. Please change
the IP or name of your host only network so that it no longer matches that of
a bridged or non-hostonly network.
  1. 我通过检查vagrant global-status输出来确保没有其他VM在运行。
  2. 我不在VPN上,
  3. 我已经重启了机器(Mac笔记本电脑)。

但是错误仍然存​​在。 该怎么办?

我无法共享较大的Vagrantfile,但仍需要克服此错误。 我的机器仅使用Wi-Fi连接到Internet,没有电缆连接。 我对网络调试命令也不是很熟悉。

您需要更改分配给VM的IP。 如果IP因网络范围而崩溃,则应进行更改。

例如,您可以安全地使用192.0.2.0/24范围内的IP如果192.168.0.0/16范围不起作用,则可以完全切换到以下范围之一

  • 10.0.0.0 – 10.255.255.255
  • 172.16.0.0 – 172.31.255.255

选择其中一个取决于您办公室的网络配置。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM