最近在学Laravel,然后启动vagrant时候报错了,说啥IP不在范围内,啥情况勒
jw@ljwdeMacBook-Air Homestead % vagrant up
Bringing machine 'homestead-7' up with 'virtualbox' provider...
==> homestead-7: Checking if box 'laravel/homestead' version '12.0.0' is up to date...
==> homestead-7: Fixed port collision for 3306 => 33060. Now on port 2200.
==> homestead-7: Clearing any previously set network interfaces...
The IP address configured for the host-only network is not within the
allowed ranges. Please update the address used to be within the allowed
ranges and run the command again.
Address: 192.168.10.10
Ranges: 192.168.56.0/21
Valid ranges can be modified in the /etc/vbox/networks.conf file. For
more information including valid format see:
https://www.virtualbox.org/manual/ch06.html#network_hostonly
这个报错信息不是说了么?你用了hostonly网络,你的ip和hostonly的IP段不匹配,让你去改virtualbox的network配置文件,详情参阅最后virtualbox的官方文档中关于hostonly network mode的说明
而且你也没有完全按照Laravel的官方文档去做,配置的IP完全不对。virtualbox默认的hostonly network网段就是192.168.56.0/24,你自己改错了这个ip导致这个错误