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

Templin, Fred L Fred.L.Templin at boeing.com
Fri Jun 10 17:40:00 UTC 2016


Hi Marcin,

> 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"
> }

Just to close this out on the list, this works and does exactly what I hoped it would.
Per our offlist discussion (much appreciated), the key thing to keep in mind is that
the DUID begins with the 2-octet DUID type value then followed by the DUID body
as an opaque set of octets.

So, for DUID-EN (which is type 0x0002) followed by the four-octet enterprise number
for Boeing (0x00000049) followed by the octets of the DUID value itself (e.g., 0x0)
the encoding in the kea config file would be:

     "duid": "00:02:00:00:00:49:00:00:00:00"

Thanks again for supplying the answer!

Fred

> -----Original Message-----
> From: Marcin Siodelski [mailto:marcin at isc.org]
> Sent: Thursday, June 09, 2016 2:02 AM
> To: Templin, Fred L <Fred.L.Templin at boeing.com>; kea-users at lists.isc.org
> Subject: Re: [Kea-users] How to map DHCPv6 Prefix Delegations to specific clients?
> 
> 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