<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFCC" text="#000000">
I would be thinking if the management system could be changed since
it does not do what is needed?<br>
<br>
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?<br>
<br>
This should not be such a big task.<br>
<br>
<br>
<div class="moz-cite-prefix">On 18/06/13 19:20, Victor Hiebert
wrote:<br>
</div>
<blockquote
cite="mid:1085454085.311478331.1371576031578.JavaMail.root@jaguar7.sfu.ca"
type="cite">
<pre wrap="">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" <a class="moz-txt-link-rfc2396E" href="mailto:stenc@s-carlsen.dk"><stenc@s-carlsen.dk></a>
To: <a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>
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: <a class="moz-txt-link-abbreviated" href="mailto:vic@sfu.ca">vic@sfu.ca</a> _______________________________________________
dhcp-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a> <a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Best regards
Sten Carlsen
No improvements come from shouting:
"MALE BOVINE MANURE!!!"
</pre>
</body>
</html>