LABS · PROTOCOLS · NET TRACK

IPv6 and NDP: addresses without DHCP, neighbors without ARP

IPv6 has no ARP and no broadcast: NDP finds routers, hands out prefixes, detects duplicate addresses and resolves MACs. Follow every message between Ana's laptop and a Cisco router, from the fe80:: address to the first ping to Montreal.

Level: intermediate · 20 minutes

Interactive simulation

The animation needs JavaScript. The full lesson is written out below.

Download the capture and open it in Wireshark to keep exploring.

What changes with IPv6

IPv6 uses 128-bit addresses written in hexadecimal, a fixed 40-byte header with no checksum and no broadcast: what used to go to everyone now goes to multicast groups. Every interface has several addresses at once: a link-local one (fe80::/10, only for its link) and one or more global ones. NDP, carried inside ICMPv6, replaces ARP, router discovery and part of what DHCP did.

NDP's five messages

TypeMessageTypical destinationWhat it's for
133Router Solicitation (RS)ff02::2Ask for an RA without waiting
134Router Advertisement (RA)ff02::1Advertise prefix, MTU, gateway and mode (SLAAC or DHCPv6)
135Neighbor Solicitation (NS)Solicited-node or unicastResolve a MAC, DAD and NUD
136Neighbor Advertisement (NA)Whoever asked (or ff02::1)Answer with the MAC
137RedirectUnicastPoint to a better first hop (not shown here)

How it works: from fe80:: to the global address

Six steps: the link-local address with DAD, the Router Solicitation, the Router Advertisement, SLAAC with another DAD, the ping with neighbor resolution and the NUD check.

  1. Link-local address and DAD

    On connecting, the laptop builds its link-local address: fe80:: plus a 64-bit identifier derived from its MAC with modified EUI-64 (00:00:5e:00:53:10 → 0200:5eff:fe00:5310: split the MAC, insert ff:fe and flip the seventh bit). Before using it, it runs DAD: it sends a Neighbor Solicitation from :: (it has no address yet) to the solicited-node group ff02::1:ff00:5310. Nobody answers, so the address is its own.

  2. Router Solicitation: is there a router?

    With its link-local address ready, the laptop sends a Router Solicitation to ff02::2, the all-routers group, so it doesn't have to wait for the next periodic advertisement (Cisco sends them every 200 seconds). It includes its MAC in the Source Link-Layer Address option, so R1 can answer without resolving it. Like all NDP, it goes with hop limit 255.

  3. Router Advertisement: prefix and gateway

    R1 answers with a Router Advertisement to ff02::1 (all nodes), from fe80::1. It carries the 2001:db8:acad:10::/64 prefix with the L (on-link) and A (usable for autoconfiguration) flags, the 1500 MTU, R1's MAC and a router lifetime of 1800 s: the laptop installs fe80::1 as its default gateway. M and O at 0 mean there's no DHCPv6: the laptop will use SLAAC.

  4. SLAAC: the global address and another DAD

    The laptop combines the RA's prefix with its EUI-64 identifier and gets 2001:db8:acad:10:200:5eff:fe00:5310. Before using it, DAD again: an NS from :: to the same solicited-node group (ff02::1:ff00:5310), because both addresses end in the same 24 bits. With no answer, the address is valid for 30 days and preferred for 7, as R1 advertised.

  5. Ping to Montreal: R1 resolves the address

    Ana pings 2001:db8:acad:30::10, in Montreal. The laptop already knows R1's MAC from the RA and sends the Echo Request straight away. The reply comes back to R1, which doesn't have the MAC for the laptop's global address: it sends a Neighbor Solicitation to the solicited-node group, with its own MAC. The laptop answers with a Neighbor Advertisement (S = solicited, O = override) and its MAC. R1 delivers the Echo Reply, which arrives with hop limit 62: two routers on the way.

  6. NUD: is the router still there?

    The laptop's cache entry for fe80::1 came from the RA (STALE state). Using it for the ping moved it to DELAY and, since a ping doesn't confirm the neighbor is still reachable, after 5 seconds it moves to PROBE: the laptop sends a unicast Neighbor Solicitation straight to R1's MAC. R1 answers with a Neighbor Advertisement with R (I'm a router), S and O. The entry becomes REACHABLE. That's neighbor unreachability detection (NUD).

