[lxc-users] [Solved] Re: configuring ipv6 from container config file

Richard Hector richard at walnut.gen.nz
Sat Feb 9 04:12:33 UTC 2019


On 9/02/19 4:45 PM, Richard Hector wrote:
> Hi all,
> 
> I have 2 similar container hosts - both debian stretch, both the same
> lxc version.
> 
> I'm not using lxd.
> 
> On one, all my containers have their ip addresses configured via the
> container config files, and I've been able to add ipv6 addresses that
> way and it works fine.
> 
> On the other, I used to set up the ip addresses within the container
> (/etc/network/interfaces). When I add v6 on those, by that method, it's
> fine. More recent containers have been set up using the container config
> file, and ipv4 works but ipv6 doesn't.

Found it - /etc/sysctl.d/disableipv6.conf existed. Somehow I thought
that sysctl stuff wouldn't work in a container, but it does.

Richard



More information about the lxc-users mailing list