On this page 22 sections
  1. 1. Why IPv6?
  2. 2. Hexadecimal review
  3. 3. Shortening and expanding IPv6 addresses
  4. 4. Prefix length and the /64 boundary
  5. 5. IPv6 address types
  6. 6. Global unicast addresses (GUA)
  7. 7. Unique-local and link-local addresses
  8. 8. Multicast scopes
  9. 9. Solicited-node multicast
  10. 10. Modified EUI-64
  11. 11. Ways to configure IPv6 addresses
  12. 12. SLAAC and Router Advertisements (RA)
  13. 13. DHCPv6 configuration example
  14. 14. NDP — Neighbor Discovery Protocol
  15. 15. DAD — Duplicate Address Detection
  16. 16. IPv6 routing essentials
  17. 17. Lab — two routers and two IPv6 LANs
  18. 18. IPv6 protocol comparisons
  19. 19. Essential Cisco verification commands
  20. 20. CCNA exam traps — memorize these
  21. 21. CCNA quick quiz
  22. 22. References
01

1. Why IPv6?

IPv4 has 32-bit addresses; IPv6 has 128-bit addresses. IPv6 provides a vastly larger address space and supports automatic address configuration.

  • IPv6 has no broadcast; it uses multicast and anycast.
  • IPv6 routers do not fragment packets in transit. The sending host handles fragmentation if needed.
  • IPv6 uses ICMPv6 Neighbor Discovery (NDP) instead of ARP.
  • A typical LAN subnet is /64.
  • IPv6 and IPv4 can coexist in a dual-stack network.
02

2. Hexadecimal review

Each hexadecimal digit represents 4 bits. Values go from 0 to 9, then A to F.

HexDecimalBinary
000000
991001
A101010
B111011
C121100
D131101
E141110
F151111

An IPv6 address has 8 groups of 4 hexadecimal digits: 8 × 16 = 128 bits.

### Example: Full IPv6 address

2001:0DB8:0000:0000:0000:0000:0000:0001
03

3. Shortening and expanding IPv6 addresses

  • Remove leading zeros from each 16-bit group.
  • Replace the longest consecutive run of zero groups with :: (if tied, use the first).
  • :: may appear only once in an address.
  • Do not remove trailing zeros from a nonzero group.

### Example: Compress an address

Full:       2001:0DB8:0000:0000:0000:00AB:0000:0001
Compressed: 2001:DB8::AB:0:1

### Example: Expand an address

Compressed: FE80::1
Expanded:   FE80:0000:0000:0000:0000:0000:0000:0001

Exam trap: 2001::DB8::1 is invalid: two instances of ::.

04

4. Prefix length and the /64 boundary

IPv6 uses CIDR prefix notation such as /48, /64 or /128, not dotted-decimal subnet masks.

For a conventional /64 LAN, the first 64 bits represent the network prefix and the remaining 64 bits identify the interface.

### Example: Network prefix and interface ID

Address:      2001:DB8:ACAD:10:1234:5678:9ABC:DEF0/64
Network:      2001:DB8:ACAD:10::/64
Interface ID: 1234:5678:9ABC:DEF0

Two addresses are on the same /64 when their first four groups match.

05

5. IPv6 address types

TypeRange / addressPurpose
Global unicast2000::/3Globally routable address space
Unique localFC00::/7Internal/private communication; commonly FD00::/8
Link-localFE80::/10Same-link communication; not forwarded by routers
MulticastFF00::/8Send to a group
AnycastUses unicast address spaceSend to the nearest member according to routing
Loopback::1/128This host
Unspecified::/128No address assigned / unspecified source

Exam trap: IPv6 has no broadcast address. Anycast does not have a dedicated prefix.

06

6. Global unicast addresses (GUA)

Global unicast addresses are broadly comparable to public IPv4 addresses. 2000::/3 is the global-unicast allocation range; not every address in it is assigned for public Internet use.

