<div dir="ltr">Sten, a lot of thanks...<br><br>Do you have some examples that you can share with me to assign a range or other depending of the device type that send the request to begin to work over that?<br><br><br>Best regards,<br><br>Juan García<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El jue., 1 ago. 2019 a las 13:06, Sten Carlsen (<<a href="mailto:stenc@s-carlsen.dk">stenc@s-carlsen.dk</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFCC">
    <br>
    <br>
    <div class="gmail-m_862022800790240858moz-cite-prefix">On 01/08/2019 09.05, Juan Antonio
      García Moreno wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">Hi everyone,<br>
        <br>
        I have read a lot of information on Internet but I haven't this
        too clear and I would like ask you if this can do or not.<br>
        <br>
        This is the situation:<br>
        <br>
        - I have a network wired and WIFI.<br>
        - I have the ISC DHCP Server that assign IP address statically
        with "fixed-address" and dinamically from a pool address with
        "range".<br>
        <br>
        I would know if I can to have, for example, 3 ranges and assign
        the IP Address depending of the device type that request the IP.<br>
        <br>
        For example:<br>
        <br>
        - Static IP to devices that I want by MAC.<br>
        - POOL1 to LAPTOP.<br>
        - POOL2 to Smartphones.<br>
        - POOL3 to Tablets or Watches.<br>
        <br>
        How could I discriminate the request and assign the IP from
        POOL1, POOL2 or POOL3 depending if the device is a LAPTOP, a
        Smartphone or a Tablet?<br>
        <br>
        <div>Can I do this?<br>
        </div>
      </div>
    </blockquote>
    What I do is the following:<br>
    <ul>
      <li>I have a few static host entries defined globally for a few
        hosts that need a fixed address</li>
      <li>I have one subnet for unknown devices - devices that are
        connected but have not been accepted by me</li>
      <li>I have a different subnet for normal use</li>
      <ul>
        <li>I have one pool for devices that are allowed internet access</li>
        <li>I have one pool for devices that are not allowed internet
          access</li>
        <li>I have a space for the fixed addresses outside of these
          pools</li>
      </ul>
      <li>I have defined two classes, one for internet access and one
        without</li>
      <ul>
        <li>I use a list of subclass definitions for every device
          without a fixed address</li>
        <li>each subclass definition determines access or not by
          assigning to the class and in some cases give the DNS name</li>
      </ul>
      <li>Each pool definition use deny and allow statements to allow
        only the relevant devices</li>
    </ul>
    <p>The difficult part of your setup will be to assign each device to
      the correct class. There are lots of possibilities but specific
      knowledge is needed about your devices to do that.</p>
    <p>I use a manually edited list of subclass definitions because this
      fits my needs. My next setup will be KEA with mysql backend and a
      web page to do the administration.<br>
    </p>
    <blockquote type="cite">
      <div dir="ltr">
        <div><br>
          What would be the best way to do it?<br>
          <br>
          Does anyone have, and can show me, some examples?<br>
          <br>
          <br>
          Best regards,<br>
          <div><br>
          </div>
          <div>Juan García</div>
        </div>
      </div>
      <br>
      <fieldset class="gmail-m_862022800790240858mimeAttachmentHeader"></fieldset>
      <pre class="gmail-m_862022800790240858moz-quote-pre">_______________________________________________
dhcp-users mailing list
<a class="gmail-m_862022800790240858moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a>
<a class="gmail-m_862022800790240858moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a>
</pre>
    </blockquote>
    <br>
  </div>

</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><a href="http://www.emergya.com/" rel="noopener" alt="www.emergya.com" target="_blank"><img alt="EMERGYA" width="80" border="0" src="https://drive.google.com/uc?export=view&id=1Qq3n-rKeCyFt3CQBeL55l8d_ynzEikrr" style="border: 0px; height: auto; width: 80px; padding: 6px;"></a><table cellpadding="0" cellspacing="0"><tbody><tr><td valign="top" style="width:305px;padding-bottom:3px;padding-left:10px;vertical-align:top;line-height:25px"><strong style="color:rgb(12,35,64);font-family:Roboto,Verdana,sans-serif;font-size:10pt"><span style="font-size:12pt;color:rgb(239,51,64)">Juan García</span></strong><font color="#0c2340" face="Roboto, Verdana, sans-serif"><span style="font-size:10pt"> </span></font><br><pre><font color="#444444" face="times new roman, serif"><b>Dto. de Soporte Interno</b></font><font color="#444444" face="Roboto, Verdana, sans-serif"><span style="font-size:13.3333px"><br></span></font></pre><span style="color:rgb(12,35,64);font-family:Roboto,Verdana,sans-serif;font-size:11pt"><strong>EMERGYA INGENIERÍA</strong></span></td></tr><tr><td valign="top" style="font-size:10pt;color:rgb(68,68,68);font-family:Roboto,Verdana,sans-serif;padding-bottom:3px;padding-top:3px;padding-left:10px;vertical-align:top"><span><pre><strong style="font-family:Roboto,Verdana,sans-serif;color:rgb(12,35,64);font-size:13.3333px">m:</strong><span style="font-size:10pt;font-family:Arial,sans-serif"> +34 954 517 577</span><br></pre></span><span><span style="color:rgb(12,35,64)"><strong>p:</strong></span><span style="font-size:10pt;font-family:Arial,sans-serif"> +34 954 517 577<br></span></span><span><span style="color:rgb(12,35,64)"><strong>e:</strong></span><span style="font-size:10pt;font-family:Arial,sans-serif"> <a href="mailto:jagarcia@emergya.com" target="_blank">jagarcia@emergya.com</a></span></span></td></tr><tr><td valign="top" style="font-size:10pt;font-family:Arial,sans-serif;padding-bottom:5px;padding-top:5px;padding-left:10px;vertical-align:top"><span><a href="https://www.linkedin.com/company/emergya" rel="noopener" target="_blank"><img border="0" width="23" alt="linkedin icon" src="https://drive.google.com/uc?export=view&id=14q9KMnHl26KNIOktIUE0SY3sPgQpFWS5" style="border: 0px; height: 23px; width: 23px;"></a> </span> <span><a href="https://www.facebook.com/Emergya" rel="noopener" target="_blank"><img border="0" width="23" alt="facebook icon" src="https://drive.google.com/uc?export=view&id=14LlHRBrAqHVDnAAy4ZeOiDWUtegdTCwT" style="border: 0px; height: 23px; width: 23px;"></a> </span> <span><a href="https://twitter.com/emergya" rel="noopener" target="_blank"><img border="0" width="23" alt="twitter icon" src="https://drive.google.com/uc?export=view&id=14LwyilYJrI3ovruB9yF8ZSF5YP0siLBp" style="border: 0px; height: 23px; width: 23px;"></a></span><span> </span> <span><a href="https://www.youtube.com/channel/UCU0ISPwk1pcOWwjpX63gN_A" rel="noopener" target="_blank"><img border="0" width="23" alt="youtube icon" src="https://drive.google.com/uc?export=view&id=14TBFW3LI-4fqSz3-Vqk9MM0B4wonpZVp" style="border: 0px; height: 23px; width: 23px;"></a> </span></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></div></div></div>