On this page 22 sections
- 1. Why IPv6?
- 2. Hexadecimal review
- 3. Shortening and expanding IPv6 addresses
- 4. Prefix length and the /64 boundary
- 5. IPv6 address types
- 6. Global unicast addresses (GUA)
- 7. Unique-local and link-local addresses
- 8. Multicast scopes
- 9. Solicited-node multicast
- 10. Modified EUI-64
- 11. Ways to configure IPv6 addresses
- 12. SLAAC and Router Advertisements (RA)
- 13. DHCPv6 configuration example
- 14. NDP — Neighbor Discovery Protocol
- 15. DAD — Duplicate Address Detection
- 16. IPv6 routing essentials
- 17. Lab — two routers and two IPv6 LANs
- 18. IPv6 protocol comparisons
- 19. Essential Cisco verification commands
- 20. CCNA exam traps — memorize these
- 21. CCNA quick quiz
- 22. References
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.
2. Hexadecimal review
Each hexadecimal digit represents 4 bits. Values go from 0 to 9, then A to F.
| Hex | Decimal | Binary |
|---|---|---|
| 0 | 0 | 0000 |
| 9 | 9 | 1001 |
| A | 10 | 1010 |
| B | 11 | 1011 |
| C | 12 | 1100 |
| D | 13 | 1101 |
| E | 14 | 1110 |
| F | 15 | 1111 |
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:00013. 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:0001Exam trap: 2001::DB8::1 is invalid: two instances of ::.
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:DEF0Two addresses are on the same /64 when their first four groups match.
5. IPv6 address types
| Type | Range / address | Purpose |
|---|---|---|
| Global unicast | 2000::/3 | Globally routable address space |
| Unique local | FC00::/7 | Internal/private communication; commonly FD00::/8 |
| Link-local | FE80::/10 | Same-link communication; not forwarded by routers |
| Multicast | FF00::/8 | Send to a group |
| Anycast | Uses unicast address space | Send to the nearest member according to routing |
| Loopback | ::1/128 | This host |
| Unspecified | ::/128 | No address assigned / unspecified source |
Exam trap: IPv6 has no broadcast address. Anycast does not have a dedicated prefix.
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 00102001:DB8::/32 is reserved for documentation and labs, not real public addressing.
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.
interface GigabitEthernet0/0
ipv6 address FE80::1 link-local8. Multicast scopes
An IPv6 multicast address starts with FF. Its fourth hexadecimal digit indicates the scope.
| Prefix | Scope | Meaning |
|---|---|---|
FF01::/16 | Interface-local | Stays within one interface (older texts: node-local) |
FF02::/16 | Link-local | Stays on the local link |
FF05::/16 | Site-local | Within an administratively defined site |
FF08::/16 | Organization-local | Across an organization |
FF0E::/16 | Global | Global scope |
A smaller scope must not be forwarded beyond its scope boundary.
### Important IPv6 multicast groups
| Address | Meaning |
|---|---|
FF02::1 | All IPv6 nodes on the link |
FF02::2 | All IPv6 routers on the link |
FF02::5 | All OSPFv3 routers |
FF02::6 | OSPFv3 designated routers |
FF02::1:2 | DHCPv6 servers and relay agents |
FF02::1:FFXX:XXXX | Solicited-node multicast |
Exam trap: FF02::1 means all nodes, while FF02::2 means all routers.
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:1234This reduces unnecessary processing because the request targets a more specific multicast group than all nodes.
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:4D5EExam 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.
interface GigabitEthernet0/0
ipv6 address 2001:DB8:1:1::/64 eui-6411. Ways to configure IPv6 addresses
| Method | Where the address comes from | Key point |
|---|---|---|
| Static | Administrator | Manually chosen IPv6 address |
| EUI-64 | Prefix + MAC-derived interface ID | Cisco IOS eui-64 |
| SLAAC | Router Advertisement + host-generated ID | No address lease required |
| Stateful DHCPv6 | DHCPv6 server | Server supplies address |
| Stateless DHCPv6 | SLAAC + DHCPv6 options | DHCPv6 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.
configure terminal
ipv6 unicast-routing
interface GigabitEthernet0/0
ipv6 address 2001:DB8:10:1::1/64
no shutdowninterface GigabitEthernet0/1
ipv6 address autoconfig
no shutdown12. 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 flag | O flag | Interpretation |
|---|---|---|
| 0 | 0 | SLAAC; additional DHCPv6 configuration not indicated |
| 0 | 1 | SLAAC + other information via stateless DHCPv6 |
| 1 | 0 | Stateful DHCPv6 address configuration indicated |
| 1 | 1 | Stateful 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.
interface GigabitEthernet0/0
ipv6 nd other-config-flaginterface GigabitEthernet0/0
ipv6 nd managed-config-flag13. 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.
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-INFOipv6 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-STATEFUL14. NDP — Neighbor Discovery Protocol
NDP uses ICMPv6 to provide several functions that require different mechanisms in IPv4.
| Message | ICMPv6 type | Function |
|---|---|---|
| Router Solicitation (RS) | 133 | Host asks routers for an RA |
| Router Advertisement (RA) | 134 | Router advertises prefix/default-router information |
| Neighbor Solicitation (NS) | 135 | Address-to-MAC discovery and DAD |
| Neighbor Advertisement (NA) | 136 | Responds to NS / announces neighbor information |
| Redirect | 137 | Indicates a better first hop |
Exam trap: ARP is not used in IPv6. NDP is part of ICMPv6.
show ipv6 neighbors
show ipv6 interface GigabitEthernet0/015. 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. 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.
ipv6 unicast-routing
ipv6 route 2001:DB8:30::/64 2001:DB8:12::2ipv6 route ::/0 2001:DB8:12::2ipv6 route 2001:DB8:30::/64 GigabitEthernet0/1 FE80::217. Lab — two routers and two IPv6 LANs
Test PC1-to-PC2 and confirm both forward and return routes exist.
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 R2configure 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::2configure 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::1show 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::2018. IPv6 protocol comparisons
| IPv4 | IPv6 |
|---|---|
| 32-bit address | 128-bit address |
| ARP | NDP (ICMPv6) |
| Broadcast | No broadcast; multicast instead |
| DHCPv4 can supply gateway | Default router from RA |
0.0.0.0/0 | ::/0 |
127.0.0.1 | ::1 |
show ip route | show ipv6 route |
ip route | ipv6 route |
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.
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::2020. 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. 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
| Q | Answer | Reason |
|---|---|---|
| 1 | B | FF02::2 = all link-local routers |
| 2 | C | NDP Neighbor Solicitation replaces ARP Request |
| 3 | C | Link-local prefix is FE80::/10 |
| 4 | B | EUI-64 inserts FFFE |
| 5 | C | The default router is learned from RA |
| 6 | D | IPv6 default route is ::/0 |
| 7 | A | Use the final 24 bits CD1234 |
| 8 | B | Enables IPv6 packet forwarding |
| 9 | B | M = Managed address configuration |
| 10 | B | Link-local next hop requires exit interface |
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