How can I convert the leases file's default-duid for ipv6 clients into hex?
Issue
[root@server ~]# cat /var/lib/dhclient/dhclient6-eth0.leases
default-duid "\000\001\000\001\033t\377s\252\273\314\335\356\377";
[root@server ~]#
I would like to know the format and how to convert the default-duid in this file to the usable hex format of which I got from the tcpdump:
00:01:00:01:1b:74:ff:73:aa:bb:cc:dd:ee:ff
Also is it safe to assume that when you do get a DHCPv6 address that option dhcp6.client-id in the same file is equal to the default-duid?
Environment
- Red Hat Enterprise Linux 6
- IPv6
- DHCPv6 with dhclient
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.