[Kea-users] kea-dhcp6-server v1.8.2 unexpectedly doesn't allocate two ipv6 addresses to one client configured with reservation

valery.augais at free.fr valery.augais at free.fr
Fri Apr 9 07:26:33 UTC 2021


Hello,

I have tried a number of different settings (playing with shared-networks,
reservations and reservation-mode in particular), and read again the
relevant RFCs (8415 for DHCPv6 and also 4861 for ND). Now I don't see what
else to explore so any advice will be very much appreciated :)

Basically I am trying to allocate to one particular host two addresses at
once, one global GUA and one ULA (hence from two different subnets). But kea
server only allocates one address in the IA_NA option as confirmed with
tcpdump capture (namely the GUA which incidentally comes first in the
reservation list).

Note that I started with a clean setup with no lease file and no IPv6
setting on my host, then enabled DHCPv6 client on the host (which therefore
had no address when sending the initial request to kea).

My kea setup is:
{
"Dhcp6": {
    "host-reservation-identifiers": [ "hw-address", "duid" ],
    "mac-sources": [ "any" ],
    "interfaces-config": {
        "interfaces": [ "enp4s3" ]
    },
    "lease-database": {
        "type": "memfile",
        "lfc-interval": 3600
    },
    "option-data": [
        {
            "name": "dns-servers",
            "data": "fdXX:XXXX:XXXX:XXXX::126, 2YYY:YYYY:YYYY:YYYY::126",
            "always-send": true
        },
        {
            "name": "domain-search",
            "data": "augais.home",
            "always-send": true
        }
    ],
        "subnet6": [
                {
                        "subnet": "2YYY:YYYY:YYYY:YYYY::/64",
                        "interface": "enp4s3",
                        "reservation-mode": "global"
                },
                {
                        "subnet": "fdXX:XXXX:XXXX:XXXX::/64",
                        "interface": "enp4s3",
                        "reservation-mode": "global"
                }
        ],
        "reservations": [
                {
                        "hw-address": "ZZ:ZZ:ZZ:ZZ:ZZ:ZZ",
                        "ip-addresses": [ "2YYY:YYYY:YYYY:YYYY::122", "fdXX:XXXX:XXXX:XXXX::122"
],
                        "hostname": "my-host"
                }
        ]
}
}

I haven't provided for now my radvd configuration and routing info as it is very basic and
looks clean.

Any idea why the second address is not added in the IA_NA option?

Thanks, Valéry.


More information about the Kea-users mailing list