What is the difference between DHCPv6 stateful, DHCP stateless, and SLAAC?

937 views

Courses moved online and the material we were given makes this part a bit confusing.

In: Technology

Anonymous 0 Comments

DHCPv6 stateful – this is similar to DHCPv4 where there is a pool of addresses and the DHCP server keeps track of which addresses are handed out to which MACs (clients)

DHCP stateless – DHCP server has a prefix/subnet (like 1111:1111:1111:1111::/64) and sends that to hosts. Hosts can then come up with their own IP address using SLAAC. The host only needs to generate the last 64 bits of the address

SLAAC – hosts use this process to generate their own IPv6 addressing. They take their MAC address on an interface, flip a bit and add FF:FE in the middle to turn the 48 bit mac address into a 64 bit host address. They then tack the prefix/subnet from the DHCPv6 server to the front of their address to get full IPv6 address.

ELI5:
Stateful addressing is like having a bunch of school lunches and you label each one with each kid’s name so that you can keep track of which kids get which lunches.

Stateless addressing is just a bucket of lunch bags and anyone who comes along can grab one from the bucket.