Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

multi container ping failed #487

Closed
moluzhui opened this issue Nov 11, 2019 · 1 comment
Closed

multi container ping failed #487

moluzhui opened this issue Nov 11, 2019 · 1 comment
Labels

Comments

@moluzhui
Copy link

moluzhui commented Nov 11, 2019

My project requires multiple container environments, and each lxc needs to be able to ping with each other. I use settings similar to the following

config.vm.define :"lxc1" do |node_conf|
    node_conf.vm.network "private_network", ip: "192.168.45.2",lxc__bridge_name: "project"
    ...
end

config.vm.define :"lex2" do |node_conf|
    node_conf.vm.network "private_network", ip: "192.168.42.3",lxc__bridge_name: "project"
    ...
end

Host can ping each container,

root@lxc:~/lxc/vagrantlxcTest# ping 192.168.42.3
PING 192.168.42.3 (192.168.42.3) 56(84) bytes of data.
64 bytes from 192.168.42.3: icmp_seq=1 ttl=64 time=0.059 ms
64 bytes from 192.168.42.3: icmp_seq=2 ttl=64 time=0.037 ms

but I can't ping from one container to another,

vagrant@lxc1:~$ ping 192.168.42.3
PING 192.168.42.3 (192.168.42.3) 56(84) bytes of data.

Do I need to add other settings to do that?

I did not do any settings for the project bridge, which is directly used.

I use default lxcbr0 and match the appropriate IP allows the containers to ping each other

I would very appreciate it if you guys can give me some advice or solutions.

@fgrehm fgrehm added the ignored label Nov 17, 2022
@fgrehm
Copy link
Owner

fgrehm commented Nov 17, 2022

Hey, sorry for the silence here but this project is looking for maintainers 😅

As per #499, I've added the ignored label and will close this issue. Thanks for the interest in the project and LMK if you want to step up and take ownership of this project on that other issue 👋

@fgrehm fgrehm closed this as completed Nov 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants