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:

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.

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
How many bits long is a MAC address?
To expand a 48-bit MAC address into a 64-bit Interface ID, the EUI-64 process follows three simple steps:
Split the MAC address into two halves
Insert the fixed value
FF:FEin the middleInvert the 7th bit of the first byte
Let's go through an example with the MAC address
001A.2B3C.4D5E.
Figure 3 – EUI-64 Conversion Process (Step-by-Step)
After applying the three steps, the resulting Interface ID becomes →
021A.2BFF.FE3C.4D5E.This 64-bit Interface ID can then be combined with a
/64network prefix provided by the router to form a complete IPv6 address.Answer the question below
Which fixed value is inserted in the middle of a MAC address during EUI-64 conversion?
Now let's apply the EUI-64 method in a real network scenario using a Cisco router.
We'll configure interface
GigabitEthernet0/1on R1 to automatically generate its Global Unicast Address (GUA) using the prefix2001:db8:0:1::/64and the EUI-64 format.
Figure 4 – R1 MAC Address
Step 1: Check the MAC address
We first look at the physical MAC address of the interface:
R1# show interface g0/1 GigabitEthernet0/1 is up, line protocol is up Hardware is iGbE, address is 001a.2b3c.4d5e (bia 001a.2b3c.4d5e) MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) Full-duplex, 1000Mb/s, media type is RJ45 /// Output OMITTED for brevityThis MAC address will be used as the base for generating the Interface ID.
Step 2: Configure the interface
We enable IPv6 routing and assign the address using the
eui-64keyword:R1# conf t Enter configuration commands, one per line. End with CNTL/Z. R1(config)# ipv6 unicast-routing R1(config)# interface g0/1 R1(config-if)# ipv6 address 2001:db8:0:1::/64 eui-64 R1(config-if)# endThis command tells the router:
➤ Use the prefix2001:db8:0:1::/64
➤ Generate the remaining 64 bits (Interface ID) automatically using EUI-64Step 3: Verify the result
Now we check the configured IPv6 addresses:
R1# show ipv6 interface brief GigabitEthernet0/0 [administratively down/down] unassigned GigabitEthernet0/1 [up/up] FE80::21A:2BFF:FE3C:4D5E 2001:DB8:0:1:21A:2BFF:FE3C:4D5EBreakdown of the GUA (Global Unicast Address)
Original MAC:
00:1A:2B:3C:4D:5EEUI-64 transformation:
➤ InsertedFF:FEin the middle
➤ Flipped the 7th bit of the first byte (00→02)
➤ Result:02:1A:2B:FF:FE:3C:4D:5EFinal IPv6 GUA:
2001:DB8:0:1:21A:2BFF:FE3C:4D5E
What about the Link-local address?
Cisco devices always generate a link-local address automatically on each IPv6-enabled interface.
It always starts with
FE80::/10.By default, the Interface ID for the link-local address is also built with EUI-64.
That's why in our verification we see:
FE80::21A:2BFF:FE3C:4D5E.This address is only valid on the local link and is used for essential IPv6 operations such as neighbor discovery and routing protocols. It is not routable across the Internet, unlike the GUA.
Answer the question below
What IOS keyword lets a router generate the Interface ID automatically?
Answer the question below
R2's G0/2 has MAC 5c5e.ab10.7f21 and ipv6 address 2001:db8:0:1::/64 eui-64: which Global Unicast Address does show ipv6 interface brief print?
Answer the question below
An interface's EUI-64 link-local is FE80::D6A0:1CFF:FE6B:9E02: which dotted MAC address does show interface print for it?
EUI-64 is supported on Cisco routers, but it's generally not recommended for Global Unicast Addresses (GUAs).
Why Avoid EUI-64 on Routers?
Using EUI-64 for router GUAs creates several issues:
The generated address is long and not human-friendly
It makes troubleshooting and documentation more difficult
You lose the ability to use consistent, predictable endings like
::1for Router 1,::2for Router 2
What to Do Instead
For routers, it's better to configure GUAs statically, for example:
R1# conf t Enter configuration commands, one per line. End with CNTL/Z. R1(config)# interface g0/1 R1(config-if)# ipv6 address 2001:db8:0:1::1/64 R1(config-if)# endThis way, your addressing scheme remains predictable and easy to manage.
When EUI-64 Is Useful
EUI-64 is still very helpful in other situations:
End devices (PCs, phones, IoT sensors) → no need to assign each address manually
Link-local address generation →
ipv6 enableautomatically uses EUI-64SLAAC environments → hosts self-configure without DHCPv6
In these cases, automation is beneficial because the addresses don't need to be memorized or manually assigned.
CCNA tip: Make sure you understand how EUI-64 works and practice it in the CLI blocks above. It's an exam topic and also something you'll encounter in real networks.
Answer the question below
Is EUI-64 recommended for router Global Unicast Addresses?