A conventional allocation may be represented as:

| Global routing prefix | Subnet ID | Interface ID |
|        48 bits        |  16 bits |   64 bits    |

Example: 2001:DB8:ACAD:0010::1/64
         └─ /48 ─────┘│
                       └ Subnet 0010

2001:DB8::/32 is reserved for documentation and labs, not real public addressing.

07

7. Unique-local and link-local addresses

Unique local (`FC00::/7`): private-use IPv6 space, normally drawn from FD00::/8; not intended to be routed on the public Internet.

Link-local (`FE80::/10`): automatically present on IPv6-enabled interfaces in typical deployments and used for NDP, router advertisements, and next-hop communication. A router must not forward a packet with a link-local destination to another link.

The same link-local address can be reused on different links, but must be unique within each link.

Configure a link-local address manually
interface GigabitEthernet0/0
 ipv6 address FE80::1 link-local
08

8. Multicast scopes

An IPv6 multicast address starts with FF. Its fourth hexadecimal digit indicates the scope.

PrefixScopeMeaning
FF01::/16Interface-localStays within one interface (older texts: node-local)
FF02::/16Link-localStays on the local link
FF05::/16Site-localWithin an administratively defined site
FF08::/16Organization-localAcross an organization
FF0E::/16GlobalGlobal scope

A smaller scope must not be forwarded beyond its scope boundary.

### Important IPv6 multicast groups

AddressMeaning
FF02::1All IPv6 nodes on the link
FF02::2All IPv6 routers on the link
FF02::5All OSPFv3 routers
FF02::6OSPFv3 designated routers
FF02::1:2DHCPv6 servers and relay agents
FF02::1:FFXX:XXXXSolicited-node multicast

Exam trap: FF02::1 means all nodes, while FF02::2 means all routers.

09

9. Solicited-node multicast

NDP uses a solicited-node multicast address for neighbor solicitation rather than broadcasting an ARP request. It is based on the final 24 bits of a unicast or anycast IPv6 address.

### Example: Derive a solicited-node address

Unicast IPv6:    2001:DB8:ACAD:1::ABCD:1234
Last 24 bits:    CD1234
Solicited-node:  FF02::1:FFCD:1234

This reduces unnecessary processing because the request targets a more specific multicast group than all nodes.

10

10. Modified EUI-64

Modified EUI-64 can produce a 64-bit interface identifier from a 48-bit MAC address.

1. Split the MAC into two 24-bit halves.
2. Insert FFFE in the middle.
3. Invert the U/L bit (value 0x02) in the first byte.
4. Append the resulting 64-bit interface ID to the /64 prefix.

### Example: MAC to Modified EUI-64

MAC:           00:1A:2B:3C:4D:5E
Split:         00:1A:2B | 3C:4D:5E
Insert FF:FE:  00:1A:2B:FF:FE:3C:4D:5E
Flip U/L bit:  02:1A:2B:FF:FE:3C:4D:5E

Interface ID:  021A:2BFF:FE3C:4D5E
IPv6 /64:      2001:DB8:1:1:21A:2BFF:FE3C:4D5E

Exam trap: The first byte 00 becomes 02 here. Not every IPv6 host uses EUI-64; many systems generate stable or temporary privacy-oriented interface IDs.

Use EUI-64 on Cisco IOS
interface GigabitEthernet0/0
 ipv6 address 2001:DB8:1:1::/64 eui-64
11

11. Ways to configure IPv6 addresses

MethodWhere the address comes fromKey point
StaticAdministratorManually chosen IPv6 address
EUI-64Prefix + MAC-derived interface IDCisco IOS eui-64
SLAACRouter Advertisement + host-generated IDNo address lease required
Stateful DHCPv6DHCPv6 serverServer supplies address
Stateless DHCPv6SLAAC + DHCPv6 optionsDHCPv6 supplies information such as DNS

