Meu Vagrantfile
config.vm.network :private_network, ip: "172.16.0.22"
config.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--cpus", 2]
v.customize ["modifyvm", :id, "--memory", 2048]
v.customize ['modifyvm', :id, '--nicpromisc1', 'allow-all']
Depois de vagabundo
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: 172.16.0.22
Ranges: 10.0.0.0/8, 192.168.0.0/16, 2001::/64
Pelo que entendi, 172.16.xx são IPs privados.Meu wlo1
wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether c8:94:32:93:05:p2 brd ff:ff:ff:ff:ff:ff
altname wlp3s0
inet 192.168.1.19/24 brd 192.168.1.255 scope global dynamic noprefixroute wlo1
valid_lft 3068sec preferred_lft 3068sec
Alterei o arquivo network.conf adicionando 172.16.0.0 cat /etc/vbox/networks.conf
* 10.0.0.0/8 192.168.0.0/16 172.16.0.0
* 2001::/64
O mesmo problema ainda está aqui.
Por que o IP está fora do alcance da rede?