Stateful IPv6

Asked by Alex Smith

Why Ubuntu not take real stateful IPv6 from OpenWRT? Everytime generated some random IP, instead what I set. I tried disable privacy mode, but it is not help. It's work only after 2 times manual command 'dhclient -6 -i eth0'. Stateless mode is disabled.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Alex Smith
Solved:
Last query:
Last reply:
Revision history for this message
Kai Kasurinen (kai-kasurinen) said :
#1
Revision history for this message
Alex Smith (diamondfrog) said :
#2

I found a reason. For bind stateful IPv6 in DHCP must set:

If use systemd-networkd, need open file /etc/systemd/networkd.conf and uncomment "DUIDType=vendor" in "DHCP" section;

If use Network-manager, need open file /etc/NetworkManager/system-connections/your_connection and add "dhcp-duid=stable-uuid" in "ipv6" section

Also, DUID must be bonded for IPv6 device in DHCP options of OpenWRT.