On Tue, Nov 29, 2022 at 4:28 AM Xuo Guoto via Kea-users
<[email protected]> wrote:
>
> Thanks for your reply, Darren.
>
> I went through the configuration and made a similar configuration to give it 
> a try. My objective was to get a IA_NA address, with each client getting a 
> single address, bu from different /64 pool, but it fails with NoAddrsAvail(2) 
> "Sorry, no address could be allocated."
>
> DHCP requests come to the server via a relay, and the server is listening on 
> localhost. I can see from the logs that subnet is getting correctly retrieved.

> 2022-11-29 14:30:11.229 DEBUG [kea-dhcp6.packets/1612065.139994049166976] 
> DHCP6_RESPONSE_DATA responding with packet type 2 data is localAddr=[::1]:547 
> remoteAddr=[fd40:761b:1:1::2]:547
> msgtype=2(ADVERTISE), transid=0x69ea20
> type=00001, len=00014: 00:01:00:01:29:b1:82:78:e6:6f:d9:66:e6:7f
> type=00002, len=00014: 00:01:00:01:2a:f2:70:1e:5e:b2:d7:b4:94:54
> type=00003(IA_NA), len=00055: iaid=202768387, t1=0, t2=0,
> options:
>   type=00013, len=00039: NoAddrsAvail(2) "Sorry, no address could be 
> allocated."
> type=00023, len=00032: 2404:640:4003:2640::dead:beef 
> 2404:640:4003:2640::cafe:babe

You will also need a pool definition for the /56 from which the single
address will be allocated.  I neglected to mention that yesterday.
Kea was not able to allocate an address because of the missing pool
statements.  See example with comments below taken from the config you
sent.

    "subnet6": [
      {
        "id": 1,
        "subnet": "2404:640:4003:2640::/56",
        // this pool is required to allocate an address for the WAN
side of the CPE
        // more info on pools available here:
        // 
https://kea.readthedocs.io/en/kea-2.2.0/arm/dhcp6-srv.html#configuration-of-ipv6-address-pools
        "pools": [
                    {
                        // I picked a beginning and end of the subnet,
but you may have
                        // some other requirements.  This defines the
range of addresses from
                        // which the CPE will retrieve an address for
the WAN port.
                        "pool": "2404:640:4003:2640::1 -
2404:0640:4003:26ff:ffff:ffff:ffff:fffe"
                    }
         ],
        "pd-pools": [
          {
            "prefix": "2404:640:5878:2640::",
            "prefix-len": 56,
            "delegated-len": 64
          }
        ],
        "option-data": [
          {
            "name": "dns-servers",
            "data": "2404:640:4003:2640::dead:beef,
2404:640:4003:2640::cafe:babe"
          }
        ]
      }
    ],
-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to