There are three methods to configure a host with a global unicast address, default gateway, DNS server, and a domain name:
- Method 1: Configure the host manually. This approach does not scale and is prone to human error;
- Method 2: Using SLAAC and a Stateless DHCPv6 server. We have looked at this approach in our previous lesson;
- Method 3: Using a Stateful DHCPv6 server.
Here is the picture show where the ipv6 info get from based on my current undertstanding:
M=1 means there is a stateful DHCPv6 server, so DHCPv6 is available; A=1 means the SLAAC is enabled, so we can get a auto-configured address; O=1 means we can get the other information from a DHCPv6 server in the env;
Note:
- Stateless DHCPv6 server do not provide ipv6 address;
- DHCPv6 do not provide prefix length, the prefix length can be provided through RA;
- For both dhcp and slacc, the default gateway is get from RA;
- SLAAC address prefix is always 64 bits long;
- SLAAC and DHCPv6 can both be enabled with M=1 and A=1, with such setting we can have 2 global unicast ipv6 addresses;
- We can have multiple dhcpv6 addresses one a single device;
Refer to https://www.networkacademy.io/ccna/ipv6/stateful-dhcpv6