assigning groups to classes

Sten Carlsen stenc at s-carlsen.dk
Tue Jun 18 17:26:38 UTC 2013


I would be thinking if the management system could be changed since it
does not do what is needed?

OTOH a small AWK script or something like that might be able to rewrite
the output from the management system into classes rather than groups?

This should not be such a big task.


On 18/06/13 19:20, Victor Hiebert wrote:
> Thanks for the suggestion, however due to the design of our dhcp management system we MUST use groups to categorize clients.
>
> -Victor
>
> ----- Original Message -----
> From: "Sten Carlsen" <stenc at s-carlsen.dk>
> To: dhcp-users at lists.isc.org
> Sent: Tuesday, June 18, 2013 10:07:35 AM
> Subject: Re: assigning groups to classes
>
>
> Any reason why this would not work for you? 
>
> I think the end result will be the same: 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
> ### begin dhcpd.conf 
>
>
>
> class "groupofcomputers" { 
> option domain-name "group.of.computers.com"; 
> match hardware; 
> } 
>
> subclass "groupofcomputers" 1:00:0c:29:f4:40:c8; 
> subclass "groupofcomputers" 1:00:15:17:63:17:0b; 
>
>
>
> subnet 10.0.0.0 netmask 255.255.255.0 { 
> option broadcast-address 10.0.0.255; 
> option subnet-mask 255.255.255.0; 
>
> pool { 
> allow members of "groupofcomputers"; 
> range 10.0.0.2 10.0.0.10; 
> } 
> } 
>
> ### end dhcpd.conf 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
>
> Personally I keep all subclass statements in an include file. 
>
>
>
> On 18/06/13 18:24, Victor Hiebert wrote: 
>
>
> Trying to assign specific ranges to specific groups, it seems the way to do this is with classes.  Would like the assignment to happen without relying on input from the clients, eg not vendor-class-identifier.  Also I MUST use groups, and can't simply define specific clients within a class.
>
> It looks like the config-option expression is what I want, I take this expression to mean that if a client would be handed the option from the dhcpd.conf then it will be placed in the specified class.  However this never seems to work, perhaps I'm simply misunderstanding how classes and/or the config-option work?  Example dhcpd.conf below showing attempted group assignment to a class based on the domain-name option.
>
> ### begin dhcpd.conf
>
> class "groupofcomputers" {
> match if (config-option domain-name = "group.of.computers.com");
> }
>
> group {
> 	option domain-name "group.of.computers.com";
>
> 	host host1 {
>                 hardware ethernet 00:0c:29:f4:40:c8;
>         }
>         host host2 {
>                 hardware ethernet 00:15:17:63:17:0b;
> 	}
> }
>
> subnet 10.0.0.0 netmask 255.255.255.0 {
>         option broadcast-address 10.0.0.255;
>         option subnet-mask 255.255.255.0;
>
> 	pool {
>                 allow members of "groupofcomputers";
>                 range 10.0.0.2 10.0.0.10;
>         }
> }
>
> ### end dhcpd.conf
>
> --
> Victor Hiebert
> Email: vic at sfu.ca _______________________________________________
> dhcp-users mailing list dhcp-users at lists.isc.org https://lists.isc.org/mailman/listinfo/dhcp-users 

-- 
Best regards

Sten Carlsen

No improvements come from shouting:

       "MALE BOVINE MANURE!!!" 

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


More information about the dhcp-users mailing list