Modified EUI-64, step by step

StepResult
The laptop's MAC00:00:5e:00:53:10
Split it in two and put ff:fe in the middle00:00:5e:ff:fe:00:53:10
Flip the seventh bit of the first byte (00 → 02)02:00:5e:ff:fe:00:53:10
Interface identifier0200:5eff:fe00:5310
With the RA's prefix2001:db8:acad:10:200:5eff:fe00:5310

Windows, macOS and many Linux distributions now use random or stable identifiers (RFC 7217 and RFC 8981) so as not to expose the MAC; this lab's laptop is set to EUI-64, as on the exam.

IPv6 on Cisco IOS XE

CommandWhat it does
ipv6 unicast-routingTurns on IPv6 forwarding and makes the router send RAs.
ipv6 address 2001:DB8:ACAD:10::1/64Static global address.
ipv6 address FE80::1 link-localAn easy-to-remember link-local address for the gateway.
ipv6 address 2001:DB8:ACAD:10::/64 eui-64The router builds its own address with EUI-64.
ipv6 nd managed-config-flagM bit = 1: hosts ask DHCPv6 for their address.
show ipv6 interface briefEach interface's IPv6 addresses and status.
show ipv6 neighborsThe neighbor cache: the equivalent of show ip arp.
show ipv6 routeThe IPv6 routing table.

RA guard and other protections

Anyone can send a fake RA and become the gateway for the whole LAN. RA guard, on the switch, drops RAs arriving on user ports and only accepts the ones from the router's port (CCNA v2.0 topic 4.7.d). NDP's hop limit of 255 also protects: a message arriving with a lower value came from off the link and is dropped.

What happens when it fails

  • The device only has fe80::: no RA arrives. Check ipv6 unicast-routing on the router and that nothing filters ICMPv6.
  • Address marked dadfailed or duplicate: another device answered the DAD with an NA.
  • There's a global address but no gateway: the RA arrived with router lifetime 0.
  • Everyone loses connectivity: someone is sending fake RAs; turn on RA guard on the switch.
  • Pinging the gateway by its link-local address: on Linux and Windows you must give the interface, for example fe80::1%eth0.

Frequently asked questions

Why is DAD sent from ::?

Because the device can't use the address it's checking yet. :: means "no address".

What's the solicited-node group?

One multicast group per address: ff02::1:ff plus its last 24 bits. That way an NS is processed only by the few devices whose address ends the same way, not by everyone as with ARP's broadcast.

Why didn't the laptop ask for R1's MAC?

Because the RA carried R1's MAC in the Source Link-Layer Address option. The laptop stored it with fe80::1.

Why is the gateway an fe80:: address?

Because routers advertise and answer from their link-local address, which doesn't change even if the global prefix does. That's why fe80::1 is configured: it's easy to read in the tables.

Which CCNA v2.0 topics does it cover?

1.4 (IPv6 addresses, prefixes and modified EUI-64) and 4.7.d (RA guard). The default route the laptop learns ties in with 3.2.

Key takeaways

  • IPv6 has no ARP and no broadcast: NDP uses ICMPv6 and multicast groups.
  • Every interface has an fe80:: address and, with SLAAC, a global one built from the RA's prefix.
  • Modified EUI-64: the MAC split with ff:fe in the middle and the seventh bit flipped.
  • DAD checks each address with an NS from :: to the solicited-node group.
  • NS and NA resolve the MAC; an RA with M and O at 0 means SLAAC without DHCPv6.

NEXT STEP

From this lesson to the Canadá Logística network

In the CCNA 2.0 Course you bring IPv6 to Canadá Logística's three sites: addressing, SLAAC or DHCPv6, static and default routes, and RA guard on the switches, in Packet Tracer or CML. We'll let you know when it opens.

Upcoming labs

Sources

Lesson prepared with AI assistance and checked against the sources cited. The bytes of every packet are generated according to the standard and verified with an independent tool.