IPv6 Basics for CCNA: Addressing, EUI-64 and SLAAC
IPv6 is one of the easiest marks on the CCNA 200-301 — the question styles barely change from year to year, and most candidates lose points on the same two traps: address shortening and link-local scope. This guide covers the address format and shortening rules with worked examples, every address type you need, a step-by-step EUI-64 derivation, SLAAC vs DHCPv6, and a working router config — then 5 exam-style questions to prove it stuck.
Why IPv6 exists (the 30-second version)
IPv4 gives you 32-bit addresses — about 4.3 billion of them — and they ran out over a decade ago. NAT has been papering over the shortage ever since. IPv6 uses 128-bit addresses, which means roughly 340 undecillion addresses: enough for every device on Earth to have its own globally unique address with no NAT in sight.
- 128 bits, written in hexadecimal — 8 groups of 16 bits ("hextets"), separated by colons:
2001:0db8:0000:0000:0000:ff00:0042:8329. - No broadcast. IPv6 replaced broadcast with multicast — traffic goes to a group address (starting
ff00::/8) instead of hammering every host on the segment. - Simpler header. The IPv6 header drops rarely-used IPv4 fields, which makes router processing faster.
- Built-in autoconfiguration (SLAAC). Hosts can generate their own addresses from a router advertisement — no DHCP server required.
The CCNA doesn't expect you to memorise the header fields, but it absolutely expects you to read, shorten, and classify IPv6 addresses on sight.
Writing and shortening IPv6 addresses
A full IPv6 address is long, so two shortening rules exist. Apply them in order — and note that the second rule can only be used once per address.
- Drop leading zeros in each hextet.
0db8becomesdb8,0042becomes42,0000becomes0. This rule can be applied to every hextet. - Replace the longest run of consecutive all-zero hextets with
::— exactly once. If two runs are the same length, compress the first one.
Exam trap: the double colon can appear only once.
2001:db8::1::2 is invalid — with two :: the router can't tell how many zero hextets each one stands for. If you spot a double :: in an exam option, eliminate it immediately.
Worked shortening examples
1. Shorten 2001:0DB8:0000:0000:0000:FF00:0042:8329
Rule 1 — drop leading zeros: 2001:db8:0:0:0:ff00:42:8329. (Case doesn't matter; lowercase is conventional.) Rule 2 — the longest run of zero hextets is three in a row, so compress it: 2001:db8::ff00:42:8329.
2. Shorten FE80:0000:0000:0000:0202:B3FF:FE1E:8329
Rule 1: fe80:0:0:0:202:b3ff:fe1e:8329. Rule 2: compress the three leading zero hextets: fe80::202:b3ff:fe1e:8329. This is a link-local address with an EUI-64 interface ID — you'll see this pattern constantly.
3. Shorten 2001:0db8:0000:0001:0000:0000:0000:0001
Rule 1: 2001:db8:0:1:0:0:0:1. There are two runs of zeros — one hextet, then three hextets. Rule 2 compresses the longest run: 2001:db8:0:1::1. A common mistake is writing 2001:db8::1:0:0:0:1, which compresses the wrong run.
4. Expand 2001:db8:acad::10 back to full form
The :: stands for however many zero hextets are needed to reach 8 total. Written out: 2001:0db8:acad:0000:0000:0000:0000:0010. Read it as: prefix 2001:db8:acad::/64, host portion ::10.
IPv6 address types you must know
Every IPv6 address falls into one of these categories. The exam loves asking you to identify the type from the prefix.
| Type | Prefix | What it's for |
|---|---|---|
| Global unicast | 2000::/3 | Publicly routable addresses — the IPv6 equivalent of a public IPv4 address. What you assign to interfaces for real traffic. |
| Link-local | fe80::/10 | Automatic on every IPv6 interface; valid on one link only, never routed. Used for neighbour discovery and routing-protocol next hops. |
| Unique local | fc00::/7 | Private IPv6 space — the equivalent of RFC 1918 (10/8, 172.16/12, 192.168/16). Routable inside your organisation, not on the internet. |
| Multicast | ff00::/8 | One-to-many delivery. Key groups: ff02::1 (all nodes on the link), ff02::2 (all routers on the link). |
| Loopback | ::1/128 | The IPv6 equivalent of 127.0.0.1. |
| Unspecified | ::/128 | "No address yet" — the equivalent of 0.0.0.0, used as a source before a host has an address. |
A global unicast address is split into a 64-bit network prefix and a 64-bit interface ID — the /64 boundary is the standard subnet size in IPv6, and SLAAC depends on it.
Link-local addresses: the favourite exam trap
Link-local addresses deserve their own section because the CCNA tests them relentlessly:
- Every IPv6-enabled interface automatically gets a link-local address (usually
fe80::/10with an EUI-64 interface ID) — even if you never configure IPv6 on it. - They are never routed. A packet sourced from or destined to a link-local address cannot leave its link. If an exam scenario shows a host trying to reach across a router using a
fe80::address, that's the bug. - Because they only need to be unique per link, the same link-local address can appear on multiple interfaces of the same router — which is why you often see admins set them manually to something memorable like
fe80::1. - OSPFv3 uses link-local addresses as the source of hello packets and as the next-hop for learned routes. When you look at an IPv6 routing table, the next hops are
fe80::addresses — that's normal, not an error.
EUI-64: building an interface ID from a MAC address
EUI-64 (Extended Unique Identifier, 64-bit) is the classic method for a device to generate its own 64-bit interface ID from its 48-bit MAC address. It's a pure exam favourite because it's a mechanical four-step process — easy marks if you've practised it once.
The four steps
- Split the 48-bit MAC into two 24-bit halves.
- Insert
FFFEbetween the halves to stretch it to 64 bits. - Flip the 7th bit (the U/L bit) of the first byte: if it's 0 it becomes 1, and vice versa. In hex this usually means
00becomes02. - Combine with the /64 prefix advertised by the router and shorten the result.
Worked example: MAC 00:1A:2B:3C:4D:5E, prefix 2001:db8:acad:1::/64
Step 1 — split: 001A:2B | 3C4D:5E
Step 2 — insert FFFE: 001A:2BFF:FE3C:4D5E
Step 3 — flip the U/L bit: first byte 00 = 00000000 in binary; flipping bit 7 gives 00000010 = 02. Interface ID: 021A:2BFF:FE3C:4D5E
Step 4 — combine and shorten: 2001:0db8:acad:0001:021a:2bff:fe3c:4d5e → 2001:db8:acad:1:21a:2bff:fe3c:4d5e
Modern operating systems often use randomised interface IDs (privacy extensions) instead of EUI-64 so the MAC can't be tracked — but the exam still tests EUI-64, and Cisco routers still generate link-local addresses with it by default.
SLAAC vs DHCPv6: how hosts get configured
IPv6 gives hosts three ways to obtain addressing, all driven by the Router Advertisement (RA) and two flags inside it:
| Method | RA flags | How the host gets its address | How it gets DNS |
|---|---|---|---|
| SLAAC only | Neither flag set | Builds its own address from the advertised /64 prefix + EUI-64 or random interface ID | Not provided (a real limitation) |
| Stateless DHCPv6 | O flag (Other) set | SLAAC, as above | From a DHCPv6 server |
| Stateful DHCPv6 | M flag (Managed) set | Assigned by a DHCPv6 server | From a DHCPv6 server |
- SLAAC = the host configures itself. The router advertises the prefix; the host appends its interface ID. No server, no state kept anywhere.
- Stateless DHCPv6 = "use SLAAC for your address, but ask the DHCPv6 server for the other stuff (DNS)". The server keeps no record of who got what — hence stateless.
- Stateful DHCPv6 = the IPv6 equivalent of classic DHCP: the server hands out addresses and tracks them — hence stateful.
Exam trap: DHCPv6 never provides the default gateway.
No matter which method is in use, the host's default gateway always comes from the Router Advertisement — it's the link-local address of the router that sent it. If an exam option claims a host learned its gateway from DHCPv6, it's wrong. For the DHCPv6 deep dive, see our CCNA DHCP and DNS guide.
Basic IPv6 configuration on a Cisco router
Two things trip people up in the lab: IPv6 routing is disabled by default (unlike IPv4), and the interface needs a global unicast address with a /64. Here's a minimal working config:
! Enable IPv6 routing - required before the router will forward IPv6
R1(config)# ipv6 unicast-routing
! Configure the LAN interface
R1(config)# interface GigabitEthernet0/0
R1(config-if)# ipv6 address 2001:db8:acad:1::1/64
R1(config-if)# ipv6 address fe80::1 link-local
R1(config-if)# no shutdown
! Verify - the router auto-generates a link-local even without the manual line above
R1# show ipv6 interface brief
GigabitEthernet0/0 [up/up]
FE80::1
2001:DB8:ACAD:1::1
To control how hosts on the LAN configure themselves, set the RA flags on the interface:
! M flag: hosts use stateful DHCPv6 for their address
R1(config-if)# ipv6 nd managed-config-flag
! O flag: hosts use SLAAC for the address, stateless DHCPv6 for DNS
R1(config-if)# ipv6 nd other-config-flag
! Neither flag (default): pure SLAAC
Practice this exact sequence in a lab until it's muscle memory — the exam's IPv6 simlets are usually "enable IPv6, address the interfaces, verify". Try it in our subnet calculator drills for IPv4 first if your subnetting is rusty, then move to IPv6 addressing with flashcards.
Quick-fire practice questions
Five exam-style questions covering the traps above. Answer from memory, then click to reveal.
Q1. What is the correct shortened form of 2001:0DB8:0000:0000:0000:FF00:0042:8329?
2001:db8::ff00:42:8329. Drop leading zeros in each hextet first (0DB8 → db8, 0042 → 42), then replace the longest run of all-zero hextets with :: — once only.
Q2. A NIC has MAC address 00:1A:2B:3C:4D:5E. Using EUI-64 with prefix 2001:db8:acad:1::/64, what full address does the host generate?
2001:db8:acad:1:21a:2bff:fe3c:4d5e. Split the MAC (001A:2B | 3C4D:5E), insert FFFE → 001A:2BFF:FE3C:4D5E, flip the U/L bit (00 → 02) → 021A:2BFF:FE3C:4D5E, then combine with the prefix and shorten.
Q3. A host receives a Router Advertisement with the M flag set. How does it get its IPv6 address — and where does its default gateway come from?
Address: from a stateful DHCPv6 server (that's what the Managed flag means). Default gateway: from the Router Advertisement — DHCPv6 never supplies the gateway, regardless of the flags. This is one of the most-tested IPv6 facts on the exam.
Q4. Which of these IPv6 addresses is NOT valid?
A) 2001:db8::1::2 — the double colon appears twice, which is illegal. B) 2001:db8:1:2:3:4:5:6:7 is invalid too (nine hextets), but A is the classic trap: any option with two :: sequences can be eliminated on sight.
Q5. Two routers run OSPFv3 across a point-to-point link. What type of address appears as the next-hop in each router's IPv6 routing table?
Link-local (fe80::/10). OSPFv3 forms adjacencies and installs next-hops using the neighbours' link-local addresses. Seeing fe80:: next-hops in show ipv6 route is normal — it doesn't mean the routes are broken.
IPv6 for the CCNA 200-301 exam
IPv6 questions cluster in the Network Fundamentals section and boil down to a short checklist: shorten and expand addresses without hesitation, recognise fe80::/10 and know link-locals are never routed, derive EUI-64 from a MAC, match the RA flags to SLAAC / stateless / stateful, and remember the default gateway always comes from the RA. Drill these with our CCNA 200-301 practice questions and flashcards, and pair this guide with the DHCP and DNS guide for the full addressing picture.
Keep studying: DHCP & DNS Guide Subnet Calculator Flashcards Practice Questions
Ready to test yourself?
IPv6 addressing is one topic of six on the CCNA 200-301. Take the free 25-question mock test — no sign-up — and find out where you stand. One subscription (£5/month or £39/year) unlocks all 370 exam-style questions, 20 in-browser labs and 300 flashcards across all 10 certifications.
Start the free mock test →