IPv6 privacy extensions are a mechanism that lets a host generate random, short-lived temporary IPv6 addresses for outgoing connections in addition to its stable address. In address configuration for networking, they modify SLAAC so that the interface identifier, the lower 64 bits of the address, no longer reveals a fixed hardware identity that websites and observers could use to track a device across networks and over time.
The mechanism is specified in RFC 8981, which replaced the earlier RFC 4941. An address created this way is commonly called a temporary IPv6 address, and most desktop and mobile operating systems enable it by default.
Why stable interface identifiers create a privacy problem
Stable interface identifiers create a privacy problem because the same 64-bit suffix follows a device to every network it joins. Under the original SLAAC design, hosts derived that suffix with EUI-64, embedding the network card’s MAC address in the IPv6 address.
A laptop that moved from home to a café to an office therefore kept an identical suffix behind three different prefixes. Any server it contacted could correlate activity across locations without cookies, and the embedded MAC address also disclosed the hardware vendor. Privacy extensions break that link by making the suffix random and periodically replaced.
How temporary addresses are generated and rotated
Temporary addresses are generated by combining each advertised prefix with a randomized interface identifier and giving the result limited lifetimes. The host still forms a stable address for incoming connections and adds one or more temporary addresses next to it.
- The host receives a router advertisement containing a prefix with the autonomous flag set.
- It creates a stable address and, separately, a random 64-bit identifier for a temporary address.
- It runs duplicate address detection on the new address before using it.
- Before the temporary address stops being preferred, the host creates a fresh replacement and shifts new connections to it.
- The old address remains valid for existing sessions until its valid lifetime expires, then it is removed.
The lifetimes define how often an observer sees a new address. The defaults in RFC 8981 are listed below; operating systems may adjust them.
| Parameter | RFC 8981 default | Effect |
|---|---|---|
| TEMP_PREFERRED_LIFETIME | 1 day | How long new connections use the address |
| TEMP_VALID_LIFETIME | 2 days | How long existing sessions may keep it |
| REGEN_ADVANCE | A few seconds | Lead time to create the replacement |
| MAX_DESYNC_FACTOR | Fraction of preferred lifetime | Randomizes rotation so hosts do not change in sync |
| TEMP_IDGEN_RETRIES | 3 | Attempts after a duplicate address is detected |
Temporary lifetimes can never exceed the lifetimes advertised for the prefix itself, so a router that shortens or withdraws a prefix also ends the temporary addresses derived from it.
Temporary addresses compared with other identifier methods
Privacy extensions are one of several ways to form an interface identifier, and each balances stability against trackability differently. Modern hosts usually combine a stable-privacy address with temporary addresses.
| Method | Stable within a network | Same across networks | Typical use |
|---|---|---|---|
| EUI-64 from MAC address | Yes | Yes, trackable | Legacy hosts, some network devices |
| Stable opaque identifier (RFC 7217) | Yes | No | Stable address for inbound services |
| Temporary address (RFC 8981) | No, rotates | No | Outgoing client connections |
| DHCPv6 assigned address | Depends on server policy | No | Managed enterprise networks |
| Manual static address | Yes | Not applicable | Servers and infrastructure |
The RFC 7217 stable opaque identifier solves cross-network tracking but not tracking within one network, because it stays constant while the prefix stays constant. Temporary addresses close that remaining gap for outgoing traffic, which is why the two methods are complementary rather than competing.
Operating system behavior and configuration
Operating systems enable IPv6 privacy extensions by default on client platforms and generally prefer temporary addresses as the source of outgoing connections, following the source address selection rules of RFC 6724. Administrators can change this behavior where traceability matters more than privacy.
| Platform | Default | Main control |
|---|---|---|
| Windows | Enabled | netsh interface ipv6 set privacy |
| macOS and iOS | Enabled | System configuration, rarely changed |
| Android | Enabled | Not normally user configurable |
| Linux desktop | Enabled by most distributions | The use_tempaddr sysctl or NetworkManager |
| Linux server | Often disabled | net.ipv6.conf.all.use_tempaddr set to 0 |
On Linux, a use_tempaddr value of 2 means create and prefer temporary addresses, 1 means create but do not prefer, and 0 disables them. Servers normally keep them off so that logs, firewall rules and reverse DNS refer to one predictable address.
Limitations and operational trade-offs
IPv6 privacy extensions hide only the interface identifier, not the network the host is using. The /64 prefix still identifies the household or site, so they offer protection comparable to IPv4 NAT rather than anonymity.
- Logging and forensics become harder because one device appears under many addresses over a few days.
- Address-based access control fails when rules list a single client address instead of a prefix.
- Neighbor cache pressure grows on routers and switches as hosts accumulate several addresses.
- Long-lived sessions can break if an address expires while a connection is still open.
- Tracking still occurs through cookies, browser fingerprints and account logins.
Enterprises that need accountability usually address these issues with DHCPv6 address logging, neighbor table collection via IP address management tools, or prefix-based firewall rules, rather than disabling privacy features on every client.
The short version
Every device on an IPv6 network has an address made of two halves: one half names the network, the other names the device. Without privacy extensions, the device half can stay the same everywhere. Websites can then recognize the same laptop at home, at work and in a hotel.
Privacy extensions make the device pick a new random half every day or so for its outgoing traffic. It is like wearing a fresh name badge each day. People still know which building you are in. They cannot easily link today’s visit to yesterday’s.
Where it makes a difference
A university campus network gives every student device a global IPv6 address through SLAAC. A student’s phone moves between the library, the dormitory and a coffee shop off campus during a single week. With privacy extensions enabled, each network sees a different random suffix, and the suffix changes again roughly every 24 hours.
Advertising servers that receive the phone’s requests therefore cannot link its sessions by IP address alone. The campus security team, however, still needs to answer abuse complaints about specific addresses.
To keep accountability, the network team collects router neighbor tables every few minutes and stores the mapping between temporary addresses and MAC addresses for 30 days. As a result, the team can trace an incident to a device when legally required, while outside observers gain no stable identifier to follow.