IPv6 and LXC with DHCP

wolfgang

Proxmox Retired Staff
Retired Staff
Oct 1, 2014
6,496
498
103
Hi,

Do I need to assign the host also with IPv6 address?
No, usually a bridge will forward all packages to the bridge ports.
Did you check if you get the correct packages in the container?
TCP dump on the bridge and in the container can help.
 

r4ptor

New Member
Oct 6, 2018
2
0
1
33
Im having issues with this aswell, somehow the DUID is identical for every container aswell, wierd.
I have assigned every container a static ipv6 address but DHCP still assign them another ipv6 address.
For ipv4 there is no problem at all, but its sometihng about ipv6 that doesnt work.
 

jamin587

Member
Jan 10, 2018
9
0
6
Where you able to solve it? DUID for Ubuntu 20.04 lxc containers is still always identical. Static ip and SLAAC works but not DHCP.
 

jamin587

Member
Jan 10, 2018
9
0
6
You need to generate a new unique machine-id:

You can find the current one in /var/lib/dbus/machine-id && /etc/machine-id

To generate a new one (Ubuntu):
Bash:
rm /etc/machine-id
rm /var/lib/dbus/machine-id
# Create /var/lib/dbus/machine-id
dbus-uuidgen --ensure
# Create /etc/machine-id, this will basically get the id from /var/lib/dbus/machine-id
systemd-machine-id-setup
reboot
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!