ipv6 unicast-routing enables IPv6 forwarding on the router and normally allows it to send Router Advertisements on enabled interfaces.

Static global unicast address
configure terminal
ipv6 unicast-routing
interface GigabitEthernet0/0
 ipv6 address 2001:DB8:10:1::1/64
 no shutdown
Automatically form a Cisco interface address using SLAAC
interface GigabitEthernet0/1
 ipv6 address autoconfig
 no shutdown
12

12. SLAAC and Router Advertisements (RA)

SLAAC stands for *Stateless Address Autoconfiguration*. The router advertises a prefix; the host creates its own interface identifier.

Typical process:

1. The host forms a link-local address.
2. The host uses DAD to check for duplicates.
3. The host receives a Router Advertisement (RA), possibly after sending an RS.
4. If the prefix permits autonomous configuration, the host creates a global unicast address.
5. The host performs DAD on the new address.

An RA can provide the default router and prefix information. DHCPv6 does not supply the IPv6 default gateway as DHCPv4 does.

### SLAAC and DHCPv6 RA flags

M flagO flagInterpretation
00SLAAC; additional DHCPv6 configuration not indicated
01SLAAC + other information via stateless DHCPv6
10Stateful DHCPv6 address configuration indicated
11Stateful DHCPv6 address and other information indicated

Exam trap: The RA's prefix A flag controls whether autonomous address configuration is allowed. M/O flags alone do not guarantee SLAAC works. Some hosts ignore stateful DHCPv6 address assignment.

Advertise other DHCPv6 information
interface GigabitEthernet0/0
 ipv6 nd other-config-flag
Indicate stateful DHCPv6
interface GigabitEthernet0/0
 ipv6 nd managed-config-flag
13

13. DHCPv6 configuration example

A DHCPv6 pool can provide DNS information without leasing addresses (stateless). For stateful DHCPv6, configure an address prefix in the pool and enable the managed flag.

Note: This is a Cisco IOS example; support and host behavior vary by platform. Router Advertisements still provide default-router discovery.

Stateless DHCPv6 — DNS information
ipv6 dhcp pool LAN-INFO
 dns-server 2001:DB8:53::53
 domain-name example.com
interface GigabitEthernet0/0
 ipv6 address 2001:DB8:10:1::1/64
 ipv6 nd other-config-flag
 ipv6 dhcp server LAN-INFO
Stateful DHCPv6 — address pool
ipv6 dhcp pool LAN-STATEFUL
 address prefix 2001:DB8:20:1::/64
 dns-server 2001:DB8:53::53
interface GigabitEthernet0/1
 ipv6 address 2001:DB8:20:1::1/64
 ipv6 nd managed-config-flag
 ipv6 dhcp server LAN-STATEFUL
14

14. NDP — Neighbor Discovery Protocol

NDP uses ICMPv6 to provide several functions that require different mechanisms in IPv4.

MessageICMPv6 typeFunction
Router Solicitation (RS)133Host asks routers for an RA
Router Advertisement (RA)134Router advertises prefix/default-router information
Neighbor Solicitation (NS)135Address-to-MAC discovery and DAD
Neighbor Advertisement (NA)136Responds to NS / announces neighbor information
Redirect137Indicates a better first hop

Exam trap: ARP is not used in IPv6. NDP is part of ICMPv6.

Inspect learned neighbors
show ipv6 neighbors
show ipv6 interface GigabitEthernet0/0
15

15. DAD — Duplicate Address Detection

DAD checks whether an IPv6 unicast address is already used on the same link.

  • The device sends a Neighbor Solicitation for its tentative address.
  • The NS uses the unspecified source `::` during DAD.
  • An indication that another node owns the address means the address cannot be assigned normally.

Exam trap: DAD uses NS, not Router Solicitation.

16

16. IPv6 routing essentials

IPv6 routers use the longest-prefix match, just like IPv4. A standard IPv6 default route is ::/0.

