No IPv6 for Incus OCI containers

Hello,

I’m facing issue with Incus OCI containers when setting network IPv6 by the following command

incus network set incusbr0 ipv6.address=300:a963:ef9c:b6fa::1/64 ipv6.nat=false ipv6.dhcp.stateful=true

Incus VM and LXC containers works fine and get the IPv6

$ incus list
+-----------+---------+-----------------------+------------------------------------------------+-----------------+-----------+
|   NAME    |  STATE  |         IPV4          |                      IPV6                      |      TYPE       | SNAPSHOTS |
+-----------+---------+-----------------------+------------------------------------------------+-----------------+-----------+
| Win11     | STOPPED |                       |                                                | VIRTUAL-MACHINE | 0         |
+-----------+---------+-----------------------+------------------------------------------------+-----------------+-----------+
| mysql     | RUNNING | 10.41.99.127 (eth0)   |                                                | CONTAINER (APP) | 0         |
+-----------+---------+-----------------------+------------------------------------------------+-----------------+-----------+
| rl9       | RUNNING | 10.41.99.69 (eth0)    | 300:a963:ef9c:b6fa:410a:54aa:74e9:312e (eth0)  | CONTAINER       | 0         |
+-----------+---------+-----------------------+------------------------------------------------+-----------------+-----------+
| rl9-vm    | RUNNING | 10.41.99.106 (enp5s0) | 300:a963:ef9c:b6fa:3803:bb95:fd5:8c32 (enp5s0) | VIRTUAL-MACHINE | 0         |
+-----------+---------+-----------------------+------------------------------------------------+-----------------+-----------+
| wordpress | RUNNING | 10.41.99.7 (eth0)     |                                                | CONTAINER (APP) | 0         |
+-----------+---------+-----------------------+------------------------------------------------+-----------------+-----------+

Regards,
Salem Yaslem

I notice something wired, I can access host from OCI containers but with local address

as you see, same thing not applied to LXC Containers and Incus VMs (which is expected behavior)

OCI containers only support stateless IPv6 addressing at this stage. Stateful IPv6 would need a bunch of changes to our minimal DHCP client to handle and will likely take a little while to have implemented.

1 Like