EUI 64 in IPv6

  • In IPv6, every device must have a unique address to communicate on the network. To simplify configuration, devices can automatically generate part of their IPv6 address. One common method for this is called EUI-64.

    EUI-64 allows a device to automatically create the host portion of its IPv6 address (the Interface ID) using its own MAC address.

    IPv6 Address Structure Recap

    An IPv6 address is 128 bits long and is divided into two main parts:

    IPv6 address structure

    Figure 1 – IPv6 Address Structure

    • Network Prefix (first 64 bits): Provided by the router, it identifies the network.

    • Interface ID (last 64 bits): Uniquely identifies the device on that network.

    But here’s the challenge: since EUI-64 uses the MAC address to create the Interface ID, and a MAC address is only 48 bits while the Interface ID must be 64 bits, we need a way to expand it.

    MAC address vs Interface ID size

    Figure 2 – Converting a MAC Address to an Interface ID

    The EUI-64 method solves this by applying a simple transformation to the MAC address, turning it into a valid 64-bit Interface ID.

    Answer the question below