# Configuring the Type of DHCP Unique ID for DHCPv6 Local Servers

You can configure the type of DHCP unique identifier (DUID) using the ipv6 dhcpv6-local duid-type duidType command in Global Configuration mode to be either Type 2 or Type 3. These two types are currently supported by the DHCPv6 local server application in JunosE Software. The Type 1 DUID is not supported by the DHCPv6 local server in JunosE Software. However, DHCPv6 clients support DUID Types 1,2, and 3.

To configure the DUID type:

1. Enable the DHCPv6 local server.
   host1(config)#service dhcpv6-local
2. Specify the DUID type to be used during the identity verification of the server and the client.
   host1(config)#ipv6 dhcpv6-local duid 3

   In this example, the DUID type is set as Type 3, which is used by devices that have a permanently connected network interface with a link-layer address, and do not have a nonvolatile, writable stable storage.

   | Note: You must enable the DHCPv6 local server using the service dhcpv6-local command before configuring the DUID type. Otherwise, an error message states that the DHCPv6 local server is not configured on the router.

#### Related Documentation

- DHCP Unique ID for Clients and Servers Overview
- ipv6 dhcpv6-local duid-type