[lxc-devel] macvlans can't ping each other

Markus Schuster ml at markus.schuster.name
Sun Jun 21 12:45:30 UTC 2009


Hi Adam!

> [..]
> both of these work and lxc1 and lxc2 can access network resources. But,
>
>   lxc1 cannot ping lxc2
>   lxc1 cannot ping host
>
> Is this expected behaviour? 

As far as I know: Yes. 


> How can I get lxc1 to talk to other containers?

Don't use macvlan if you have a bridge ready and working - use veth.
lxc comes with an example configuration:

--- cut ---
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.hwaddr = 4a:49:43:49:79:bf
--- cut ---

I would add a "lxc.network.name" line, but I think you don't have to modify 
your configuration file a lot - it may be enough to swap "macvlan" with 
"veth". 

Regards, 
Markus




More information about the lxc-devel mailing list