DHCP server with a group of mac address

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


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 netmask {
   option broadcast-address;
   option subnet-mask;
   pool {
      allow known clients;

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

  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;


More information about the dhcp-users mailing list