A link-local IPv6 address is a unique type of unicast address confined to a single network segment, or link. Unlike global unicast addresses that route across the internet, these addresses are automatically configured on every IPv6-enabled interface and are valid only for communications within the local broadcast domain. Routers will never forward packets destined for a link-local address to another link, making them the fundamental building blocks for neighbor discovery, router solicitation, and essential control-plane traffic on a local network segment.
Understanding the Scope and Purpose
In the IPv4 world, the closest equivalent is the Automatic Private IP Addressing (APIPA) range (169.That said, IPv6 link-local addresses are far more integral to the protocol’s operation. Which means they are not a fallback mechanism; they are a mandatory requirement. 0.Think about it: 0/16), which a host assigns to itself when a DHCP server is unavailable. 254.Every single IPv6 interface must have a link-local address, even if it also possesses global unicast addresses (GUAs) or unique local addresses (ULAs).
The primary purpose is to make easier the "plumbing" of the network layer. Because of that, protocols like the Neighbor Discovery Protocol (NDP), which replaces ARP, DHCPv6 relay functions, and routing protocol adjacencies (such as OSPFv3 and RIPng), rely exclusively on link-local addresses for their source and destination IP fields. This design ensures that core network infrastructure functions remain operational regardless of global routing status or prefix delegation changes.
The FE80::/10 Prefix Structure
The reserved block for link-local unicast addresses is FE80::/10. Here's the thing — in binary, this means the first 10 bits are fixed as 1111 1110 10. Still, RFC 4291 specifies that the subsequent 54 bits must be set to zero. This means the effective usable prefix for interface addresses is FE80::/64 Worth knowing..
This structure breaks down as follows:
- First 10 bits (FP):
1111 1110 10(Identifies the link-local scope). - Next 54 bits: All zeros (Reserved for future use / subnet ID is effectively zero).
- Last 64 bits (Interface ID): The unique identifier for the interface on that specific link.
Because the subnet ID portion is always zero, there is effectively only one link-local subnet per interface. You cannot subnet the FE80::/10 range further. This simplifies network design significantly—every link shares the same logical prefix structure, differentiated only by the physical or logical separation of the link itself.
Interface Identifier Generation: EUI-64 vs. Privacy Extensions
The lower 64 bits (the Interface ID) are where the uniqueness resides. Historically, the standard method for generating this identifier was Modified EUI-64, derived from the interface’s 48-bit MAC address Worth knowing..
The Modified EUI-64 Process
- Take the 48-bit MAC address (e.g.,
00:1A:2B:3C:4D:5E). - Split it in half:
00:1A:2B(OUI) and3C:4D:5E(NIC specific). - Insert
FF:FEin the middle:00:1A:2B:FF:FE:3C:4D:5E. - Invert the Universal/Local (U/L) bit (the 7th bit of the first byte).
00(hex) =00000000(binary).- Flipping the 7th bit makes it
00000010(binary) =02(hex). - Resulting Interface ID:
02:1A:2B:FF:FE:3C:4D:5E.
This creates a deterministic, globally unique (assuming unique MACs) identifier. On top of that, while convenient for troubleshooting (you can trace the IP back to a hardware vendor), it raises significant privacy concerns. A device moving between networks (e.g., a laptop connecting to coffee shop Wi-Fi, then home, then corporate) would advertise the same Interface ID everywhere, allowing trivial tracking of the hardware across disparate networks.
RFC 7217 and Stable Privacy Addresses
Modern operating systems (Windows 10/11, Linux kernels, macOS, iOS, Android) now default to RFC 7217 (Stable Privacy Addresses) or temporary addresses (RFC 4941/8981) for the Interface ID.
- Stable Privacy (RFC 7217): Generates a cryptographically secure hash based on the network prefix, the interface name, a secret key, and a counter (DAD attempts). The address remains stable on that specific network but changes when the device connects to a different prefix. This balances operational stability (logs, firewalls, ACLs) with privacy.
- Temporary Addresses: Rotate frequently (e.g., every few hours) for outbound client connections, making long-term tracking extremely difficult.
Regardless of the generation method, the resulting 64-bit value is appended to the FE80::/64 prefix to form the complete link-local address.
The Mandatory Zone Index (Scope ID)
Because link-local addresses are only unique per link, the same address FE80::1 can exist on every single interface of a router, and on every host connected to those respective links. If an application or user tries to ping FE80::1, the operating system has no idea which interface to send the packet out of Practical, not theoretical..
To resolve this ambiguity, IPv6 requires a Zone Index (often called Scope ID or %interface) appended to the address.
Syntax Examples:
- Linux / macOS / BSD:
ping6 fe80::21a:2bff:fe3c:4d5e%eth0 - Windows (PowerShell/CMD):
ping fe80::21a:2bff:fe3c:4d5e%4(where 4 is the interface index number) - URI Format (RFC 6874):
http://[fe80::21a:2bff:fe3c:4d5e%25eth0]/(The%is encoded as%25inside brackets).
Forgetting the zone index is the single most common error administrators make when manually testing link-local connectivity. The OS kernel uses this index to select the correct egress interface and the correct neighbor cache (ARP/NDP table) for the destination Practical, not theoretical..
Duplicate Address Detection (DAD)
Before assigning a link-local address (or any IPv6 address) to an interface, the node must perform Duplicate Address Detection (DAD). This is a critical safety mechanism defined in RFC 4861 (NDP).
The process works as follows:
- It listens for a Neighbor Advertisement (NA) in response.
Think about it: g. It sends a Neighbor Solicitation (NS) message to the Solicited-Node Multicast Address corresponding to the tentative address.
Here's the thing — 2. Because of that, the node constructs a tentative address (e. 4. 3. Practically speaking, * Destination IP:
FF02::1:FFXX:XXXX(Solicited-Node Multicast). , based on EUI-64 or RFC 7217). Day to day, * Source IP:::(Unspecified Address). If a response is received: Another node on the link is already using that address.