IP fundamentals
SLAAC vs DHCPv6 address configuration
IPv6 hosts may configure addresses through SLAAC, DHCPv6 or other methods. Router discovery and address assignment are related but distinct.
Updated
In this guide
Router advertisements
Routers can advertise prefixes and information relevant to on-link and default-router selection. Prefix flags can indicate whether a prefix is suitable for autonomous address configuration.
SLAAC
A host forms an address from an advertised prefix and an interface identifier using appropriate rules. Address lifetimes and duplicate address detection affect usability.
DHCPv6
DHCPv6 can provide addresses and other configuration depending on policy. It does not replace every role of router advertisements. A network can intentionally use both mechanisms.
Separate routes and address assignment
A host may receive a router advertisement for a /64 and form an address using SLAAC, while obtaining other configuration through DHCPv6 or router advertisements. IPv6 default-router discovery is distinct from address assignment. Verify each piece instead of assuming that acquiring an address guarantees a route.
Step-by-step example
Follow a device joining an IPv6-enabled network.
- 01
Read Router Advertisements
Routers advertise network information, including default-router information and prefix options. SLAAC can form addresses from an appropriate advertised prefix, subject to host behavior and configuration.
- Router
- RA
- Host
- Prefix / default route
Illustration · example, not a live result - 02
Understand DHCPv6
DHCPv6 can provide additional configuration and, in stateful operation, address assignments. Stateless DHCPv6 can supply other settings. Default-router discovery normally comes from RA, not DHCPv6.
- SLAAC
- Address formation
- DHCPv6
- Address and/or options
Illustration · example, not a live result - 03
Inspect actual settings
Read the operating system's IPv6 address, route and DNS settings on your authorized network. Having a link-local address alone does not establish global addressing or working internet connectivity.
- Address
- Check scope
- Route
- Check default router
- DNS
- Check configuration
Illustration · example, not a live result
Check your understanding
These mechanisms can coexist; do not assume that DHCPv6 replaces Router Advertisements.
Try this tool →Try this
Inspect your own IPv6 addresses, route and DNS configuration; keep the configuration mechanism separate from public reachability.
IPv6 address analyzer →