Creating an IP pool for a limited set of MAC addresses with class declaration

Niall O'Reilly niall.oreilly at
Fri Mar 28 08:41:06 UTC 2014

On 27 March 2014 16:37:34 GMT+00:00, Shawn Routhier <sar at> wrote:
>On Mar 27, 2014, at 9:21 AM, Arun Khan wrote:
>> For a bunch of BYOD devices (20-30), I want to give them IP number
>> from a specific subnet.
>> Am I on the right track with the following snippet in the dhcpd.conf?
>> class "byod" {
>>   match if  (hardware ethernet aa:bb:cc:dd:ee:ff;);
>>   #.... list of the remainder ethernet addresses
>> }
>> Thanks,
>> -- Arun Khan
>> _______________________________________________
>> dhcp-users mailing list
>> dhcp-users at
>You may want to look into using the subclass construct.
>You would have your class byod and then define a number of subclasses
>for it one for each mac address.

Big understatement, IMHO.
Subclass approach is likely to give a huge run-time advantage.

Sent from my Android device with K-9 Mail. Please excuse my brevity.

More information about the dhcp-users mailing list