Hi Johannes,

> > lxc.network.link                        = br0.tun0
Is there an actual interface called like that? Or did you somehow try to
specify two bridge interfaces?

You might also want to configure a gateway as well in the lxc config,
btw.

> How does a debian guest's /etc/network/interfaces have to look like such 
> that the IP is assigned from the config file - or is that even possible 
> without running a dhcp server on the host?
Just don't configure anything for eth0: The network interface will be
configured by lxc even before the container's init is started, so
Debian's networking scripts don't need to do anything.

My interfaces file looks like this right now:

    auto lo
    iface lo inet loopback

    auto eth0

But I think the last line is not even needed, perhaps the loopback stuff
isn't either.

For comparison, my lxc.conf for the container looks like:

    lxc.network.type = veth
    lxc.network.flags = up
    lxc.network.veth.pair = lxc-container1
    lxc.network.name = eth0
    lxc.network.link = br-lxc
    lxc.network.ipv4 = 10.42.0.10/24
    lxc.network.ipv4.gateway = auto


Gr.

Matthijs

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to