Hi Andreas,

Am 26.06.2023 um 11:13 schrieb Andreas B:
Hi,

I'm very puzzled by the behaviour of ipv6 temp addresses on Debian 12.

Expected behaviour: as soon as a temp address becomes deprecated, a
new one is generated. This is the behaviour on Debian 11.

Reasonable expectation, I think.

...
Tested on two different machines; the problem exist on both.

Seems to work correctly on my single Debian 12 system:

$ ip -6 a | sed -e 's/[0-9a-f]\{1,4\}:/XXXX:/g'
XXXX: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 state UNKNOWN qlen 1000
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
XXXX: enoXXXX: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000
inet6 XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:bef4/64 scope global temporary dynamic
       valid_lft 86180sec preferred_lft 14180sec
inet6 XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:71be/64 scope global temporary deprecated dynamic
       valid_lft 86180sec preferred_lft 0sec
inet6 XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:4c58/64 scope global temporary deprecated dynamic
       valid_lft 86180sec preferred_lft 0sec
inet6 XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:267a/64 scope global temporary deprecated dynamic
       valid_lft 86180sec preferred_lft 0sec
inet6 XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:d25b/64 scope global temporary deprecated dynamic
       valid_lft 86180sec preferred_lft 0sec
inet6 XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:2cee/64 scope global temporary deprecated dynamic
       valid_lft 86180sec preferred_lft 0sec
inet6 XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:4717/64 scope global dynamic mngtmpaddr noprefixroute
       valid_lft 86180sec preferred_lft 14180sec
    inet6 XXXX::XXXX:XXXX:XXXX:ce35/64 scope link noprefixroute
       valid_lft forever preferred_lft forever

This is using network manager with simple default settings, the IPv6 address is correctly auto-generated.

Settings are

/proc/sys/net/ipv6/conf/all/temp_prefered_lft: 86400
/proc/sys/net/ipv6/conf/all/temp_valid_lft: 604800
/proc/sys/net/ipv6/conf/all/use_tempaddr: 0
/proc/sys/net/ipv6/conf/default/temp_prefered_lft: 86400
/proc/sys/net/ipv6/conf/default/temp_valid_lft: 604800
/proc/sys/net/ipv6/conf/default/use_tempaddr: 0
/proc/sys/net/ipv6/conf/eno1/temp_prefered_lft: 86400
/proc/sys/net/ipv6/conf/eno1/temp_valid_lft: 604800
/proc/sys/net/ipv6/conf/eno1/use_tempaddr: 2
/proc/sys/net/ipv6/conf/lo/temp_prefered_lft: 86400
/proc/sys/net/ipv6/conf/lo/temp_valid_lft: 604800
/proc/sys/net/ipv6/conf/lo/use_tempaddr: -1


Arno

--
Arno Lehmann

IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück

Reply via email to