DHCP server with a group of mac address

Circelli, Diego D.Circelli at massey.ac.nz
Wed Sep 26 22:53:46 UTC 2012


Hi,

Take a look at the allow/deny known-clients/unknown-clients statement in the "ALLOW AND DENY WITHIN POOL DECLARATIONS" section of the dhcpd.conf man page. It will do what you want but it might take a bit of scripting to get from your mac-address file to something dhcpd will digest.

In our case, we have subnet declarations that look like this:

subnet 10.99.128.0 netmask 255.255.254.0 {
   option broadcast-address 10.99.129.255;
   option subnet-mask 255.255.254.0;
   ...
   pool {
      ...
      allow known clients;
      range 10.99.128.100 10.99.129.249;
   }
}

And then host declarations that have the mac-addresses that are allowed that look like this:

group{
 ...
  host 010063 {
      ddns-hostname "010063";
      option host-name "010063";
      hardware ethernet 00:26:9e:8a:8c:f2;
   }

   host 010223 {
      ddns-hostname "010223";
      option host-name "010223";
      hardware ethernet 7c:6d:62:b1:71:0e;
   } 
}

Regards,
Diego


More information about the dhcp-users mailing list