EUI-64, the 64-bit Extended Unique Identifier, is an IEEE-defined hardware identifier format and, in IPv6 address configuration, the method of deriving a 64-bit interface identifier from a device’s 48-bit MAC address. In networking, the term most often refers to this modified EUI-64 procedure, which lets a host build its own IPv6 address without a server.
The method was central to early stateless address autoconfiguration (SLAAC) because it produces unique, predictable identifiers. That same predictability later raised serious privacy concerns, so modern operating systems often prefer randomized alternatives for the addresses they use on the Internet.
How modified EUI-64 builds an interface identifier
The modified EUI-64 procedure, specified for IPv6 in RFC 4291, converts a 48-bit MAC address into a 64-bit interface identifier in three steps. The result fills the lower half of an IPv6 address, while the upper 64 bits come from the network prefix.
- Split the MAC address into the 24-bit OUI (vendor part) and the 24-bit device part.
- Insert the fixed value FF:FE between the two halves, giving 64 bits.
- Invert the seventh bit of the first byte, known as the universal/local (U/L) bit.
The table below works through a sample address step by step.
| Step | Value | Note |
|---|---|---|
| Original MAC address | 00:1A:2B:3C:4D:5E | 48-bit IEEE MAC-48 |
| Insert FF:FE | 00:1A:2B:FF:FE:3C:4D:5E | 64 bits, still unmodified |
| Flip the U/L bit | 02:1A:2B:FF:FE:3C:4D:5E | First byte 00 becomes 02 |
| Interface identifier | 021a:2bff:fe3c:4d5e | Written as IPv6 hextets |
| Link-local address | fe80::21a:2bff:fe3c:4d5e | Prefix fe80::/64 added |
Why the universal/local bit is inverted
In IEEE addressing, the U/L bit is 0 for a globally administered (vendor-assigned) address and 1 for a locally administered one. IPv6 deliberately reverses this meaning in the interface identifier, so a value of 1 signals global uniqueness.
The reason is practical: administrators who assign identifiers by hand can use short values such as ::1 or ::2 with the bit left at zero, which indicates local scope. Without the inversion, such manual identifiers would need the awkward form 0200::1 to state that they are local.
A common error when calculating by hand is to flip the wrong bit. The U/L bit is the second-lowest bit of the first byte, so the first byte changes by exactly 2: 00 becomes 02, 02 becomes 00 and 0C becomes 0E.
The original IEEE EUI-64 format itself, used natively by some technologies such as IEEE 802.15.4 and FireWire, has no inserted FF:FE and no inverted bit. When an interface already has a native 64-bit identifier, IPv6 only applies the U/L inversion, which is why the IPv6 variant is always described as modified EUI-64 rather than plain EUI-64.
The FF:FE filler was chosen because the IEEE once reserved that value to mark a MAC-48 encapsulated in EUI-64. The IEEE has since deprecated the encapsulation approach, but IPv6 kept it for compatibility, so the pattern remains a reliable fingerprint of MAC-derived identifiers.
EUI-64 compared with other identifier methods
IPv6 hosts can generate interface identifiers in several ways, and the choice determines stability, privacy and manageability. Modified EUI-64 is the oldest method, but it is no longer the recommended default for global addresses.
| Method | Stability | Privacy | Typical use |
|---|---|---|---|
| Modified EUI-64 | Same on every network | Low; exposes hardware | Router links, legacy hosts |
| Temporary addresses (RFC 8981) | Changes regularly | High | Outgoing client connections |
| Stable opaque IDs (RFC 7217) | Stable per network | Good | Modern default for SLAAC |
| DHCPv6 assignment | Server controlled | Depends on policy | Managed enterprise networks |
| Manual configuration | Fixed by administrator | Not applicable | Servers and infrastructure |
RFC 8064 formally recommends that hosts stop embedding the MAC address in stable addresses and use the RFC 7217 method instead, which hashes the prefix, interface and a secret key into an opaque but stable value.
Where EUI-64 is still used
Despite its privacy drawbacks, EUI-64 remains common in network infrastructure, where predictability is an advantage. Router vendors offer an eui-64 keyword so an administrator can configure only the prefix and let the device build the rest of the address.
The following table shows where EUI-64 is a reasonable choice and where it should be avoided.
| Situation | Recommendation | Reason |
|---|---|---|
| Router and switch interfaces | Acceptable | Devices are fixed and already publicly known |
| Link-local addresses on infrastructure | Common | Addresses never leave the local link |
| Laptops and phones | Avoid | Identifier tracks the device across networks |
| Public servers | Prefer manual addresses | Easier to document and survives hardware swaps |
| IoT sensors | Use with caution | Reveals vendor and model through the OUI |
Limitations and privacy risks
The main weakness of EUI-64 is that the interface identifier stays the same everywhere. A laptop that moves from home to office to a café keeps the same lower 64 bits, so any server it contacts can correlate its activity across locations even when the prefix changes.
The embedded MAC address also reveals the hardware vendor through the OUI, and the FF:FE pattern in the middle makes such addresses easy to recognize in logs. Attackers can use this structure to shrink the search space when scanning IPv6 networks.
- Hardware replacement changes the address, which can break firewall rules and DNS records.
- Virtual machines with randomized MAC addresses produce unpredictable EUI-64 identifiers.
- EUI-64 does not replace duplicate address detection, which hosts must still perform.
- Interfaces without a 48-bit MAC address, such as some tunnels, need another method entirely.
A plain-language summary
Every network card has a built-in serial number called a MAC address. EUI-64 is a recipe that stretches that serial number into the second half of an IPv6 address, so a device can name itself without asking anyone.
The recipe is simple and reliable. The downside is that the device carries the same name everywhere it goes. That is why phones and laptops now usually pick random names instead, while routers still use the old recipe.
An example from practice
A regional internet provider is rolling out IPv6 on 60 aggregation routers. Engineers assign each router link a /64 prefix and enable EUI-64 addressing on the interfaces, so they type only the prefix and every router builds its own global and link-local addresses.
During troubleshooting, an engineer sees an address ending in ff:fe with a first byte of 02 in a neighbor table. Reversing the procedure reveals the MAC address, which points straight to the exact line card on a specific router.
On customer networks, the provider tells home routers to leave privacy addressing enabled on client devices. The result is a manageable backbone with traceable infrastructure addresses, while subscriber devices avoid long-term tracking through their interface identifiers.