From 3a0a6054ea59c0925704ef9cc9a512aa0313cff2 Mon Sep 17 00:00:00 2001 From: Richie Crews Date: Sun, 18 Nov 2018 13:35:02 -0500 Subject: [PATCH] Create gen-duid.sh This is a simple script I found/modified to create your DUID for your modem. --- bin/gen-duid.sh | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 bin/gen-duid.sh diff --git a/bin/gen-duid.sh b/bin/gen-duid.sh new file mode 100644 index 0000000..43ea8bc --- /dev/null +++ b/bin/gen-duid.sh @@ -0,0 +1,45 @@ +#!/bin/sh +ascii2hex() { echo -n "$*" | awk 'BEGIN{for(n=0;n<256;n++)ord[sprintf("%c",n)]=n}{len=split($0,c,"");for(i=1;i<=len;i++)printf("%x",ord[c[i]])}'; } + +printhexstring() { awk '{l=split($0,c,"");for(i=1;iAdvanced->Networking in webConfigurator. + +IPv6 Options + DHCP6 DUID: DUID-EN + DUID-EN + Enterprise Number: 3561 + Identifier: As shown above + +Click Save. + +Step 3) Navigate to Interfaces->WAN in webConfigurator. + +General Configuration + IPv6 Configuration Type: DHCP6 + MAC Address: Same as MAC address of RG + +Other options are probably needed, so set those too. + +Click Save. This will finally save dhcp6c's DUID file and start the client. + +Step 4) Finished, hopefully. + +Good luck! + +EOF