1.8 Configure and verify IPv6 addresses and prefixes
CCNA 200-301 v1.1 · 1.0 Network Fundamentals
IPv6 addresses are 128 bits written as eight groups of four hex digits. For the CCNA you shorten and expand them correctly, configure them on IOS (statically, with EUI-64 or with SLAAC), turn on routing, and read show ipv6 interface brief. The prefix for a LAN is almost always /64.
What you must know
- Shorten an IPv6 address: drop leading zeros in each group and replace one run of zero groups with
::. - Expand a shortened address back to 32 hex digits.
- Configure a static global address, an EUI-64 address and SLAAC on an interface.
- Enable
ipv6 unicast-routingand explain what it changes. - Verify with
show ipv6 interface briefandping ipv6.
Writing an address
- Full form: 2001:0db8:0000:0000:0a00:0000:0000:0001.
- Drop the leading zeros in each group: 2001:db8:0:0:a00:0:0:1.
- Replace one run of consecutive zero groups with
::(the longest; the first if they tie): 2001:db8:0:0:a00::1.
:: can appear only once, or the reader could not tell how many zeros each one hides. The prefix length follows a slash: 2001:db8:acad:10::/64 means the first 64 bits are the network (the routing prefix and subnet ID) and the last 64 bits are the interface ID.
Configuring IOS
ipv6 unicast-routing
!
interface GigabitEthernet0/1
ipv6 address 2001:db8:acad:10::1/64
!
interface GigabitEthernet0/2
ipv6 address 2001:db8:acad:20::/64 eui-64
!
interface GigabitEthernet0/0
ipv6 address autoconfig ! SLAAC from the ISP's router advertisementsEvery IPv6 interface also gets a link-local address (FE80::/10) on its own, used for neighbor discovery and as the next hop of routing protocols. ipv6 unicast-routing makes the router forward IPv6 and send router advertisements, which let hosts on the LAN configure themselves with SLAAC.
Commands
show ipv6 interface brief | Each interface's link-local and global addresses and state. |
show ipv6 interface Gi0/1 | Addresses, joined multicast groups, and whether RAs are sent. |
show ipv6 route | The IPv6 routing table (C, L, S, O codes as in IPv4). |
show ipv6 neighbors | The IPv6 equivalent of the ARP table. |
ping 2001:db8:acad:20::10 | Tests reachability; IOS recognises the IPv6 address. |
Exam traps
::may appear only once in an address.- Leading zeros may be dropped, trailing zeros may not:
0a00becomesa00, nota. - Without
ipv6 unicast-routingthe router does not forward IPv6 or send RAs, so SLAAC hosts get no prefix. - Hosts use the router's link-local address as their default gateway.
- A LAN prefix is /64; SLAAC and EUI-64 need it.
Check yourself
- Shorten 2001:0db8:0000:0000:0000:ff00:0042:8329.
- 2001:db8::ff00:42:8329.
- Expand 2001:db8:a::1.
- 2001:0db8:000a:0000:0000:0000:0000:0001.
- Hosts on a LAN get only a link-local address and no global one. What is missing on the router?
ipv6 unicast-routing(so the router sends router advertisements), or a global address on its LAN interface.
Labs
Try it live: IPv4 subnets, IPv6 and client settings on Windows, macOS and Linux
More topics in 1.0 Network Fundamentals
- 1.1 Explain what each kind of network component does
- 1.2 Describe common network topology designs
- 1.3 Compare cabling and physical interface types
- 1.4 Identify interface and cabling faults: collisions, errors, duplex or speed mismatch
- 1.5 Compare how TCP and UDP behave
- 1.6 Configure and verify IPv4 addresses and divide a network into subnets
- 1.10 Verify IP settings on Windows, macOS and Linux clients
- 1.11 Describe wireless fundamentals
- 1.12 Explain virtual machines, containers and VRFs
- 1.13 Describe how a switch forwards frames