On 29.04.2023 15:48, Per Jessen wrote:
Andrei Borzenkov wrote:
On 29.04.2023 15:00, Per Jessen wrote:
- monitor the ipv6 lease file, in /var/lib/NetworkManager
Prefix comes from RA, not from DHCP
Yes, but the prefix will still be written into the lease file,
As my example that you gratuitously trimmed shows - it does not. e.g.
office68:~ # cat /var/lib/NetworkManager/dhclient6-987c4a73-1fb9-3528-9145-9b04bc192c30-eth0.lease default-duid "\000\004\330\216\262\302\224f\300\254\032\354G\260\207p\207S"; lease6 { interface "eth0"; ia-na 76:17:e1:1b {
You requested IA NA from DHCPv6, of course you got back full address with prefix. But that requires using DHCPv6 for address configuration in the first place. And even if you *are* using DHCPv6 the content of lease file depends on which DHCP implementation NM is using. Which changes over time and currently preferred is internal client which does not write anything related to DHCPv6 (even though it does use it to obtain address).
starts 1682405437; renew 3600; rebind 7200; iaaddr 2a03:7520:4c68:1:ff99:ffff:0:c8f7 { starts 1682405437; preferred-life 43200; max-life 86400; } } option dhcp6.client-id 0:4:d8:8e:b2:c2:94:66:c0:ac:1a:ec:47:b0:87:70:87:53; option dhcp6.server-id 0:1:0:1:28:3e:35:d2:0:15:60:57:7:f1; option dhcp6.name-servers 2a03:7520:4c68:1::1000; }