Assign subnet's per group

Denis Laventure Denis_Laventure at uqac.ca
Thu Oct 22 16:12:54 UTC 2009


Hi,

I think you can do it with classes :

class "NCD-BOOTER" {
        match substring(hardware,1,6);
        filename "Xncd19r";
        next-server ncd-booter;
}

subclass "NCD-BOOTER" 0:c0:c3:49:2b:57; # ncd1
subclass "NCD-BOOTER" 0:c0:c3:80:fc:32; # ncd4
subclass "NCD-BOOTER" 0:c0:c3:22:46:81; # ncd8

subnet 1.1.1.1 255.255.255.0 {
  ...
  allow members of "NCD-BOOTER";
  ...
}

Denis

De : dhcp-users-bounces at lists.isc.org [mailto:dhcp-users-bounces at lists.isc.org] De la part de Hugo Ferreira
Envoyé : 22 octobre 2009 11:45
À : dhcp-users at lists.isc.org
Objet : Assign subnet's per group

Hi

Wondering if i can do something like this:

Group some MAC addresses, e.g., per company department, as in man dhcpd.conf
group {
         filename "Xncd19r";
         next-server ncd-booter;

         host ncd1 { hardware ethernet 0:c0:c3:49:2b:57; }
         host ncd4 { hardware ethernet 0:c0:c3:80:fc:32; }
         host ncd8 { hardware ethernet 0:c0:c3:22:46:81; }
       }

And then assign this group to a subnet.
Something like

subnet 1.1.1.1 255.255.255.0 {
range blablabla;
allow group;
deny unknown-clients;
}

Can't find the right syntax for that allow group or allow from group or something like that.


1.       Is my idea possible?

2.       If so, can you help me finding the right syntax?

Regards

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20091022/3bca76b2/attachment.html>


More information about the dhcp-users mailing list