Typical IPv6 routing table codes:

  • C — Connected network.
  • L — Local interface address.
  • S — Static route.
  • O — OSPFv3 route.

Exam trap: A link-local next-hop address is only meaningful on a specific link. On Cisco IOS, specify the outgoing interface when using it as a static route's next hop.

Static IPv6 route via global next hop
ipv6 unicast-routing
ipv6 route 2001:DB8:30::/64 2001:DB8:12::2
IPv6 default route
ipv6 route ::/0 2001:DB8:12::2
Link-local next hop needs exit interface
ipv6 route 2001:DB8:30::/64 GigabitEthernet0/1 FE80::2
17

17. Lab — two routers and two IPv6 LANs

Test PC1-to-PC2 and confirm both forward and return routes exist.

Topology and addressing
PC1 --- LAN 1 --- R1 -------- R2 --- LAN 2 --- PC2

LAN 1:      2001:DB8:10:1::/64
R1 G0/0:    2001:DB8:10:1::1/64
R1 G0/1:    2001:DB8:12::1/64
R2 G0/1:    2001:DB8:12::2/64
R2 G0/0:    2001:DB8:20:1::1/64
LAN 2:      2001:DB8:20:1::/64

PC1: 2001:DB8:10:1::10/64, gateway R1
PC2: 2001:DB8:20:1::20/64, gateway R2
Configure R1
configure terminal
ipv6 unicast-routing
interface GigabitEthernet0/0
 ipv6 address 2001:DB8:10:1::1/64
 no shutdown
interface GigabitEthernet0/1
 ipv6 address 2001:DB8:12::1/64
 no shutdown
exit
ipv6 route 2001:DB8:20:1::/64 2001:DB8:12::2
Configure R2
configure terminal
ipv6 unicast-routing
interface GigabitEthernet0/0
 ipv6 address 2001:DB8:20:1::1/64
 no shutdown
interface GigabitEthernet0/1
 ipv6 address 2001:DB8:12::2/64
 no shutdown
exit
ipv6 route 2001:DB8:10:1::/64 2001:DB8:12::1
Verify end-to-end connectivity
show ipv6 interface brief
show ipv6 route
show ipv6 neighbors
ping ipv6 2001:DB8:12::2
ping ipv6 2001:DB8:20:1::20
traceroute ipv6 2001:DB8:20:1::20
18

18. IPv6 protocol comparisons

IPv4IPv6
32-bit address128-bit address
ARPNDP (ICMPv6)
BroadcastNo broadcast; multicast instead
DHCPv4 can supply gatewayDefault router from RA
0.0.0.0/0::/0
127.0.0.1::1
show ip routeshow ipv6 route
ip routeipv6 route
19

19. Essential Cisco verification commands

Address missing: check ipv6 address, interface state, RA, DAD and DHCPv6.

Can ping local router but not a remote LAN: check remote routes, return routes, default gateway and ipv6 unicast-routing.

Link-local ping fails: when a destination is ambiguous across interfaces, specify the outgoing interface or zone identifier as required by the platform.

No SLAAC address: check RA reception and the prefix's autonomous (A) flag.

Stateful DHCPv6 gives an address but traffic fails: check default-router information from RA.

IPv6 troubleshooting checklist
show ipv6 interface brief
show ipv6 interface GigabitEthernet0/0
show ipv6 route
show ipv6 route static
show ipv6 neighbors
show ipv6 protocols
show running-config | include ipv6
ping ipv6 2001:DB8:20:1::20
traceroute ipv6 2001:DB8:20:1::20
20

20. CCNA exam traps — memorize these

