<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Em 12-06-2012 13:31, Simon Hobson escreveu:
    <blockquote cite="mid:p06240865cbfd1dd9a240@simon.thehobsons.co.uk"
      type="cite">Marcio Merlone wrote:
      <br>
      <blockquote type="cite">shared-network foo{
        <br>
            subnet 10.0.0.0 netmask 255.255.255.0 {
        <br>
        <br>
                group {
        <br>
                    option routers 10.0.0.100;
        <br>
                    option blah;
        <br>
                    pool {
        <br>
                        range 10.0.0.1 10.0.0.10;
        <br>
                    }
        <br>
                    host bar1 { hardware-ethernet 00:00:00:00:00:01; }
        <br>
                    host bar2 { hardware-ethernet 00:00:00:00:00:02; }
        <br>
                }
        <br>
      </blockquote>
    </blockquote>
    (...)<br>
    <blockquote cite="mid:p06240865cbfd1dd9a240@simon.thehobsons.co.uk"
      type="cite">
      <blockquote type="cite">}
        <br>
      </blockquote>
      Yes it's possible - though not sure about putting pool declaration
      in there.
      <br>
    </blockquote>
    I am sure now, got time to test. It cannot be there:<br>
    <br>
    dhcpd3 -t -cf /etc/dhcp3/dhcpd.conf<br>
    Internet Systems Consortium DHCP Server V3.1.3<br>
    Copyright 2004-2009 Internet Systems Consortium.<br>
    All rights reserved.<br>
    For info, please visit <a class="moz-txt-link-freetext" href="https://www.isc.org/software/dhcp/">https://www.isc.org/software/dhcp/</a><br>
    /etc/dhcp3/dhcpd.conf line 56: pool declared outside of network<br>
                            pool <br>
                            ^<br>
    /etc/dhcp3/dhcpd.conf line 150: pool declared outside of network<br>
                            pool <br>
                            ^<br>
    Configuration file errors encountered -- exiting<br>
    <br>
    <blockquote cite="mid:p06240865cbfd1dd9a240@simon.thehobsons.co.uk"
      type="cite">
      <blockquote type="cite">Will it work as expected?
        <br>
      </blockquote>
      That depends on what you expect !
      <br>
    </blockquote>
    I expect bar1 and 2 to get an ip from one range and the others from
    another range, all within the same subnet. Sorry not making this
    clear before. And please, don't ask why I need this. :)<br>
    <br>
    <blockquote cite="mid:p06240865cbfd1dd9a240@simon.thehobsons.co.uk"
      type="cite">Also, if you have any expectation that the host
      statements would in any way whatsoever tie the hosts to a subnet
      or range, then no that won't do what you expect.
      <br>
    </blockquote>
    Indeed.<br>
    <br>
    <blockquote cite="mid:p06240865cbfd1dd9a240@simon.thehobsons.co.uk"
      type="cite">
      It is this element of unexpected (and almost certainly unwanted)
      option inheritance that leads to the general advice to never put
      host statements within a subnet declaration.<br>
      <br>
      It's more likely that you'd want to use classes (see the man page
      section on classes and subclasses) :
      <br>
      class "group1" ...
      <br>
      class "group2" ...
      <br>
      subnet ...
      <br>
        range ...
      <br>
          option routers ... # not too sure about this one
      <br>
          allow members of class1
      <br>
        range ...
      <br>
          option routers ... # not too sure about this one
      <br>
          allow members of class2
      <br>
    </blockquote>
    <br>
    Will dig for that and post here if any success. Meanwhile, if
    someone have any example on how to do it I'll be very happy.<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>