[Kea-users] How to map DHCPv6 Prefix Delegations to specific clients?

Marcin Siodelski marcin at isc.org
Thu Jun 9 09:01:56 UTC 2016


On 08.06.2016 21:10, Templin, Fred L wrote:
> Hi, I am using DHCPv6 Prefix Delegation from my kea 1.0.0 server. I assign
> each client a unique DUID using DUID-EN. I want to make it so that each
> client always gets the same DHCPv6 Prefix Delegation every time it asks
> for one no matter what other clients are asking for prefixes, no matter
> whether the server goes down and comes back up, no matter whether
> the lease database gets flushed, etc.
> 
> I am hoping there is some way to hardwire this up by putting configuration
> lines into my kea.conf or by entering information into a database. For example,
> DUID-EN number 1000 receives PD 2001:db8:0:1::/64, DUID-EN number 10001
> receives PD 2001:db8:0:2::/64, etc.
> 
> Is there a way to set this up in my configuration file? Or is there some way to
> populate this information in a database that kea manages?
> 
> Thanks - Fred
> 
> 
> 

Fred,

What you're asking is described in the Kea User's Guide:

http://kea.isc.org/docs/kea-guide.html#host-reservation-v6

and there is a configuration snippet that demonstrates how to make
prefix reservation for a client identified by a specific DUID.

Specifically, this part of the configuration snippet is of your interest:
{
    "duid": "01:02:03:04:05:06:07:08:09:0A",
    "ip-addresses": [ "2001:db8:1::102" ],
    "prefixes": [ "2001:db8:2:abcd::/64" ],
    "hostname": "foo.example.com"
}

which reserves a prefix "2001:db8:2:abcd::/64" to the client identified
by a DUID: "01:02:03:04:05:06:07:08:09:0A".

Static IPv6 reservations do not work with the database in Kea 1.0.0.
They only work when specified in the configuration file, as shown above.

Marcin




More information about the Kea-users mailing list