EUI-64

Also known as: Extended Unique Identifier

On this page 7

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.

  1. Split the MAC address into the 24-bit OUI (vendor part) and the 24-bit device part.
  2. Insert the fixed value FF:FE between the two halves, giving 64 bits.
  3. 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.

StepValueNote
Original MAC address00:1A:2B:3C:4D:5E48-bit IEEE MAC-48
Insert FF:FE00:1A:2B:FF:FE:3C:4D:5E64 bits, still unmodified
Flip the U/L bit02:1A:2B:FF:FE:3C:4D:5EFirst byte 00 becomes 02
Interface identifier021a:2bff:fe3c:4d5eWritten as IPv6 hextets
Link-local addressfe80::21a:2bff:fe3c:4d5ePrefix fe80::/64 added
Converting a MAC address with modified EUI-64

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.

MethodStabilityPrivacyTypical use
Modified EUI-64Same on every networkLow; exposes hardwareRouter links, legacy hosts
Temporary addresses (RFC 8981)Changes regularlyHighOutgoing client connections
Stable opaque IDs (RFC 7217)Stable per networkGoodModern default for SLAAC
DHCPv6 assignmentServer controlledDepends on policyManaged enterprise networks
Manual configurationFixed by administratorNot applicableServers and infrastructure
Interface identifier methods in IPv6

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.

SituationRecommendationReason
Router and switch interfacesAcceptableDevices are fixed and already publicly known
Link-local addresses on infrastructureCommonAddresses never leave the local link
Laptops and phonesAvoidIdentifier tracks the device across networks
Public serversPrefer manual addressesEasier to document and survives hardware swaps
IoT sensorsUse with cautionReveals vendor and model through the OUI
When to use modified EUI-64

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.