how to set class attributes for a host or group instead of a pool?

Niall O'Reilly niall.oreilly at ucd.ie
Fri Nov 8 10:04:58 UTC 2013


On 8 Nov 2013, at 09:47, Glenn Satchell wrote:

> With the sub-class you create an entry in one class or the other for each
> mac address, eg:
> 
> subclass "pxe" 1:00:01:02:03:04:05;
> subclass "pxe" 1:00:01:02:03:04:06;
> subclass "pxe" 1:00:01:02:03:04:07;
> subclass "pxe" 1:00:01:02:03:04:08;
> subclass "norm" 1:00:01:02:03:12:32;
> 
> and
> 
> host ... { hardware ethernet 00:01:02:03:04:05; fixed-address ... }
> host ... { hardware ethernet 00:01:02:03:04:06; fixed-address ... }
> host ... { hardware ethernet 00:01:02:03:04:07; fixed-address ... }
> 
> If you have lots of hosts, then perhaps a script that generates the
> included config files would be easier.

	You can also specify distinct actions (e.g. setting variables or options)
	for each subclass, so:

subclass "norm" 1:00:01:02:03:12:32 { ... };

	However, the documentation for dhcpd.conf contains the following:

The  fixed-address  declaration  is  used  to  assign  one or more fixed IP addresses to a client.  It should only appear in a host declaration. 

	I haven't tried it, so can't say whether or in what circumstances 
	this warning can be disregarded.

	Best regards,
	Niall O'Reilly



More information about the dhcp-users mailing list