search for: rfc6355

Displaying 1 result from an estimated 1 matches for "rfc6355".

Did you mean: rfc6154
2016 Jul 27
0
How to convert /etc/machine-id into a default-duid for IPv6 static DHCP?
...e-id to facilitate static DHCP with IPv6. The default-duid is found in dhclient6-<value>-eth0.lease and IPv6 DHCP uses default-duid like IPv4 DHCP uses MAC addresses for static DHCP. How does one convert /etc/machine-id to a default-duid (in bash)? 1) /etc/machine-id -> DUID: <read RFC6355 and try to grasp the NetworkManager code at [0] & [1]> Use sha256 hash of machine-id, use first 128 bits, add colons and prepend 00:04: $ MACHINE_ID_SHA256=`cat /etc/machine_id | sha256sum | cut -c1-32` $ TMPID=$(sed -e 's/.\{2\}/&:/g;s/.$//' <<<$MACHINE_ID_SHA256) $...