machine.vm.network "private_network", ip: "192.168.2.111" ¥ ,virtualbox_intnet: "backend" machine.vm.hostname = "node1" end config.vm.define "node2" do |machine| machine.vm.network "private_network", ip: "192.168.2.112" ¥ ,virtualbox_intnet: "backend" machine.vm.hostname = "node2" end config.vm.provider "virtualbox" do |vb| # Display the VirtualBox GUI when booting the machine vb.gui = false # Customize the amount of memory on the VM: vb.memory = "2048" vb.cpus = "1" end end
“System eth1” である - eth0(10.0.2.0/24)がデフォルトゲートウェイである node1/node2 にそれぞれcurl してみる vagrant ssh lvs curl 192.168.2.111 curl 192.168.2.112 ip a ; ip route ;nmcli d s