"unsetting" global options for a host

Rick Coloccia coloccia at geneseo.edu
Mon Jan 30 22:05:09 UTC 2012


I like the classes idea.  I went through the docs and man pages.  I'm 
trying to work out how I'd use classes to do this but I am hitting a 
stumbling block.  I really don't know anything unique about 99.9% of the 
hosts I want to give everything to - I only need to not give certain 
options to a small lists of hosts.  I can make a class for them, I know 
who they are, but can I make a class that matches "everything but 
00:11:22:43:44:55 and 66:77:88:99:00:aa" so that I can say "class 
almost-everyone" gets these things and "class only-a-few" gets those?

Put another way, is there wildcard class matching implemented in such a 
way that a more specific match override a less specific/wildcard based 
match?

Thanks again, everyone.

-Rick

On 1/30/2012 12:54 PM, perl-list wrote:
> If you setup two classes.  One for everyone else and one for the 
> printer and other devices that you need special options for, you can 
> do this.  I bet you can't unset an option, however.  There should be a 
> way to match everything for one class.  Matching for the other class 
> (the one with the printer) could be done by mac address.  Then you 
> could set options as needed in each class.  That way the options are 
> never global.
>
>
> ------------------------------------------------------------------------
>
>     *From: *"Rick Coloccia" <coloccia at geneseo.edu>
>     *To: *dhcp-users at lists.isc.org
>     *Sent: *Monday, January 30, 2012 12:16:10 PM
>     *Subject: *"unsetting" global options for a host
>
>     Hello,
>
>     The message below went out to the list in April 2010.  I need to
>     do the
>     exact same thing, albeit for a slightly different reason.  I need
>     to set
>     a global "filename" option for netbooting most hosts, but we have
>     some
>     hosts that need to netboot but not receive a filename option at
>     all from
>     the dhcp server.
>
>     As far as I can see by searching the list archives, no one responded.
>     Is this not possible?   Thoughts?  Thanks, folks!!
>
>     I am running Internet Systems Consortium DHCP Server V3.1.2b1 on
>     CentOS
>     release 5.7 running this kernel: 2.6.18-238.12.1.el5PAE #1 SMP.
>
>     -Rick
>
>
>     Is it possible to locally (at host declaration level) "unset" or
>     "undefine" a general (top-level) option?
>
>     We've got a broken printer which can't handle the provided
>     netbios-scope information properly.
>
>     So I'd like to override our netbios globally-set options: not by
>     setting a different value, but by
>     deleting or unsetting the options. So that this host won't get
>     that options, as if they had never
>     been set.
>
>     We are running version 3.1.1-7.12 on SLES 11
>
>     Thanks in advance and best regards,
>
>     Luis Hernandez
>
>     -- 
>     Rick Coloccia, Jr.
>     Network Manager
>     State University of NY College at Geneseo
>     1 College Circle, 119 South Hall
>     Geneseo, NY 14454
>     V: 585-245-5577
>     F: 585-245-5579
>
>     _______________________________________________
>     dhcp-users mailing list
>     dhcp-users at lists.isc.org
>     https://lists.isc.org/mailman/listinfo/dhcp-users
>
>
>
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users

-- 
Rick Coloccia, Jr.
Network Manager
State University of NY College at Geneseo
1 College Circle, 119 South Hall
Geneseo, NY 14454
V: 585-245-5577
F: 585-245-5579

CIT will never ask for your password or other confidential information via email.

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


More information about the dhcp-users mailing list