Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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