On our network, each user gets their own octet, eg Fred gets and Barney gets They get a laptop and a development server from IT with a known mac address.

What I want to do is restrict each user to use a DHCP range within that block based on the mac address of their hardware. On ISC dhcpd, what I think is correct is something like:

    class "fred" {
        host machine1 { hardware ethernet 1:1:1:1:1:1; }
        host machine2 { hardware ethernet 1:1:1:1:1:2; }
    subnet netmask {
        allow members of "fred";
        deny known-clients;

Then I can just script generation of the config when adding or removing users or their assigned hardware.

Am I on the right track here or do I misunderstand the user of classes and hosts?


You are definitely on the right track. The alternative way to do this would be to have the DHCP clients send the class field in their request; this would add configuration to the clients but reduce the need to enter the MAC of each one in the dhcpd config.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.