Network Infrastructure and Connectivity · Topic 5 of 9

Troubleshooting IPv6 Addressing

Troubleshoot IPv6 unicast addressing: global, unique local and link-local addresses, prefix sizing, SLAAC versus static, and the faults that break each.

  • 6 min
In a nutshell
  • An IPv6 address is 128 bits. Shorten it by dropping leading zeros and using :: once.
  • Global unicast starts with 2 or 3. Unique local is FC00::/7, FD in practice. Link-local is FE80::/10.
  • A LAN uses a /64, and SLAAC requires it.

What it is

IPv6 uses 128-bit addresses written as eight groups of four hex digits, such as 2001:0DB8:0000:0001:0000:0000:0000:0001. The prefix length after the slash says how many leading bits identify the network.

This objective covers unicast addresses only: global unicast, unique local and link-local. You must read an address, judge whether the prefix size is right, and find out why a host or interface did not get the address it should.

Modified EUI-64, the way an interface builds its host part from a MAC address, has its own practice page after this one.

How it works

Identify the address type, check the prefix length, then check how the address was assigned.

Addressread the first digitsPrefixis it a 64 on a LAN?Assignmentstatic, SLAAC or DHCPv6?Routerunicast routing and RAs

Writing and shortening addresses

Two rules shorten an address. Drop the leading zeros in each group, then replace one run of all-zero groups with ::.

The :: can appear only once, because two would make the number of missing groups ambiguous. 2001:0DB8:0000:0001:0000:0000:0000:0001 becomes 2001:DB8:0:1::1. Zeros are dropped only from the front of a group, so 0100 becomes 100, never 1.

The three unicast types

TypePrefixScope
Global unicast2000::/3Routable on the internet
Unique localFC00::/7 (FD in practice)Private, inside an organization
Link-localFE80::/10One link only, never routed

Global unicast addresses start with 2 or 3. Unique local addresses are the IPv6 counterpart to private IPv4 and are not routed on the internet.

Every IPv6 interface has a link-local address. Routers use it as the next hop in routing and for neighbor discovery. The loopback address is ::1 and the unspecified address is ::. The range 2001:DB8::/32 is reserved for documentation.

Prefix sizing

A LAN subnet is almost always a /64: 64 bits of network and 64 bits of interface ID. SLAAC needs a /64 to work, so a LAN on /48 or /80 breaks automatic addressing.

A typical site receives a /48 and splits it into /64 subnets. The 16 bits between /48 and /64 are the subnet ID, which gives 65,536 subnets. A /56 gives 256 and a /60 gives 16.

There is no host counting as in IPv4. You number the subnets, for example 2001:db8:1:1::/64 and 2001:db8:1:2::/64.

Exam tip

To place an address in its subnet, compare the first four groups. Two addresses with different fourth groups are in different /64 subnets and need a router.

How an address is assigned

MethodHow it works
StaticTyped in by hand
SLAACThe host reads the prefix from a router advertisement and builds its own interface ID
Stateful DHCPv6A server hands out the address
Stateless DHCPv6SLAAC builds the address, DHCPv6 adds extras such as DNS servers

The router advertisement (RA) is an ICMPv6 message that the router sends on its LAN. It carries the prefix and flags that tell the host to use SLAAC, DHCPv6, or both. The host takes its default gateway from the router's link-local address in the RA.

Configuring a router interface

ipv6 unicast-routing
interface GigabitEthernet0/0
 ipv6 address 2001:db8:1:1::1/64
 ipv6 address fe80::1 link-local
 no shutdown

A router interface can also get its own address automatically with ipv6 address autoconfig (SLAAC) or ipv6 address dhcp (DHCPv6 client). Autoconfig builds the address from received RAs, which a router only accepts while ipv6 unicast-routing is off, so it suits a client-style interface.

Router# show ipv6 interface brief
GigabitEthernet0/0     [up/up]
    FE80::1
    2001:DB8:1:1::1

show ipv6 interface GigabitEthernet0/0 adds the joined multicast groups and RA settings. show ipv6 route lists connected networks as C and the interface addresses as L.

Common faults and what they look like

  • No ipv6 unicast-routing. The router has addresses but does not forward IPv6 packets and does not send RAs, so hosts never learn a prefix or gateway.
  • Prefix other than /64 on a SLAAC LAN. The host cannot build an address, so it keeps only the link-local one.
  • Wrong prefix on a host. A static address with /48 or /128 on a /64 LAN makes the host misjudge what is local, much like a wrong IPv4 mask.
  • Typo in the subnet ID. The host is in another /64 than its gateway, so it reaches nothing off the link.
  • Duplicate address. The router logs a duplicate address message and the address is not used.
  • Link-local next hop without an interface. A static route must name the exit interface when the next hop is a link-local address.
ipv6 route ::/0 GigabitEthernet0/0 fe80::1

On the host, check that the global address, the prefix length and a default gateway exist. On Windows, ipconfig lists the IPv6 address, a link-local address and the default gateway. On Linux, ip -6 address show and ip -6 route show do the same.

Watch out

A host that has only an FE80 address can talk on its own link but nothing beyond it. Look for a missing RA, a wrong prefix length or a router with IPv6 routing off.

Common mistakes

Using :: twice. The address is then invalid.

Dropping trailing zeros. 0100 and 1 are different values.

Forgetting ipv6 unicast-routing. The interface addresses work, but nothing is forwarded and no RAs go out.

Subnetting a LAN smaller than a /64. SLAAC then fails.

Looking for an IPv6 broadcast. There is none.

What to remember for the exam

  • An IPv6 address is 128 bits. Shorten it by dropping leading zeros and using :: once.
  • Global unicast starts with 2 or 3. Unique local is FC00::/7, FD in practice. Link-local is FE80::/10.
  • A LAN uses a /64, and SLAAC requires it.
  • A /48 holds 65,536 /64 subnets, a /56 holds 256 and a /60 holds 16.
  • ipv6 unicast-routing is needed to route IPv6 and to send RAs.
  • SLAAC builds the address from the RA prefix. DHCPv6 can be stateful or stateless.
  • The default gateway learned from an RA is the router's link-local address.
  • show ipv6 interface brief lists the link-local and global addresses.

Check yourself

  • Why does SLAAC fail on a LAN configured as 2001:db8:1:1::/80?

    SLAAC needs a /64 prefix to build the 64-bit interface ID, so hosts keep only their link-local address.

  • A host has only an FE80 address. Name two things to check on the router.

    Check that ipv6 unicast-routing is enabled and that the interface has a /64 global address, so the router sends router advertisements.

  • How many /64 subnets are in 2001:db8:acad::/48, and which group holds the subnet ID?

    65,536 subnets, and the subnet ID is the fourth group.

Topic 5 of 9 in Network Infrastructure and Connectivity

Test yourself on Network Infrastructure and Connectivity

The full Cisco CCNA 200-301 v2.0 question bank has 1,242 questions, with timed practice exams and an explanation for every answer.

This study guide is independent and is not affiliated with, endorsed by, or sponsored by Cisco. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.