Not able to ping from one Host Virtual machine to different host Virtual machine in Vagrant

64 views
Skip to first unread message

Raghu H

unread,
May 14, 2021, 12:14:03 AM5/14/21
to Vagrant

I am not able to ping between two virtual machines on different Host, But can ping between two virtual machines if they are in the same Host machine, using a Bridge network to communicate between the two different VM’s.

Vagrantfile look like this on both VM,

ENV['VAGRANT_NO_PARALLEL'] = 'yes' Vagrant.configure(2) do |config| config.vm.provision "shell", path: "bootstrap.sh" MasterCount = 1 (1..MasterCount).each do |i| config.vm.define "kmaster2" do |masternode| masternode.vm.network "forwarded_port", guest: "80", host: "5050", auto_correct: "true" masternode.vm.box = "bento/ubuntu-20.04" masternode.vm.hostname = "kmaster2.example.com" masternode.vm.network "public_network", ip: "172.16.16.50", bridge: "ens160" masternode.vm.provider "virtualbox" do |v| v.name = "kmaster2" v.memory = 2048 v.cpus = 2 end end end

please refer to the text diagrams below Ping between the Physical machine (241) and Physical machine (242) works ping between VM-11 and VM-12 within the same physical machine works. Ping from VM-21 in Physical machine (242) to Physical machine (241) works But ping between VM-11 and VM-21 does not work. Also, ping from Physical machine 241 to VM-21 (in Phy machine 242) does not work

Any leads would help.

Physical machine (241)

-------------------- | ----------- | | |VM-11 | | | ----------- | | | | ----------- | | |VM-12 | | | ----------- | |------------------|

Physical machine (242)

-------------------- | ----------- | | |VM-21 | | | ----------- | | | | ----------- | | |VM-22 | | | ----------- | |------------------|

Alvaro Miranda Aguilera

unread,
May 17, 2021, 4:38:04 AM5/17/21
to vagra...@googlegroups.com
are you using wifi on any of those host ?



--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/vagrant/issues
Discuss: https://discuss.hashicorp.com/c/vagrant/24
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/36a404c2-b788-41ba-adbe-24c811470e5cn%40googlegroups.com.


--
Alvaro

Message has been deleted

Raghu H

unread,
May 17, 2021, 4:43:20 AM5/17/21
to Vagrant
No. its connected over the LAN  network

Alvaro Miranda Aguilera

unread,
May 17, 2021, 7:15:30 AM5/17/21
to vagra...@googlegroups.com
from the 2 machines in different host that can' t ping each other

can you share

in the old days should have been

ifconfig -a
route print

in the new commands, i think is like

ip route
ip address



On Mon, May 17, 2021 at 10:41 AM Raghu H <hrag...@gmail.com> wrote:
No.. It's connected over the coprate LAN network

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/vagrant/issues
Discuss: https://discuss.hashicorp.com/c/vagrant/24
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.


--
Alvaro

Reply all
Reply to author
Forward
0 new messages