vagrantboxes icon indicating copy to clipboard operation
vagrantboxes copied to clipboard

Can't ping a fresh instance (v3.18.0621)

Open sedulam opened this issue 7 years ago • 1 comments

I'm using this simple vagrant file:

Vagrant.configure("2") do |config|
	
	config.vm.define "acs" do |acs|
		acs.vm.box = "ubuntu/trusty64"
		acs.vm.hostname = "acs"
		acs.vm.network "private_network", ip: "192.168.33.10"
	end

	config.vm.define "temp" do |temp|
		temp.vm.box = "terrywang/archlinux"
		temp.vm.hostname = "temp"
		temp.vm.network "private_network", ip: "192.168.33.50"
	end

	config.vm.define "temp2" do |temp2|
		temp2.vm.box = "ubuntu/trusty64"
		temp2.vm.hostname = "temp2"
		temp2.vm.network "private_network", ip: "192.168.33.60"
	end
end

After vagrant up I go to acs and try a ping to temp and temp2. Ubuntu works, but Arch fails.

PS: I'm new to Vagrant so I might be missing something obvious, but found it odd given the fresh installs.

sedulam avatar Jun 30 '18 13:06 sedulam

i'm having the same exact problem. new to vagrant as well and can't ssh or even ping the new server. Vagrant file: Vagrant.configure("2") do |config|

config.vm.define "acs" do |acs| acs.vm.box = "ubuntu/trusty64" acs.vm.hostname = "acs" acs.vm.network "private_network", ip: "192.168.33.10" end

config.vm.define "web" do |web| web.vm.box = "nrel/CentOS-6.5-x86_64" web.vm.hostname = "web" web.vm.network "private_network", ip: "192.168.33.20" web.vm.network "forwarded_port", guest: 80, host: 8080 end

config.vm.define "db" do |db| db.vm.box = "nrel/CentOS-6.5-x86_64" db.vm.hostname = "db" db.vm.network "private_network", ip: "192.168.33.30" end config.vm.define "archlinux" do |archlinux| archlinux.vm.box = "terrywang/archlinux" archlinux.vm.hostname = "archlinux" archlinux.vm.network "private_network", ip: "192.168.33.50" end end

acs$ ping 192.168.33.50 PING 192.168.33.50 (192.168.33.50) 56(84) bytes of data. From 10.0.2.2 icmp_seq=6 Destination Net Unreachable

if i ping to a known good box (CentOS) i get this: $ ping 192.168.33.20 PING 192.168.33.20 (192.168.33.20) 56(84) bytes of data. 64 bytes from 192.168.33.20: icmp_seq=1 ttl=63 time=0.766 ms

jhreed avatar Sep 15 '18 22:09 jhreed