vendor-encapsulated-options and Scope

David W. Hankins David_Hankins at
Thu Dec 11 18:48:15 UTC 2008

On Thu, Dec 11, 2008 at 01:29:48PM -0500, Reissom Beshir wrote:
> I believe you can define one class and use subclass statements in the 
> subnet scope. So your config would be as follows.

No, that doesn't work either.  The subclasses are just attached to
the class in a hash table, which is again searched globally.

But you can use a global class statement to select a vendor class,
and scope vendor class configuration at a subnet level.


option space foo hash size 3;
option code 1 = unsigned integer 8;

class "foo" {
  match if option vendor-class-identifier = "foo";

  vendor-option-space foo;

subnet a.b.c.d netmask {
  option 42;

Of course this means you'd have to stop trying to use raw hex to
configure the vendor class options, which may be a barrier to

Ash bugud-gul durbatuluk agh burzum-ishi krimpatul.
Why settle for the lesser evil?
David W. Hankins	"If you don't do it right the first time,
Software Engineer		     you'll just have to do it again."
Internet Systems Consortium, Inc.		-- Jack T. Hankins
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <>

More information about the dhcp-users mailing list