Use it when a DHCPv6 server gives a client the wrong address or reservations do not match.
DUID / IAID
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Finding DUIDs Verify boundary
| OS | Command |
|---|---|
| Windows | ipconfig /all (DHCPv6 Client DUID) |
| Linux (NetworkManager) | nmcli -f DHCP6 device show eth0 |
| systemd-networkd | networkctl status eth0 |
| Server (IOS) | show ipv6 dhcp binding |
Step 2 Verification & troubleshooting Narrow the fault
1. Capture RA prefix, A/M/O flags and lifetime.
2. Verify host address construction and DAD.
4. Check DNS and default route.
5. Confirm renewal and relay behavior.
Step 3 Common mistakes Narrow the fault
- Reserving by MAC address instead of DUID.
- Re-imaged hosts keeping or changing DUIDs unexpectedly.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- RA supplies prefix and default-router information
- M/O flags signal DHCPv6 expectations but do not themselves lease data
- Stateless DHCPv6 supplies options; stateful DHCPv6 can lease addresses
- DHCPv6 does not supply the default gateway
- DUID/IAID, relay context, lifetimes, privacy addresses and DAD affect observed state.
show ipv6 dhcp binding— client DUID and IAID- Client: ipconfig /all (DHCPv6 Client DUID) / cat /var/lib/dhcp/dhclient6.leases — client side
ReferenceWhat it is1 section · depth on demand
Why DUID matters
DHCPv6 reservations and logs use the DUID, not the MAC address (unlike DHCPv4). DUID types: DUID-LLT (link-layer + time), DUID-EN (enterprise), DUID-LL, DUID-UUID. Cloned VMs can share a DUID and fight over addresses; regenerate it after cloning. Windows: ipconfig /all shows "DHCPv6 Client DUID"; Linux: in /var/lib/dhcp or NetworkManager state.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
DUID and IAID: how DHCPv6 identifies clients and their requests
DHCPv6 doesn't identify clients by MAC address. RFC 8415 has each client and server use a DHCP Unique Identifier (DUID), and each client use an Identity Association ID (IAID) for every group of addresses or prefixes it requests.
DUID types (RFC 8415)
| Type | Name | Built from |
|---|---|---|
| 1 | DUID-LLT | Hardware type, time, link-layer address |
| 2 | DUID-EN | Enterprise number plus a vendor-assigned identifier |
| 3 | DUID-LL | Hardware type and link-layer address |
| 4 | DUID-UUID | A UUID |
RFC 8415 says the DUID should not change over time if at all possible. One device keeps the same DUID across all its interfaces.
IAID
The client chooses an IAID for each identity association (IA_NA for addresses, IA_PD for delegated prefixes). It must be unique among IAs of the same type for that client. Clients usually derive it from the interface, so each interface gets its own lease.
R1# show ipv6 dhcp binding
Client: FE80::5054:FF:FE1A:2B3C
DUID: 000100012D4F8A1C5054001A2B3C
Username : unassigned
VRF : default
IA NA: IA ID 0x0E1A2B3C, T1 43200, T2 69120
Address: 2001:DB8:20::1A2B
preferred lifetime 86400, valid lifetime 172800
expires at Nov 30 2026 09:12 AM (172751 seconds)
host$ cat /var/lib/dhcp/dhclient6.eth0.leases | grep -E "default-duid|iaaddr"
default-duid "\000\001\000\001-O\212\034PT\000\032+<";
iaaddr 2001:db8:20::1a2b {
C:\> ipconfig /all | findstr /i "DUID IAID"
DHCPv6 IAID . . . . . . . . . . . : 106978108
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-2D-4F-8A-1C-50-54-00-1A-2B-3C
The DUID above starts with 0001 (DUID-LLT) and ends with the MAC 5054.001a.2b3c.
Practical consequences
| Situation | Effect |
|---|---|
| Reservations | Must use the DUID (and IAID), not the MAC |
| Cloned virtual machines or images | Can share a DUID, so two hosts collide on one lease; regenerate the DUID after cloning |
| OS reinstall | New DUID, new lease |
| Correlating with IPv4 | DUID-LLT and DUID-LL contain a MAC, but not necessarily the interface the request came from |
Relay agents can add the client's link-layer address option (RFC 6939) so the server knows the MAC as well.
Documented example, not captured output.
Quick reference
IPv6 changed how DHCP identifies clients. Instead of the MAC address used in IPv4, a DHCPv6 client presents a DUID, which identifies the device, and an IAID, which identifies one of its interfaces. The DUID is generated by the operating system and can change when a machine is reinstalled or imaged, so reservations and address tracking need to account for it. Knowing where to read the DUID on each platform saves time when a reservation does not match.
DHCPv6 identifies clients by DUID (DHCP Unique Identifier, per device, e.g. DUID-LLT from link-layer address + time) and IAID (Identity Association ID, per interface). Reservations in DHCPv6 use DUID (+IAID), not MAC addresses, which complicates migrations from IPv4 MAC-based reservations; RFC 6939 lets relays insert the client MAC.
show ipv6 dhcp binding
Get-NetIPv6Protocol; Get-DhcpServerv6Lease ! Windows
cat /var/lib/dhcp/dhclient6.leases ! Linux
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IP Fundamentals → IPv6 → IPv6 SLAAC / DHCPv6 → DUID / IAID. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc8200.html · confidence 94%