What Is DHCPv6 Autoconfiguration?
DHCPv6 is a network protocol that works pretty much the same as DHCP in IPv4.
It is used to assign IP addresses and prefixes to IPv6 hosts on a network. This is also known as a stateful autoconfiguration.
How DHCPv6 Works.
DHCPv6 works in two ways; Stateful and Stateless Address Autoconfiguration (SLAAC).
Stateless Address Autoconfiguration (SLAAC)
SLACC requires no manual configuration of hosts, minimal configuration of routers, and no additional servers.
DHCP clients autoconfigure their own IPv6 address based on router advertisements. Routers advertise prefixes that identify the subnet(s) associated with a link, while hosts generate an “interface identifier” that uniquely identifies an interface on a subnet.
DHCP clients use the DHCP server to obtain other useful configuration information (such as the address of DNS servers).
By using the eui-64 command, a host can automatically assign itself a unique 64-bit IPv6 interface identifier without the need for manual configuration or DHCP.
This approach is used when a network is not concerned with the exact addresses hosts use on a network so long as they are unique and routable.
Stateful DHCPv6.
In Stateful DHCP, the address assignment is centrally managed and clients must obtain configuration information such as address autoconfiguration and neighbor discovery that is not available through protocols.
DHCPv6 can be implemented in two ways:
Rapid Commit – The DHCP client obtains configuration parameters from the server through a rapid two-message exchange (solicit and reply).
Normal Commit – The DHCP client uses four message exchanges (solicit, advertise, request, and reply).
By default, normal-commit is used.
To use the rapid-commit option, it has to be enabled by both client and server so that it uses the two-message exchange.
DHCPv6 Messages Types
There are 3 DHCPv6 message types exclusive to the only DHCPv6:
CONFIRM
This happens when a client sends a Confirm message to any available server to determine whether the addresses it was assigned are still appropriate to the link to which the client is connected.
RELAY-FORW
This is when a relay agent sends a Relay-forward message to relay messages to servers, either directly or through another relay agent.
RELAY-REPLY
A server sends a Relay-reply message to a relay agent containing a message that the relay agent delivers to a client.
DHCPV6 Message types
How to Configure DHCPv6 on a Cisco router.
R1#config t
R1(config)# ipv6 dhcp pool
R1(config-dhcp)# ipv6 dhcp pool test
R1(config-dhcp)#dns-server
R1(config-dhcp)#domain-name orbit123.com
R1(config-dhcp)#prefix-delegation pool test lifetime 64000 64000
Assign DHCPv6 to an interface:
R1#config t
R1(config)#interface fa0/0
R1(config-if)#ipv6 dhcp server test
The above interface configuration is quite different from that of IPv4. Overall, we have configured the DHCPv6 server and applied it to an Interface.
In Summary; DHCPv6 is essential for networks transitioning to IPv6 and for new networks deploying IPv6, as it simplifies the management of IP addresses and related configuration, thereby reducing the need for manual network configuration.
How to configure DHCPV6 stateful Autoconfiguration – Server and Client
How to configure DHCPv6 Stateless Autoconfiguration (Server and Client)
Why We Need IPv6. IPv6 ACLs IPv6 Address Expression and Example.
How to Configure IPv6 Static and Default Routes.