1. IPv6 = 128 bits; a normal LAN prefix = /64.
2. IPv6 = no broadcast.
3. FE80::/10 = link-local; routers do not forward it.
4. FC00::/7 = unique local; 2000::/3 = global unicast space.
5. FF02::1 = all nodes; FF02::2 = all routers.
6. FF02::1:FFXX:XXXX = solicited-node multicast.
7. RA = ICMPv6 134; RS = 133; NS = 135; NA = 136.
8. NDP replaces ARP; NS/NA resolve a neighbor's link-layer address.
9. Modified EUI-64: insert FFFE, then flip the U/L bit.
10. SLAAC uses an RA prefix; DHCPv6 does not provide the default gateway.
11. IPv6 default route = `::/0`.
12. IPv6 static route with a link-local next hop requires the outgoing interface.
13. ipv6 unicast-routing enables router forwarding.
14. ::1 = loopback; :: = unspecified.
15. IPv6 routers do not fragment transit packets.

21

21. CCNA quick quiz

Try these before looking at the answers.

Q1. Which address reaches all IPv6 routers on the local link?

  • A. FF02::1
  • B. FF02::2
  • C. FE80::1
  • D. FF05::1

Q2. A host wants to discover the MAC address associated with an IPv6 neighbor. Which message does it use?

  • A. ARP Request
  • B. Router Advertisement
  • C. Neighbor Solicitation
  • D. DHCPv6 Solicit

Q3. Which prefix identifies IPv6 link-local address space?

  • A. FC00::/7
  • B. 2000::/3
  • C. FE80::/10
  • D. FF00::/8

Q4. What is inserted between the two halves of a MAC address when generating a Modified EUI-64 identifier?

  • A. FFFF
  • B. FFFE
  • C. 0000
  • D. FE80

Q5. What tells an IPv6 SLAAC host about its default router?

  • A. DHCPv6 Reply
  • B. Neighbor Advertisement
  • C. Router Advertisement
  • D. DNS

Q6. Which is a valid IPv6 default route?

  • A. 0.0.0.0/0
  • B. ::1/128
  • C. FE80::/10
  • D. ::/0

Q7. What is the solicited-node multicast address for 2001:DB8::ABCD:1234?

  • A. FF02::1:FFCD:1234
  • B. FF02::2
  • C. FF05::ABCD:1234
  • D. FE80::ABCD:1234

Q8. What does ipv6 unicast-routing enable on an IOS router?

  • A. ARP requests
  • B. IPv6 forwarding
  • C. IPv4 NAT
  • D. RIP version 2

Q9. Which RA flag signals that the host should use DHCPv6 for address configuration?

  • A. O flag
  • B. M flag
  • C. A flag
  • D. L flag

Q10. Which static route is appropriate when the next hop is link-local?

  • A. ipv6 route 2001:DB8:30::/64 FE80::2
  • B. ipv6 route 2001:DB8:30::/64 GigabitEthernet0/1 FE80::2
  • C. ip route 2001:DB8:30::/64 FE80::2
  • D. ipv6 route 2001:DB8:30::/64 0.0.0.0

### Quiz answers

QAnswerReason
1BFF02::2 = all link-local routers
2CNDP Neighbor Solicitation replaces ARP Request
3CLink-local prefix is FE80::/10
4BEUI-64 inserts FFFE
5CThe default router is learned from RA
6DIPv6 default route is ::/0
7AUse the final 24 bits CD1234
8BEnables IPv6 packet forwarding
9BM = Managed address configuration
10BLink-local next hop requires exit interface
22

22. References

  • IETF RFC 4291 — IPv6 Addressing Architecture: https://www.rfc-editor.org/rfc/rfc4291.html
  • IETF RFC 4861 — Neighbor Discovery: https://www.rfc-editor.org/rfc/rfc4861.html
  • IETF RFC 4862 — Stateless Address Autoconfiguration: https://www.rfc-editor.org/rfc/rfc4862.html
  • Cisco — IPv6 basics and EUI-64: https://www.cisco.com/c/en/us/td/docs/voice_ip_comm/uc_system/IPv6/vtgs_b_ipv6-deployment-guide-for-cisco/vtgs_b_ipv6-deployment-guide-for-cisco_chapter_01.pdf