class options.

Gene Rackow rackow at mcs.anl.gov
Thu Sep 7 12:51:34 UTC 2006


I'm trying to determine the best way of handling this.
We are using netreg to add people to the dhcp system as known hosts.

As a question/option on the web pages, I'd like to have a checkbox
for a "feature" that would put allow the machine to be put into a
seperate pool.

On the example page is how to set up the 2 pools with allow/deny members.
What I'd like to do is have the host entries look like:
host host-122 { hardware ethernet 00:11:22:33:33:55; class foo };
host host-123 { hardware ethernet 00:11:22:33:33:66; class bar };
host host-124 { hardware ethernet 00:11:22:33:33:77; class bar };
host host-125 { hardware ethernet 00:11:22:33:33:88; };

The docs seem to indicate that this isn't going to work the way
I want it to.  Could someone suggest how this could be set up?
I really don't have a way of classifying the machines
in each pool based on the OS or hardware types.  I need this
to be something selectable from the web page netreg interface
and hopefully can be done without needing to rewrite the whole
dhcp server files.

Would the way to do this by writting each entry into it's own
class file?
 class "bar" {
   include barmembers;
   }
 class "foo" {
   include foomembers;
   }
Then just write the host entries into the appropriate file?

--Gene


More information about the dhcp-users mailing list