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

vaugais valery.augais at free.fr
Thu Apr 8 16:29:27 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. But kea server only allocates one address
in the IA_NA option as confirmed with tcpdump capture (namely the GUA which
comes first in the 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 initially requesting 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 as it is very basic and
looks clean.

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

Thanks, Valéry.



--
Sent from: http://kea-users.7364.n8.nabble.com/


More information about the Kea-users mailing list