<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hello, i have a central dhcp server serving multiple remote networks. I want to assign the same group of options to Clients wo are on different Networks, based on MAC adress or better on hostnames. I tried to solve it over a "class" declaration, but it seams that classes are only woking in conjunction with "pools" or "subnets" or "ranges", a class declaration itself has no effect is this correkt?</div>

<div> </div>

<div>For example i try:</div>

<div> </div>

<div>
<div>class "phones" {<br/>
  option ntp-servers ntp.mydomain.com;<br/>
  option tftp-server-name "https://tftp.mydomain.com";</div>

<div>  default-lease-time 600;<br/>
  max-lease-time 600;<br/>
  match host-name;</div>

<div>}</div>

<div> </div>

<div>host tel132 {<br/>
   hardware ethernet 12:04:13:87:1c:41;<br/>
   fixed-address 172.30.20.32;<br/>
   option host-name "phone132";<br/>
#Location: office<br/>
}<br/>
subclass "phones" "phone132";<br/>
 </div>

<div> </div>

<div>The phone should get a fixed IP adress and the options defined in the class.</div>

<div>I also tried the following declaration:</div>

<div> </div>

<div>
<div>class "phones" {<br/>
  option ntp-servers ntp.mydomain.com;<br/>
  option tftp-server-name "https://tftp.mydomain.com";</div>

<div>  default-lease-time 600;<br/>
  max-lease-time 600;<br/>
  match if substring(option host-name,0,7) = "phone132";<br/>
}<br/>
host tel132 {<br/>
   hardware ethernet 12:04:13:87:1c:41;<br/>
   fixed-address 172.30.20.32;<br/>
   option host-name "phone132";<br/>
#Location: office<br/>
}</div>

<div> </div>

<div>Should have the same effect, but also des not work, as expected above, i thind class declaration does not work if not assigned to a pool or subnet or range.</div>

<div> </div>

<div>Can a client be assigned to multiple classes, is this possible or can a client only be member of one class?</div>

<div> </div>

<div>Thanks for your help!!</div>
</div>
</div></div></body></html>