Hello,

you can use file /etc/network/interfaces inside LXC for define IPv6 static addrese.

For example:

auto eth0
iface eth0 inet static
        address 1.1.1.2
        netmask 255.255.255.0
        gateway 1.1.1.1
iface eth0 inet6 static
        address 1981:22:33:33::2
        netmask 64
        gateway 1981:22:33:33::1

It is similar as in normal server.

Miroslav Lednický


Dne 9.5.2015 v 18:48 brian mullan napsal(a):
LXC default is to setup NAT'd ipv4 for containers.

is there any guide to how to change the default to setup ipv6 instead so
lxc-create -t xxxx -n cn_name

cn_name ends up with an ipv6 address.

I searched thru all the lxc-users archive and didn't find any mention of
this
and google searches tend to just show examples of static ipv6 config for
a container

I was hoping there was the ipv6 equivalent of the default ipv4
lxc-create results.

brian



_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to