This is a simple python script that will decode dhcp6c Device UUID (DUID) files into a human readable form. This is handy when you are replacing your edge network equipment, such as a firewall, with a different brand that requires the decoded field information.
Usage:
$decode_duid.py dhcp6c_duid
Data length: 14
DUID Type: 1 [DUID-LLT - Link-layer address plus time]
Hardware Type: 1 [Ethernet]
Seconds since midnight (UTC), January 1, 2000: 1000
Link-layer Address: 00:00:5E:00:53:00
Note
This has been tested with wide-dhcpv6-client, which only supports DUID type 1, the other decoders are based on RFC 3315 and RFC 6355. There may be bugs.
- This document comes without any warranty of any kind.
- Not intended for safety of life applications.
- The code provided in this repository is licensed under the Apache License, Version 2.0. See the included LICENSE for terms.
- This document is Copyright 2023 Michael Johnson
- This document is licensed under the Creative Commons Attribution-ShareAlike 4.0 International Public License
Decode DHCP6c DUID Files by Michael Johnson is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.