Guide
IPv6 addressing, SLAAC, routing and troubleshooting (CCNA and CCNP)
This guide covers IPv6 address formats and types, interface configuration, SLAAC, routing, Neighbor Discovery and the ENCOR service topics tested in the related questions.
3 parts · 38 practice questions
CCNA IPv6 addressing, SLAAC and static routing
An IPv6 address is 128 bits, written as eight 16-bit hexadecimal fields separated by colons. Leading zeroes in a field may be omitted. One contiguous run of zero fields may be replaced by ::, which can appear only once. Thus 2001:0db8:0000:0001:0000:0000:0000:0001 compresses to 2001:db8:0:1::1. A /64 has a 64-bit prefix and a 64-bit interface identifier field; the identifier is not necessarily formed with EUI-64. A /48 contains 16 bits that can number /64 subnets, giving 65,536 subnets. IPv4 and IPv6 can run together on the same interfaces as dual stack during a gradual migration.
- IPv6 address length
- 128 bits
- Global unicast range
- 2000::/3
- IPv6 default route
- ::/0
The commonly assigned global unicast range is 2000::/3, addresses beginning with 2 or 3. Unique local addresses use FC00::/7; locally generated ULAs normally use its FD00::/8 half and are intended for internal routing, not global Internet routing. Link-local unicast addresses use FE80::/10, are required on IPv6-enabled interfaces, and are not routed beyond their link. FF00::/8 is multicast; IPv6 has no broadcast. FF02::1 is all nodes on this link and FF02::2 is all routers on this link. ::1/128 is loopback to the same node and is never sent onto a link. :: is the unspecified address, not an assigned address; a host without a usable address may use it as the source of a Router Solicitation. Anycast uses the same unicast-format address on multiple interfaces and routing delivers a packet to one selected instance. Multicast delivers to group members.
On Catalyst IOS XE, assigning a global address or using ipv6 enable enables IPv6 on the interface and automatically creates its link-local address. ipv6 address <address> link-local manually supplies the link-local address instead. ipv6 address <prefix>/64 eui-64 constructs the lower 64 bits from modified EUI-64: split the 48-bit MAC in half, insert FFFE, and invert the seventh bit of the first byte. For MAC 0011.2233.4455, the identifier is 0211:22FF:FE33:4455 because the first byte 00 becomes 02. The interface command ipv6 address autoconfig uses prefixes learned in Router Advertisements to configure EUI-64-based addresses on the interface. Hosts using SLAAC are not limited to EUI-64 identifiers.
IPv6 addressing and forwarding are separate. On Catalyst IOS XE, ipv6 unicast-routing is a global command that enables forwarding between interfaces. An interface can have a valid global and link-local address without it, and directly connected nodes can still communicate on their shared link because that traffic is not forwarded between router interfaces. Router Advertisements are sent periodically or in response to Router Solicitations, but their behavior and defaults depend on platform and interface configuration. When hosts receive no SLAAC address or default router, check that routing is enabled and verify that the interface sends an RA with the intended prefix.
SLAAC uses ICMPv6 Neighbor Discovery. A host sends a Router Solicitation (RS) to request an RA promptly; routers also send RAs periodically. The RA provides prefix information and default-router information. A /64 prefix-information option with the Autonomous (A) flag set permits a host to form its own address. Modified EUI-64 is not required. Router Lifetime determines whether the RA sender may be used as a default router: lifetime zero withdraws that default-router role, but does not itself invalidate separately advertised prefixes. A static host address does not install a route to remote networks; the host still needs a learned default router or an explicitly configured route.
IPv6 Neighbor Discovery replaces ARP. When a node needs a neighbor's Ethernet address, it sends an ICMPv6 Neighbor Solicitation (NS, type 135) and the neighbor answers with a Neighbor Advertisement (NA, type 136). NS is sent to a solicited-node multicast address formed from FF02::1:FF00:0/104 plus the low-order 24 bits of the target unicast or anycast address. For 2001:db8::1:2345:6789, that is FF02::1:FF45:6789. Because a link-local address such as FE80::1 can exist on many links, a router pinging it must specify the outgoing interface (zone) to identify which neighbor is meant.
A Cisco IPv6 static route is configured with ipv6 route <prefix>/<length> <next-hop> or an egress interface. A link-local next hop is only meaningful on its local link, so specify both the egress interface and the link-local next-hop. A default route uses ::/0. Check interface state and addresses with show ipv6 interface brief, and inspect installed routes with show ipv6 route.
ipv6 unicast-routing
interface GigabitEthernet0/0
ipv6 address 2001:db8:0:1::1/64
ipv6 address fe80::1 link-local
ipv6 address 2001:db8:0:1::/64 eui-64
ipv6 address autoconfig
ipv6 route 2001:db8:2::/64 GigabitEthernet0/1 fe80::2
ipv6 route ::/0 2001:db8:0:1::2
show ipv6 interface brief
show ipv6 route
ping ipv6 fe80::1References (5)
- IP Addressing Services Configuration Guide, Cisco IOS XE 17.13.x (Catalyst 9300): IPv6 Addresses and Stateless Autoconfiguration
- IPv6 Addressing and Basic Connectivity Configuration Guide, Cisco IOS Release 15M&T: ULA and anycast
- IPv6 Command Reference, Cisco IOS XE Release 3SE (Catalyst 3850): ipv6 address autoconfig
- IP Routing Configuration Guide, Cisco IOS XE 17.13.x (Catalyst 9300): IPv6 Unicast Routing
- IPv6 Configuration Guide, Cisco IOS XE Everest 16.6.x (Catalyst 9300): IPv6 Client IP Address Learning
IPv6 addressing and Neighbor Discovery troubleshooting
If hosts on a LAN receive neither a global address nor a default router, verify the router has ipv6 unicast-routing, the LAN interface is up and IPv6-enabled, and an RA advertises the intended /64 prefix. SLAAC on Ethernet requires a /64. Verify host state and prefix information as well as the router configuration; a router interface's own global address does not by itself prove that clients received a usable RA.
- SLAAC Ethernet prefix
- /64
- EUI-64 interface ID
- 0211:22FF:FE33:4455
- Router Lifetime zero
- not a default router
If a host can reach local peers but not a remote subnet, its address may be fine while its route is missing. Inspect the host route table for a default route or more-specific route; check RA Router Lifetime and router reachability, or configure the needed route. On the router, compare show ipv6 interface brief with show ipv6 route. The brief command shows interface state and link-local/global addresses; the route table shows connected, local, static and learned routes. If a link-local next hop is configured statically, confirm the route also names the correct egress interface.
For a failed EUI-64 address, verify the MAC transformation: split the six bytes, insert FF:FE between the halves, and flip bit 1 (the universal/local bit) of the first byte. For 00:11:22:33:44:55, that produces 02:11:22:FF:FE:33:44:55, or interface ID 0211:22FF:FE33:4455. A configured /48 is commonly divided into 65,536 /64 LAN prefixes. Do not substitute a non-/64 prefix for a SLAAC Ethernet LAN.
The RA flags describe address and other-configuration methods. With prefix A=1, hosts can form addresses through SLAAC. M=1 signals managed, stateful DHCPv6 address configuration; O=1 signals other DHCPv6 configuration such as DNS. Thus A=1, M=0, O=1 means SLAAC address plus stateless DHCPv6 for other settings. M=1, O=0 directs clients to stateful DHCPv6 for addresses; DHCPv6 can also supply DNS, so O need not be set for that use. DHCPv6 does not supply the default-router choice: hosts learn that from RAs. Host response to these flags can vary, so confirm the client behavior and DHCPv6 options in use.
When a router has several interfaces, a link-local destination is ambiguous without a link/egress interface. For NS and address-resolution failures, remember that IPv6 uses ICMPv6 NS and NA, not ARP. The solicited-node multicast address takes the last 24 address bits: 2001:db8::1:2345:6789 maps to FF02::1:FF45:6789. Check that local-link multicast and ICMPv6 Neighbor Discovery are not being filtered. A Router Lifetime of zero means the advertising router is not a default router; it does not mean its advertised prefix has expired.
show ipv6 interface brief
show ipv6 interface GigabitEthernet0/0
show ipv6 route
show running-config | include ipv6 unicast-routing
show running-config interface GigabitEthernet0/0References (4)
- IP Routing Configuration Guide, Cisco IOS XE 17.13.x (Catalyst 9300): IPv6 Unicast Routing
- IPv6 Configuration Guide, Cisco IOS XE Everest 16.6.x (Catalyst 9300): IPv6 Client IP Address Learning
- IP Addressing Services Configuration Guide, Cisco IOS XE 17.13.x (Catalyst 9300): Configuring DHCP
- IPv6 Configuration Guide, Cisco IOS XE Release 3.6E (Catalyst 3850)
ENCOR IPv6 services and inter-subnet wireless roaming
Neighbor Solicitation and Neighbor Advertisement are ICMPv6 types 135 and 136. NS requests a target's link-layer address on the local link; NA supplies the response. They replace ARP's address-resolution role. The solicited-node multicast prefix is FF02:0:0:0:0:1:FF00:0/104; append the target's low-order 24 bits. A node joins the corresponding solicited-node group for each unicast or anycast address. IPv6 also has no broadcast; FF02::1 is all nodes on the link and FF02::2 is all routers.
- Neighbor Solicitation
- ICMPv6 type 135
- Neighbor Advertisement
- ICMPv6 type 136
- Catalyst 9800 mobility tunnel
- CAPWAP
For SLAAC and DHCPv6, read both RA flags and the prefix's A flag. A=1 allows SLAAC address formation from the advertised /64. M=1 indicates managed stateful DHCPv6 address configuration. O=1 indicates DHCPv6 is available for other settings, such as DNS, when the address is formed through SLAAC. When M=1, DHCPv6 can provide address and DNS settings even if O=0. RAs, rather than DHCPv6, identify default routers. A Router Lifetime of zero makes the sender ineligible as a default router from that RA, independently of prefix lifetimes.
A link-local address can be reused on every interface, so a static route using an FE80::/10 next hop must identify its local outgoing interface as well as the next-hop address. For example: ipv6 route 2001:db8:20::/64 GigabitEthernet0/0 fe80::2. A ULA is in FC00::/7, intended for local communication and not expected to be globally routed; locally assigned ULAs use FD00::/8. FE80::/10 is link-local, 2000::/3 global unicast, and FF00::/8 multicast.
During an inter-subnet Layer 3 roam between Catalyst 9800 controllers, the original controller remains the anchor and the newly joined controller is foreign. A mobility tunnel carries client traffic back to the anchor, preserving the client's original IP address. Catalyst 9800 controllers use a CAPWAP mobility tunnel. Older AireOS controllers predominantly use Ethernet over IP (EoIP) for mobility tunnels. This is a wireless mobility service behavior, separate from IPv6 address assignment, but it is included because it appears in the ENCOR service questions.
ipv6 route 2001:db8:20::/64 GigabitEthernet0/0 fe80::2
show ipv6 neighbors
show ipv6 routeReferences (5)
- IP Routing Configuration Guide, Cisco IOS XE 17.13.x (Catalyst 9300): Static IPv6 Routing
- IPv6 Command Reference, Cisco IOS XE Release 3SE (Catalyst 3850): ipv6 address autoconfig
- IPv6 Addressing and Basic Connectivity Configuration Guide, Cisco IOS Release 15M&T: ULA and anycast
- Cisco Catalyst 9800 Series: A Primer on Enterprise WLAN Roaming
- Cisco Catalyst 9800 IOS XE 17.15 Mobility Configuration Guide
Check your understanding
IPv6 addressing, SLAAC, routing and troubleshooting (CCNA and CCNP)
All 3 sections · no timer
Unlimited retries
Questions from every section are combined into one assessment. Answer them all correctly to complete the article.
Your completion saves in this browser. Sign in to sync it to your account.