hostnamectl; # tested on Static hostname: x13 Icon name: computer-laptop Chassis: laptop 💻 Operating System: Debian GNU/Linux 13 (trixie) Kernel: Linux 6.12.111+deb13-amd64 Architecture: x86-64 Hardware Vendor: Lenovo Hardware Model: ThinkPad X13 Gen 1 dhcpcd dhcpcd-10.1.0 starting dev: loaded udev wlp3s0: connected to Access Point: FBAltesHausOG1 enp2s0f0: waiting for carrier DUID 00:01:00:01:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx wlp3s0: IAID 3d:xx:xx:xx enx00e04xxxxxxx: IAID 4c:68:xx:xx enx00e04xxxxxxx: soliciting a DHCP lease wlp3s0: soliciting a DHCP lease wlp3s0: offered 192.168.15.150 from 192.168.15.1 wlp3s0: probing address 192.168.15.150/24 enx00e04xxxxxxx: offered 192.168.50.102 from 192.168.50.1 enx00e04xxxxxxx: probing address 192.168.50.102/24 wlp3s0: leased 192.168.15.150 for 864000 seconds wlp3s0: adding route to 192.168.15.0/24 wlp3s0: adding default route via 192.168.15.1 # what is this id?
A DUID (DHCP Unique Identifier) is an identifier used by DHCPv6 to identify a client—such as a Debian computer—across network connections. The client sends it when requesting an IPv6 address or other network settings, and the DHCP server can use it to recognize the same client later.
It is usually stored on the client so it stays stable across reboots. A DUID is not necessarily the same as the network card’s MAC address; it can be derived from a MAC address, a timestamp, or other information, depending on its type.
On Debian, you can often find the client’s saved DUID in /var/lib/dhcp/ or in the network manager’s configuration/state files, depending on which DHCP client or network service is in use.
You said
how is it calculated?
Duck.ai said
There isn’t one universal calculation; the DUID type determines how it’s made. A DUID starts with a 2-byte type code, followed by type-specific data. Common types are: RFC Editor
- DUID-LLT (type 1): type code + hardware type + a 4-byte timestamp (seconds since Jan 1, 2000 UTC) + a network interface’s link-layer address, usually its MAC. For Ethernet, the hardware type is
0001. RFC Editor - DUID-EN (type 2): type code + an organization’s enterprise number + an organization-assigned identifier.
- DUID-LL (type 3): type code + hardware type + link-layer address, with no timestamp.
- DUID-UUID (type 4): type code + a 128-bit UUID. RFC Editor
For example, a DUID-LLT might look like 00:01:00:01:tt:tt:tt:tt:aa:bb:cc:dd:ee:ff: 00:01 means type 1, the next 00:01 is Ethernet hardware type, tt… is the timestamp, and aa…ff is the MAC address.
It’s normally generated once and saved, rather than recalculated on every DHCP request. On Debian, the actual format depends on which DHCP client or network service is managing IPv6.
manpage:
liked this article?
- only together we can create a truly free world
- plz support dwaves to keep it up & running!
- (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
- really really hate advertisement
- contribute: whenever a solution was found, blog about it for others to find!
- talk about, recommend & link to this blog and articles
- thanks to all who contribute!