[lxc-users] [Solved]RE: Networking LXD containers

Steve Adams stevekadams at outlook.com
Mon Mar 14 21:21:08 UTC 2016


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.


Sent from my Windows Phone

-----Original Message-----
From: "efersept" <stevekadams at outlook.com>
Sent: ‎3/‎2/‎2016 11:26 AM
To: "lxc-users at lists.linuxcontainers.org" <lxc-users at lists.linuxcontainers.org>
Subject: [lxc-users] Networking LXD containers

Hello everyone,
     Just for some background I am not a newbie to Linux but my 
experience with containers is only about a month old and my networking 
skills, specifically Linux networking, are basically beginner level.
     I have been experimenting with nested containers. However, even 
though everything works perfectly as far as typical tasks such as 
installing and launching applications, I have run into trouble with some 
other network related issues. For instance it would be nice to ssh into 
the containers at the top of the stack to do some admin tasks, but can 
not seem to direct network traffic from the host or any container beyond 
the container directly above. I have tried everything I know and a lot 
of things that I do not with no success and have broken the host and LXD 
several times. It would be nice to have network access to these 
containers from the host as well as the local network and the internet. 
These are probably pretty basic networking problems and not specifically 
related to LXD containers but if I could get some background as to how 
the container network environment is setup, specifically nested 
containers, it would go a long way. This has already been a huge 
learning experience but I have the feeling I am missing something obvious.
-Steve Adams

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160314/61477776/attachment.html>


More information about the lxc-users mailing list