BuildTheNet

Opening your workspace

Your learning content and tools are loading.

Learning paths › CCNA › 1. Network Fundamentals

IPv6 Configuration & EUI-64

Written reference: Configure IPv6 on Cisco routers, calculate 64-bit Interface IDs using EUI-64 (inserting FFFE and inverting the 7th U/L bit), and verify link-locals.

About 12 minutes

Why it matters

Routers build link-local addresses on their own and often derive interface IDs from the MAC address. Being able to do it by hand lets you check the result.

Deriving IPv6 Addresses from MAC with EUI-64

You must issue 'ipv6 unicast-routing' in global config to allow a Cisco router to forward IPv6 traffic.

EUI-64 automatically generates a 64-bit Interface ID using the device's 48-bit MAC address.

Step 1 of EUI-64: Split the 48-bit MAC in half and insert 'FFFE' in the middle.

Step 2 of EUI-64: Invert the 7th bit (Universal/Local bit) from 0 to 1.

EUI-64 Calculation Step-by-Step

Given MAC: CC01.1234.5678 and prefix 2001:db8:1:1::/64:

1. Split MAC in half: CC01:12 and 34:5678 2. Insert FFFE in middle: CC01:12FF:FE34:5678 3. Inspect first byte (CC hex = 1100 1100 binary): • Invert 7th bit: 1100 1110 binary = CE hex 4. Combine: 2001:db8:1:1:ce01:12ff:fe34:5678/64

The words you need

ipv6 unicast-routing — The mandatory global configuration command that turns on IPv6 packet routing and enables sending Router Advertisements.

EUI-64 — Extended Unique Identifier 64-bit. An algorithm that converts a 48-bit MAC address into a 64-bit IPv6 interface identifier.

U/L Bit — Universal/Local bit (7th bit of the first byte of a MAC address). Inverted in EUI-64 from 0 (universal) to 1 (local unique).

The commands from this module

Each of these appeared above. Run them here so they are in your fingers, not just your notes.

These commands are reference examples. Use the separate hands-on lessons to configure and verify the feature; reading this example does not execute or validate a device change.

ipv6 unicast-routing
ipv6 address <ipv6-prefix>/64 eui-64
ipv6 address fe80::1 link-local
show ipv6 interface brief

EUI-64 step by step, with a second example

EUI-64 builds a 64-bit interface ID from a 48-bit MAC in three moves. Split the MAC in half, insert FFFE in the middle, then flip the seventh bit of the first byte (the universal/local bit). Flipping the bit means XOR with 0x02 on the first byte, so 00 becomes 02, AA becomes A8, and 1A becomes 18.

Worked example: MAC 00:1A:2B:3C:4D:5E. Split into 001A2B and 3C4D5E, insert FFFE to get 001A:2BFF:FE3C:4D5E, then flip the bit in the first byte (00 becomes 02) to get 021A:2BFF:FE3C:4D5E. With the prefix 2001:db8:0:1::/64 the address is 2001:db8:0:1:21a:2bff:fe3c:4d5e after dropping the leading zero. A second case: MAC aabb.cc00.0020 becomes a8bb:ccff:fe00:20 because AA XOR 02 = A8.

The commands, what they do, and what breaks

On a router, ipv6 address 2001:db8:0:1::/64 eui-64 takes the prefix you type and builds the interface ID from the interface MAC. ipv6 address fe80::1 link-local overrides the automatic link-local address with one you can read at a glance, which is a common design choice for router interfaces. Any IPv6 address on an interface also gives it an automatic link-local address, built with EUI-64 unless you override it.

The most common failure is forgetting ipv6 unicast-routing. Without it the device behaves as an IPv6 host: it will not forward IPv6 packets between interfaces and will not send Router Advertisements. A second slip is giving the prefix the wrong length; EUI-64 needs a /64. Verify with show ipv6 interface brief, where the global address should show the FFFE pattern in the middle, and compare the low 64 bits to what you calculated from the MAC shown by show interfaces.

How the exam uses it

Expect either "what is the EUI-64 interface ID for this MAC" or "which configuration command produces a modified EUI-64 address". Options usually include one with the bit not flipped and one with FFFE in the wrong place. Be careful with privacy: because the interface ID exposes the MAC, many client operating systems default to random or temporary addresses, while network devices commonly keep EUI-64 or manual addressing so addresses are predictable.

Check: flip the bit

A router interface has MAC 00:1A:2B:3C:4D:5E. Which interface ID does EUI-64 produce?

Takeaways

More free lessons in 1. Network Fundamentals