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

Writing an address

  1. Full form: 2001:0db8:0000:0000:0a00:0000:0000:0001.
  2. Drop the leading zeros in each group: 2001:db8:0:0:a00:0:0:1.
  3. 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 advertisements

Every 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 briefEach interface's link-local and global addresses and state.
show ipv6 interface Gi0/1Addresses, joined multicast groups, and whether RAs are sent.
show ipv6 routeThe IPv6 routing table (C, L, S, O codes as in IPv4).
show ipv6 neighborsThe IPv6 equivalent of the ARP table.
ping 2001:db8:acad:20::10Tests reachability; IOS recognises the IPv6 address.

Exam traps

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