<div dir="ltr">Not all clients send a dhcp-client-identifier, so try also listing the hardware address, and I think the semicolon is needed:<div><br></div><div><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:12.7272720336914px">subclass "clsDesktop" 1:08:00:27:12:34:56;</span><br></div><div><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:12.7272720336914px">subclass "clsDesktop" 08:00:27:12:34:56;</span><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:12.7272720336914px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:12.7272720336914px"><br></span></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><br>-- <br>Bob Harold<br>hostmaster, UMnet, ITcom<br>Information and Technology Services (ITS)<br><a href="mailto:rharolde@umich.edu" target="_blank">rharolde@umich.edu</a><br>734-647-6524 desk<br></div></div>
<br><div class="gmail_quote">On Tue, Nov 25, 2014 at 1:05 PM, Márcio Merlone <span dir="ltr"><<a href="mailto:marcio.merlone@a1.ind.br" target="_blank">marcio.merlone@a1.ind.br</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div 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 <a href="http://10.1.1.0/24" target="_blank">10.1.1.0/24</a> 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.<span class="HOEnZb"><font color="#888888"><br>
    <br>
    <div>-- <br>
      
      <div> <span style="font-size:12px"><b>Marcio
            Merlone</b></span><br>
      </div>
    </div>
  </font></span></div>

<br>_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br></blockquote></div><br></div>