Concepts / IPv6

IPv6

DHCPv6

Also called stateful DHCPv6, stateless DHCPv6, M flag, O flag, managed flag, other config flag, Information-request, ff02::1:2

IPv6's DHCP: addresses (stateful) or only settings (stateless), as the router advertisement's M and O flags say.

Devices ask DHCPv6 only when the router advertisement tells them to. M (managed) on: lease an address with Solicit, Advertise, Request and Reply, installed as a /128. O (other config) on: ask for settings only, such as DNS servers and the search domain, with one Information-request, while the address comes from SLAAC. Clients send to ff02::1:2 on UDP 547 from their link-local address. Unlike DHCPv4 there is no default gateway option: the route always comes from the advertisement.

Who gives a machine what
Who gives a machine what

The router advertisement always gives the default router and the prefix; its M and O flags send the address and the DNS server to DHCPv6. From the IPv6 addressing: read, shorten and split any address lab.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab