The router configurations for stateless and stateful DHCPv6 services have many similarities but also include significant differences. Figure 1 shows the configuration commands for both types of DHCPv6 services.

Stateful DHCPv6

A router configured for stateful DHCPv6 services have the address prefix command to provide addressing information.

For stateful DHCPv6 services the ipv6 nd managed-config-flag interface configuration mode command is used. In this instance, the client ignores the addressing information in the RA message and communicates with a DHCPv6 server for both addressing and other information.

Stateless DHCPv6

For stateless DHCPv6 services the ipv6 nd other-config-flag interface configuration mode command is used. This informs the device to use SLAAC for addressing information and a stateless DHCPv6 server for other configuration parameters.

The show ipv6 interface command can be used to view the current configuration for allocation method. As shown in Figure 2, the last line of the output indicates how clients obtain addresses and other parameters.