<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi folks,<br>
<br>
I have a very basic knowledge about DHCP, so forgive this question.
I need to assign my hosts to specific subnets without fixing their
IP address and so I am learning about subclasses in the hope this
may be my solution. Also, by subClassing my hosts I expect to be
able to roam them to branch offices on different subnets without
modification on their declaration or config (will use a replicated
LDAP to hold confs).<br>
<br>
First things first I am managing to create a dhcpd.conf for the main
office with the contents below. It has a subnet to my hosts, a
guests subnet and a third to unknown hosts, which I believe is
self-explanatory. <br>
<br>
What happens is that the clsDesktop host 08:00:27:12:34:56 ends up
on the unknown hosts subnet instead of the 10.1.1.0/24 as desired.
First question: is a subClassed host a "known-host" so I can, for
example, deny it on the pool declaration? Why does the host flees
the clsDesktop pool declaration? What am I missing?<br>
<br>
Appreciate if someone can enlighten me on the subject and how to
achieve this goal.<br>
<br>
authoritative;<br>
always-broadcast on;<br>
<br>
max-lease-time 86400; # 1 dias<br>
default-lease-time 7200; # 2 horas<br>
min-lease-time 3600; # 1 hora<br>
<br>
class "clsDesktop" {<br>
match pick-first-value (option dhcp-client-identifier,
hardware);<br>
}<br>
class "clsGuest" {<br>
match pick-first-value (option dhcp-client-identifier,
hardware);<br>
}<br>
<br>
shared-network Foo {<br>
subnet 10.1.1.0 netmask 255.255.255.0 {<br>
pool {<br>
allow members of "clsDesktop";<br>
range 10.1.1.20 10.1.1.254;<br>
}<br>
}<br>
subnet 10.0.0.0 netmask 255.255.255.0 {<br>
pool {<br>
allow members of "clsGuest";<br>
range 10.0.0.46 10.0.0.254;<br>
}<br>
}<br>
subnet 172.16.0.0 netmask 255.255.255.0 {<br>
pool {<br>
allow unknown-clients;<br>
range 172.16.0.1 172.16.0.254;<br>
}<br>
}<br>
}<br>
subclass "clsDesktop" 1:08:00:27:12:34:56 { }<br>
<br>
<br>
Best regards.<br>
<br>
<div class="moz-signature">-- <br>
<style type="text/css">
#a1AssinaturaEmail { font-family: Tahoma, Verdana, Arial; font-size: 10px; }
#a1AssinaturaEmail * { font-family: Tahoma, Verdana, Arial; font-size: 10px; }
#a1AssinaturaEmail a { text-decoration: none; color: #FF9900; }
</style>
<div id="a1AssinaturaEmail"> <span style="font-size: 12px;"><b>Marcio
Merlone</b></span><br>
</div>
</div>
</body>
</html>