New Member
Posts: 6
Registered: ‎03-31-2018
Kudos: 1

DHCPv6-PD stop dor set DUID

my use ISP is need DHCPv6-PD.
ISP rwquest for  DUID-LL.
but, ER-X is can't change TYPE for fixed DUID-LLT.
then i DUID set 
set interfaces ethernet eth1 dhcpv6-pd duid 00030001802aa85e753b
after then DHCPv6-PD stop. no send Solicit message

 

i found /var/lib/dhcpv6/dhcp6c_duid is bad format

dhcp6c_duid  bulding script /opt/vyatta/sbin/dhcpv6-pd-duid.pl

not support eatch endian for set_duid function.

 

sub set_duid {
    my ($duid) = @_;

    open(my $FH, '>', $dhcp6c_duid) || die "Error opening [$dhcp6c_duid]: $!\n";
    binmode($FH);

 

   $duid =~ s/://g;
    my $len = length($duid) / 2;

 

 -    my $buf = pack("v", $len);
+    my $buf;
+    my $endian = $Config{byteorder};
+    if ($endian == 1234 or $endian == 12345678) {
+        $buf = pack("v", $len);
+    }else{
+        $buf = pack("n", $len);
+    }
    print $FH $buf || die "duid length write failed: $!\n";

New Member
Posts: 21
Registered: ‎09-05-2017

Re: DHCPv6-PD stop dor set DUID

OOOOOO, thank you very-very much!

This was exactly my problem with ISP.