[Kea-users] Client Classification options and subnet options

Jason Salmans jsalmans at atu.edu
Thu Aug 31 11:50:42 UTC 2017


Francis Dupont writes:

> I think you miss the fact client-classes are used to do subnet
> selection and not the opposite so when you specify a client-class in
> a subnet this means this particular subnet can be selected only by
> members of this class. Note that it means classification is done
> before subnet selection.

Yes, I have several client-classes defined (let's say Class A, Class B, Class C, etc.) and I'm going to have multiple subnets defined (Subnet 1, Subnet 2, etc).  The vast majority of my clients probably won't be classified at all so let's say they'll get Subnet 2.  Subnet 1 is the special and I'd like Classes A, B, and C to all get IP addresses from Subnet 1.  I figure I could condense all of them down to one client class and have a really large test statement with a number of "or" operators but it seemed kind of messy to do it that way and breaking them out into different classes allows more options in the future if I need to assign special values of any kind.

I should note that, in reality, every building I'm working with will have two subnets one of which will be the special one for these classified clients and the other for everything that isn't classified.  Each subnet has a relay specified which seems to further restrict what traffic can pull from each subnet.

> in theory yes but I am afraid the corresponding classification
> expression can be a bit hard to write.

I was assuming it would be something like "test": "option[55].hex = '1,3,7,43'"

This loads correctly on service start but I don't think I've gotten it to successfully match to a client yet.  I'm guessing that is not the correct format but it is a little difficult to see what it as I'm just looking at a Wireshark capture.

> yes, valid-lifetime, renew-timer and rebind-timer are supported
> parameters in DHCPv4 subnets.

Terrific, I'll start adding this to my config.

Thanks,
Jason Salmans
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20170831/6ea937a8/attachment.htm>


More information about the Kea-users mailing list