Re: how to prefer temporary address? (raspbian / stretch)
Pascal Hambourg <[email protected]> Sat, 17 Aug 2019 11:50:13 +0200
| Newsgroups | gmane.linux.debian.devel.ipv6 |
|---|---|
| Organization | Plouf ! |
| Message-ID | <[email protected]> |
Le 17/08/2019 à 11:26, Andrea Borgia a écrit :
>
> At the moment my raspy (stretch-based Raspbian) is getting a /128 static
> lease from my router out of the /48 I get from the he.net tunnel.
> It also has a /64 address which seems stable across reboots but is not a
> slaac address.
It would be clearer if you posted the output of
ip -6 addr
If you have privacy concerns feel free to mangle the /48 prefix assigned
by the tunnel broker.
> Where does this /64 address come from? In the logs I see it mentioned by
> avahi-daemon and dhcpd but I cannot find a corresponding lease file.
dhcpd (ISC DHCP server) or dhcpcd (DHCP client daemon) ?
> More important, how do I get the sytem to generate and prefer a
> temporary address for outgoing connections?
sysctl net.ipv6.conf.${INTERFACE}.use_tempaddr=2
How to set it at the system configuration level depends on the network
configuration framework used. With ifupdown, add the following option to
the iface stanza in /etc/network/interfaces :
privext 2