Package: ifupdown Version: 0.8.35+b1 Severity: normal Tags: ipv6 >From reading interfaces(5) for inet6/static, I had assumed that specifying "privext 2" (or even 1) on a such an interface definition would result in the behaviour of having both the statically-defined address and the temporary/privacy ones.
However, the 'mngtmpaddr' flag is not set on the added address, which means that the kernel will not manage (create/update/etc.) the temporary addresses. Hence, the sysctl is then meaningless, as the kernel has no "template" address from which to create one. I've worked around my interface definition with a 'post-up ip a change … mgntmpaddr', which seems to work and gives me the 2 addresses. It might be that I misunderstand the inet6.defn file syntax however, so if the error is on my part, let me know - I'll try to improve the docs. My interface definition iface xxx inet6 static address … netmask 64 accept_ra 2 privext 2 -- Package-specific info: --- /etc/network/interfaces: # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) # The loopback interface auto lo iface lo inet loopback up ip -6 r add unreachable 2001:1620:0f07:f000::/52 up ip -6 r add unreachable 2406:da00:ff00::0/48 #auto lan-ext iface lan-ext inet dhcp auto enp7s0f0 iface enp7s0f0 inet static network 10.1.167.0 address 10.1.167.28 netmask 255.255.255.0 broadcast 10.1.167.255 gateway 10.1.167.8 #up ip r add unreachable 10.1.167.7 up ip r add unreachable 10.1.167.1 #up ip r add unreachable 10.1.167.5 up ip r add 10.1.1.0/24 via 10.1.167.7 up ip r add 10.1.2.0/24 via 10.1.167.7 up ip r add 10.2.0.0/16 via 10.1.167.7 up ip r add 10.3.0.0/16 via 10.1.167.7 up ip r add 10.7.0.0/16 via 10.1.167.7 up ip r add 192.168.0.0/16 via 10.1.167.27 up ip r add 192.168.37.0/24 via 10.1.167.8 down ip r del unreachable 10.1.167.1 #down ip r del unreachable 10.1.167.5 up ip a add 192.168.8.2/32 dev enp7s0f0 down ip a del 192.168.8.2/32 dev enp7s0f0 up ip a add 10.1.167.32/32 dev enp7s0f0 up ip a add 10.1.167.33/32 dev enp7s0f0 down ip a del 10.1.167.32/32 dev enp7s0f0 down ip a del 10.1.167.33/32 dev enp7s0f0 iface enp7s0f0 inet6 static #address 2001:1620:0f07:1::28 address 2a02:168:7b0d:a1::28 netmask 64 accept_ra 2 privext 2 #post-up ip a add 2a02:168:7b0d:a1::28/64 dev enp7s0f0 #auto vlan1 #iface vlan1 inet static # vlan-raw-device enp7s0f0 # network 192.168.2.0 # address 192.168.2.28 # netmask 255.255.255.0 # broadcast 192.168.2.255 #auto tap0 iface tap0 inet static address 192.168.10.1 netmask 255.255.255.0 network 192.168.10.0 broadcast 192.168.10.255 tunctl_user uml-net #tunctl_user iusty #auto tap1 iface tap1 inet static address 192.168.11.1 netmask 255.255.255.0 network 192.168.11.0 broadcast 192.168.11.255 tunctl_user iusty #auto tap1 iface tap2 inet static address 192.168.10.10 netmask 255.255.255.252 network 192.168.10.8 broadcast 192.168.10.11 tunctl_user iusty #auto tap3 iface tap3 inet static address 192.168.8.1 netmask 255.255.255.252 network 192.168.8.0 broadcast 192.168.8.3 tunctl_user rtorrent auto uml0 iface uml0 inet static address 192.168.24.1 netmask 24 #bridge_ports tap20 tap21 bridge_ports none bridge_maxwait 0 bridge_maxfd 0 #pre-up tunctl -u iusty -t tap20 #pre-up tunctl -u iusty -t tap21 #auto uml1 iface uml1 inet static address 192.168.24.1 netmask 255.255.255.0 bridge_ports none bridge_maxwait 0 bridge_maxfd 0 # for virtualbox #auto dummy0 iface dummy0 inet static address 192.168.24.1 netmask 255.255.255.0 iface dummy0 inet6 static address 2001:1620:0f07:f000::28 netmask 64 up ip l set dummy0 arp on iface wlan0 inet static hostapd /etc/hostapd/hostapd.conf address 192.168.36.1 netmask 255.255.255.0 --- up and down scripts installed: /etc/network/if-down.d: total 4 -rwxr-xr-x 1 root root 372 Mar 17 2014 openvpn -rwxr-xr-x 1 root root 800 Jan 9 2017 postfix /etc/network/if-post-down.d: total 4 lrwxrwxrwx 1 root root 29 Apr 30 10:06 bridge -> /lib/bridge-utils/ifupdown.sh -rwxr-xr-x 1 root root 138 Apr 5 17:44 chrony -rwxr-xr-x 1 root root 1433 Jan 2 2019 vlan /etc/network/if-pre-up.d: total 10 lrwxrwxrwx 1 root root 29 Apr 30 10:06 bridge -> /lib/bridge-utils/ifupdown.sh -rwxr-xr-x 1 root root 344 Jun 7 2010 ethtool -rwxr-xr-x 1 root root 137 Aug 16 2016 uml-utilities -rwxr-xr-x 1 root root 4224 Feb 21 2019 vlan /etc/network/if-up.d: total 20 -rwxr-xr-x 1 root root 138 Apr 5 17:44 chrony -rwxr-xr-x 1 root root 1685 Sep 22 2014 ethtool -rwxr-xr-x 1 root root 677 Nov 26 2017 ip -rwxr-xr-x 1 root root 729 Dec 18 2016 miredo -rwxr-xr-x 1 root root 4937 Aug 22 2019 mountnfs -rwxr-xr-x 1 root root 385 Jul 7 2015 openvpn -rwxr-xr-x 1 root root 1117 Jan 9 2017 postfix -rwxr-xr-x 1 root root 261 Apr 15 2006 uml-utilities -- System Information: Debian Release: bullseye/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.4.35-teal0 (SMP w/24 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages ifupdown depends on: ii adduser 3.118 ii iproute2 5.6.0-1 ii libc6 2.30-8 ii lsb-base 11.1.0 Versions of packages ifupdown recommends: ii isc-dhcp-client [dhcp-client] 4.4.1-2.1+b2 Versions of packages ifupdown suggests: pn ppp <none> pn rdnssd <none> -- debconf information: ifupdown/convert-interfaces: true