Ahoj,
už hodnou dobu se snažím rozchodit IPv6 DHCPv6 NA a PD. Mám Debian 12, zkusil jsem jak dhclient, tak wide-dhcpv6-client. Požádám o NA a PD, zpět dostanu jen PD 2a01:*:*:4140/60. Ten wide-dhcpv6-client krásně rozdělí na všechna (V)LAN rozhraní, toto funguje jak má. Ale WAN nedostane adresu, jedině až po delší době (asi SLAAC) a z jiného prefixu 2a01:*:*:0:*/64. Společně s ISP nejsme schopni docílit přidělení NA, což prý u ostatních klientů, co mají mikrotik, funguje. Navíc pokaždé dostanu jiný prefix, neb se nedaří zafixovat dle DUID.
Debug výpis:
dhcp6c -D -f wan
Jul/24/2024 10:08:20: get_duid: extracted an existing DUID from /var/lib/dhcpv6/dhcp6c_duid: 00:01:00:01:2e:32:69:bf:74:da:38:ff:f1:42
Jul/24/2024 10:08:20: cfdebug_print: <3>[interface] (9)
Jul/24/2024 10:08:20: cfdebug_print: <5>[wan] (3)
Jul/24/2024 10:08:20: cfdebug_print: <3>begin of closure [{] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>comment [# request a non-temporary address] (33)
Jul/24/2024 10:08:20: cfdebug_print: <3>[send] (4)
Jul/24/2024 10:08:20: cfdebug_print: <3>[ia-na] (5)
Jul/24/2024 10:08:20: cfdebug_print: <3>[1] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>end of sentence [;] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>comment [# request prefix delegation address] (35)
Jul/24/2024 10:08:20: cfdebug_print: <3>[send] (4)
Jul/24/2024 10:08:20: cfdebug_print: <3>[ia-pd] (5)
Jul/24/2024 10:08:20: cfdebug_print: <3>[1] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>end of sentence [;] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>comment [# send rapid commit, don't wait for RA] (38)
Jul/24/2024 10:08:20: cfdebug_print: <3>comment [#send rapid-commit;] (19)
Jul/24/2024 10:08:20: cfdebug_print: <3>comment [# we'd like information about DNS, too] (38)
Jul/24/2024 10:08:20: cfdebug_print: <3>comment [#request domain-name-servers;] (29)
Jul/24/2024 10:08:20: cfdebug_print: <3>comment [#request domain-name;] (21)
Jul/24/2024 10:08:20: cfdebug_print: <3>comment [# script provided by my distribution, it adds nameservers to resolv.conf] (72)
Jul/24/2024 10:08:20: cfdebug_print: <3>comment [#script "/etc/wide-dhcpv6/dhcp6c-script";] (41)
Jul/24/2024 10:08:20: cfdebug_print: <3>end of closure [}] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>end of sentence [;] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>[id-assoc] (8)
Jul/24/2024 10:08:20: cfdebug_print: <15>[pd] (2)
Jul/24/2024 10:08:20: cfdebug_print: <15>[1] (1)
Jul/24/2024 10:08:20: cfdebug_print: <15>begin of closure [{] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>[prefix-interface] (16)
Jul/24/2024 10:08:20: cfdebug_print: <5>[lan] (3)
Jul/24/2024 10:08:20: cfdebug_print: <3>begin of closure [{] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>comment [# subnet. Combined with ia-pd to configure the subnet for this interface.] (73)
Jul/24/2024 10:08:20: cfdebug_print: <3>[sla-id] (6)
Jul/24/2024 10:08:20: cfdebug_print: <3>[1] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>end of sentence [;] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>comment [#IP address "postfix". if not set it will use EUI-64 address of the interface. Combined with SLA-ID'd prefix to create full IP address of interface. In my case, ifid 1 means that eth1 will get a IPv6 ending with ::1] (215)
Jul/24/2024 10:08:20: cfdebug_print: <3>[ifid] (4)
Jul/24/2024 10:08:20: cfdebug_print: <3>[1] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>end of sentence [;] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>comment [# prefix bits assigned. Take the prefix size you're assigned (something like /48 or /56) and subtract it from 64. In my case I was being assigned a /56, so 64-56=8] (163)
Jul/24/2024 10:08:20: cfdebug_print: <3>[sla-len] (7)
Jul/24/2024 10:08:20: cfdebug_print: <3>[4] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>end of sentence [;] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>end of closure [}] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>end of sentence [;] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>[prefix-interface] (16)
Jul/24/2024 10:08:20: cfdebug_print: <5>[lan.33] (6)
Jul/24/2024 10:08:20: cfdebug_print: <3>begin of closure [{] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>[sla-id] (6)
Jul/24/2024 10:08:20: cfdebug_print: <3>[3] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>end of sentence [;] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>comment [#ifid 1;] (8)
Jul/24/2024 10:08:20: cfdebug_print: <3>[sla-len] (7)
Jul/24/2024 10:08:20: cfdebug_print: <3>[4] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>end of sentence [;] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>end of closure [}] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>end of sentence [;] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>end of closure [}] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>end of sentence [;] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>[id-assoc] (8)
Jul/24/2024 10:08:20: cfdebug_print: <15>[na] (2)
Jul/24/2024 10:08:20: cfdebug_print: <15>[1] (1)
Jul/24/2024 10:08:20: cfdebug_print: <15>begin of closure [{] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>comment [# id-assoc for lan] (18)
Jul/24/2024 10:08:20: cfdebug_print: <3>end of closure [}] (1)
Jul/24/2024 10:08:20: cfdebug_print: <3>end of sentence [;] (1)
Jul/24/2024 10:08:20: configure_pool: called
Jul/24/2024 10:08:20: clear_poolconf: called
Jul/24/2024 10:08:20: dhcp6_reset_timer: reset a timer on wan, state=INIT, timeo=0, retrans=446
Jul/24/2024 10:08:21: client6_send: a new XID (c29bdb) is generated
Jul/24/2024 10:08:21: copy_option: set client ID (len 14)
Jul/24/2024 10:08:21: copyout_option: set identity association
Jul/24/2024 10:08:21: copy_option: set elapsed time (len 2)
Jul/24/2024 10:08:21: copyout_option: set IA_PD
Jul/24/2024 10:08:21: client6_send: send solicit to ff02::1:2%wan
Jul/24/2024 10:08:21: dhcp6_reset_timer: reset a timer on wan, state=SOLICIT, timeo=0, retrans=1004
Jul/24/2024 10:08:21: client6_recv: receive advertise from fe80::764d:28ff:fe27:dfe6%wan on wan
Jul/24/2024 10:08:21: dhcp6_get_options: get DHCP option client ID, len 14
Jul/24/2024 10:08:21: DUID: 00:01:00:01:2e:32:69:bf:74:da:38:ff:f1:42
Jul/24/2024 10:08:21: dhcp6_get_options: get DHCP option server ID, len 10
Jul/24/2024 10:08:21: DUID: 00:03:00:01:74:4d:28:27:df:e7
Jul/24/2024 10:08:21: dhcp6_get_options: get DHCP option preference, len 1
Jul/24/2024 10:08:21: preference: 255
Jul/24/2024 10:08:21: dhcp6_get_options: get DHCP option IA_PD, len 41
Jul/24/2024 10:08:21: IA_PD: ID=1, T1=43200, T2=69120
Jul/24/2024 10:08:21: copyin_option: get DHCP option IA_PD prefix, len 25
Jul/24/2024 10:08:21: copyin_option: IA_PD prefix: 2a01:*:*:4140::/60 pltime=77760 vltime=86400
Jul/24/2024 10:08:21: client6_recvadvert: server ID: 00:03:00:01:74:4d:28:27:df:e7, pref=255
Jul/24/2024 10:08:21: client6_send: a new XID (4f7ebc) is generated
Jul/24/2024 10:08:21: copy_option: set client ID (len 14)
Jul/24/2024 10:08:21: copy_option: set server ID (len 10)
Jul/24/2024 10:08:21: copy_option: set elapsed time (len 2)
Jul/24/2024 10:08:21: copyout_option: set IA_PD prefix
Jul/24/2024 10:08:21: copyout_option: set IA_PD
Jul/24/2024 10:08:21: client6_send: send request to ff02::1:2%wan
Jul/24/2024 10:08:21: dhcp6_reset_timer: reset a timer on wan, state=REQUEST, timeo=0, retrans=972
Jul/24/2024 10:08:21: client6_recv: receive advertise from fe80::764d:28ff:fe27:dfe6%wan on wan
Jul/24/2024 10:08:21: dhcp6_get_options: get DHCP option client ID, len 14
Jul/24/2024 10:08:21: DUID: 00:01:00:01:2e:32:69:bf:74:da:38:ff:f1:42
Jul/24/2024 10:08:21: dhcp6_get_options: get DHCP option server ID, len 10
Jul/24/2024 10:08:21: DUID: 00:03:00:01:74:4d:28:27:df:e7
Jul/24/2024 10:08:21: dhcp6_get_options: get DHCP option preference, len 1
Jul/24/2024 10:08:21: preference: 255
Jul/24/2024 10:08:21: dhcp6_get_options: get DHCP option IA_PD, len 41
Jul/24/2024 10:08:21: IA_PD: ID=1, T1=43200, T2=69120
Jul/24/2024 10:08:21: copyin_option: get DHCP option IA_PD prefix, len 25
Jul/24/2024 10:08:21: copyin_option: IA_PD prefix: 2a01:*:*:4140::/60 pltime=77760 vltime=86400
Jul/24/2024 10:08:21: client6_recvadvert: XID mismatch
Jul/24/2024 10:08:21: client6_recv: receive reply from fe80::764d:28ff:fe27:dfe6%wan on wan
Jul/24/2024 10:08:21: dhcp6_get_options: get DHCP option client ID, len 14
Jul/24/2024 10:08:21: DUID: 00:01:00:01:2e:32:69:bf:74:da:38:ff:f1:42
Jul/24/2024 10:08:21: dhcp6_get_options: get DHCP option server ID, len 10
Jul/24/2024 10:08:21: DUID: 00:03:00:01:74:4d:28:27:df:e7
Jul/24/2024 10:08:21: dhcp6_get_options: get DHCP option IA_PD, len 41
Jul/24/2024 10:08:21: IA_PD: ID=1, T1=43200, T2=69120
Jul/24/2024 10:08:21: copyin_option: get DHCP option IA_PD prefix, len 25
Jul/24/2024 10:08:21: copyin_option: IA_PD prefix: 2a01:*:*:4140::/60 pltime=77760 vltime=86400
Jul/24/2024 10:08:21: get_ia: make an IA: PD-1
Jul/24/2024 10:08:21: update_prefix: create a prefix 2a01:*:*:4140::/60 pltime=77760, vltime=86400
Jul/24/2024 10:08:21: ifaddrconf: add an address 2a01:*:*:4141::1/64 on lan
Jul/24/2024 10:08:21: ifaddrconf: add an address 2a01:*:*:4143:ea9c:25ff:fe12:8a65/64 on lan.33
Jul/24/2024 10:08:21: dhcp6_remove_event: removing an event on wan, state=REQUEST
Jul/24/2024 10:08:21: dhcp6_remove_event: removing server (ID: 00:03:00:01:74:4d:28:27:df:e7)
Jul/24/2024 10:08:21: client6_recvreply: got an expected reply, sleeping.
Jul/24/2024 10:08:21: client6_recv: receive reply from fe80::764d:28ff:fe27:dfe6%wan on wan
Jul/24/2024 10:08:21: dhcp6_get_options: get DHCP option client ID, len 14
Jul/24/2024 10:08:21: DUID: 00:01:00:01:2e:32:69:bf:74:da:38:ff:f1:42
Jul/24/2024 10:08:21: dhcp6_get_options: get DHCP option server ID, len 10
Jul/24/2024 10:08:21: DUID: 00:03:00:01:74:4d:28:27:df:e7
Jul/24/2024 10:08:21: dhcp6_get_options: get DHCP option IA_PD, len 41
Jul/24/2024 10:08:21: IA_PD: ID=1, T1=43200, T2=69120
Jul/24/2024 10:08:21: copyin_option: get DHCP option IA_PD prefix, len 25
Jul/24/2024 10:08:21: copyin_option: IA_PD prefix: 2a01:*:*:4140::/60 pltime=77760 vltime=86400
Jul/24/2024 10:08:21: client6_recvreply: XID mismatch
Předem díky za každou radu.