[lxc-users] [Solved]RE: Networking LXD containers
efersept
stevekadams at outlook.com
Tue Mar 15 03:03:47 UTC 2016
Thank you Fajar, I have tried putting entries in /etc/network/interfaces
on an Ubuntu host but they are completely ignored. Well that is not
completely true, static IPs can be set for eth0 but bridge entries and
wlan0 entries are ignored The only success I have had is creating bridge
interface files using systemd-networkd in /etc/systemd/network. I don't
really understand why.
Sent from my Windows Phone
------------------------------------------------------------------------
From:Fajar A. Nugraha <mailto:list at fajar.net>
Sent:3/14/2016 4:17 PM
To:LXC users mailing-list <mailto:lxc-users at lists.linuxcontainers.org>
Subject:Re: [lxc-users] [Solved]RE: Networking LXD containers
On Tue, Mar 15, 2016 at 4:21 AM, Steve Adams <stevekadams at outlook.com>
wrote:
> Problem solved. Turns out the problem was that I was routing 10.0.0.0/16
> traffic to 10.0.1.1 dev lxcbr0 (the IP of lxcbr0). Changed route via
> 10.0.1.80 ( IP of the veth iface) and worked perfectly. Hopefully this
helps
> someone else.
>Also could someone tell me how LXD sets up the bridge so that Network
> Manager does not screw with it. I am experimenting on a laptop and would
> rather not disable NM as I am usually connected via wifi. I have
> experimented with setting up custom interfaces with some success but NM
> seems to come through and mess them up.
On ubuntu/debian, if an interface (e.g. eth0) has an entry on
/etc/network/interfaces, NM will leave it alone. On redhat, NM should
ignore devices with NM_CONTROLLED="no".
As to "how lxd setup bridge", try /usr/lib/x86_64-linux-gnu/lxc/lxc-net
--
Fajar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160314/21438877/attachment.html>
More information about the lxc-users
mailing list