How can I find out my system's DHCPv6 DUID?


Answer: 1

19 hours ago

I would like to assign a static IPv6 address to my machine running Ubuntu Server 15 using DHCPv6. To do so, I need to know the DUID used by the DHCP client so I can assign the static IP to it in my network's DHCP server.

How can I find out which DUID is being used?

Added by: Catharine Jacobson

Answer: 2

19 hours ago

Ubuntu server calls dhclient with a few flags, but mostly default options, and it therefore defaults to a type 1 DUID-LLT DUID. Ubuntu desktop uses Network Manager which then calls dhclient with a type 4 DUID-UUID DUID.

For servers, it puts it in /var/lib/dhcp/

For desktop, it puts it in /var/lib/NetworkManager/

It's a weird string that looks like:

default-duid "\000\001\000\001\037\305\371\341\001\002\003\004\005\006"

Here's a short script you can use to convert it to a normal hex format duid.

Just run the script like:

./script '\000\001\000\001\037\305\371\341\001\002\003\004\005\006'

The script:


printf $1 | hexdump -e '14/1 "%02x " "\n"' | sed 's/ /:/g'
Added by: Fabian Dibbert

Answer: 3

15 hours ago

If you are using DHCP with ISC dhcpd look in:


If you are using dibbler as dhcp client check for the DUID in:


It might also be worth checking in /etc/dibbler/client.conf if any other bits are there.

Added by: Shyanne Lowe

Popular Search

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9