[lxc-users] configuring ipv6 from container config file

Andrey Repin anrdaemon at yandex.ru
Sat Feb 9 13:45:27 UTC 2019


Greetings, Richard Hector!

> Here's a section of a sample config that doesn't work:

> lxc.network.type = veth
> lxc.network.flags = up

As a sidenote, if you configure container using its own network manager, use
lxc.net.0.flags = down

Else you are running chance of having your interfaces configured twice.

> lxc.network.link = br0
> lxc.network.ipv4 = 192.168.122.112/24
> lxc.network.ipv4.gateway = 192.168.122.1
> lxc.network.ipv6 = fd75:5198:8dc2:7905::70/64
> lxc.network.ipv6.gateway = fd75:5198:8dc2:7905::1

> As I say, IPv4 is working, and has been for ages. IPv6 is newly added,
> and doesn't.

> 192.168.122.1 and fd75:5198:8dc2:7905::1 are both configured on the br0
> in the host.


-- 
With best regards,
Andrey Repin
Saturday, February 9, 2019 16:40:03

Sorry for my terrible english...



More information about the lxc-users mailing list