I am having an issue where box \`node\` is receiving the same IP address of [10.0.2.15](https://10.0.2.15). It should be receiving a .20 address. I verified the hostnames, they are correct.
I'm new to Vagrant and not a Ruby programmer. A detailed explanation would be really helpful.
Vagrant.configure("2") do |config|
config.vm.define "controller" do |controller|
controller.vm.box = "generic/fedora33"
controller.vm.hostname = "controller.dev.local"
controller.vm.network "private_network", ip: "10.0.2.15", netmask: "24"
controller.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
#vb.gui = true
# Customize the amount of memory on the VM:
vb.memory = "1024"
end
controller.vm.provision "shell" do |s|
s.path = 'C:\Users\Chris Herzog\vagrant_env\centos\scripts\provision.sh'
end
end
config.vm.define "node" do |node|
node.vm.box = "generic/fedora33"
node.vm.hostname = 'node.dev.local'
node.vm.network "private_network", ip: "10.0.2.20", netmask: "24"
node.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
#vb.gui = true
# Customize the amount of memory on the VM:
vb.memory = "1024"
end
node.vm.provision "shell" do |s|
s.path = 'C:\Users\Chris Herzog\vagrant_env\centos\scripts\test_server.sh'
end
end
end