<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Gentleman , finally I manage to handle two shared networks from two
    relays.<br>
    Now when my network grows and need more ip allocations I just will
    add subnets to each shared network declaration.<br>
    Te scenario would be:<br>
    <img alt="rel" title="rel"
      src="cid:part1.00060704.07000607@gmail.com" width="559"
      height="264"><br>
    <br>
    Te config is:<br>
    <br>
    shared-network Relay1 {<br>
            subnet 192.168.88.0 netmask 255.255.255.128 {<br>
                    range 192.168.88.2 192.168.88.126;<br>
                    option broadcast-address 192.168.88.127;<br>
                    option subnet-mask 255.255.255.128;<br>
                    option routers 192.168.88.1;<br>
    <br>
            }<br>
            subnet 192.168.89.0 netmask 255.255.255.128{<br>
                    range 192.168.89.2 192.168.89.126;<br>
                    option broadcast-address 192.168.89.127;<br>
                    option subnet-mask 255.255.255.128;<br>
                    option routers 192.168.89.1;<br>
            }<br>
    }<br>
    <br>
    shared-network Relay2 {<br>
            subnet 192.168.88.128 netmask 255.255.255.128 {<br>
                    range 192.168.88.130 192.168.88.254;<br>
                    option broadcast-address 192.168.88.255;<br>
                    option subnet-mask 255.255.255.128;<br>
                    option routers 192.168.88.129;<br>
                    }<br>
    <br>
            subnet 192.168.89.128 netmask 255.255.255.128 {<br>
                    range 192.168.89.130 192.168.89.254;<br>
                    option broadcast-address 192.168.89.255;<br>
                    option subnet-mask 255.255.255.128;<br>
                    option routers 192.168.89.129;<br>
                    }<br>
    }<br>
    Next; I will add a failover pair and test it<br>
    <br>
    Btw; I would like to add that my escenario has been simulated using
    virtualbox with  two centos and a pfsense VM.<br>
    Also used two very usefull tools : dhcpd-pools to check in real time
    how the leases are being consumed , and dhcperf to simulate the dhcp
    requests.<br>
    If somebody want to get  help about compile / use them or any info
    related to virtualbox networking setting , please let me know.<br>
    I got a lot of help from this list, I would like also to share
    something back.<br>
    <br>
    Regards.<br>
    Leandro.<br>
        <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 30/06/15 04:16, Han Koster wrote:<br>
    </div>
    <blockquote cite="mid:D1B80E57.38E1%25h.koster@genexis.eu"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div>Besides the remarks you already got on shared networks, in
        the configuration of pool#2 you define in option routers the
        first IP address(129) of the range.</div>
      <div>It will not solve your problem, but I suggest you start the
        range at 130.</div>
      <div>Han Koster</div>
      <div><br>
      </div>
      <span id="OLK_SRC_BODY_SECTION">
        <div style="font-family:Calibri; font-size:11pt;
          text-align:left; color:black; BORDER-BOTTOM: medium none;
          BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT:
          0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;
          BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
          <span style="font-weight:bold">From: </span><<a
            moz-do-not-send="true"
            href="mailto:dhcp-users-bounces@lists.isc.org"><a class="moz-txt-link-abbreviated" href="mailto:dhcp-users-bounces@lists.isc.org">dhcp-users-bounces@lists.isc.org</a></a>>
          on behalf of Leandro <<a moz-do-not-send="true"
            href="mailto:ingrogger@gmail.com">ingrogger@gmail.com</a>><br>
          <span style="font-weight:bold">Reply-To: </span>Users of ISC
          DHCP <<a moz-do-not-send="true"
            href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>><br>
          <span style="font-weight:bold">Date: </span>Monday 29 June
          2015 22:42<br>
          <span style="font-weight:bold">To: </span>Users of ISC DHCP
          <<a moz-do-not-send="true"
            href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>><br>
          <span style="font-weight:bold">Subject: </span>Did not work
          as expected<br>
        </div>
        <div><br>
        </div>
        <div>
          <div bgcolor="#FFFFFF" text="#000000">Hi guys , while trying
            to get my config working, got this unexpected result.<br>
            After setting following connection diagram:<br>
            <br>
            <img moz-do-not-send="true" alt="rel" title="rel"
              src="cid:part1.00000305.06050708@gmail.com" width="520"
              height="234"><br>
            <br>
            Having following dhcpd.conf subnet config:<br>
            <br>
            shared-network Public {<br>
                    subnet 192.168.88.0 netmask 255.255.255.0{<br>
                            #pool1<br>
                            pool{<br>
                            range 192.168.88.2 192.168.88.126;<br>
                            option broadcast-address 192.168.88.127;<br>
                            option subnet-mask 255.255.255.128;<br>
                            option routers 192.168.88.1;<br>
                            }<br>
                            #pool2<br>
                            pool{<br>
                            range 192.168.88.129 192.168.88.254;<br>
                            option broadcast-address 192.168.88.255;<br>
                            option subnet-mask 255.255.255.128;<br>
                            option routers 192.168.88.129;<br>
                            }<br>
            <br>
                    }<br>
            <br>
            }<br>
            <br>
            <br>
            I got following lease asigment:<br>
            Jun 29 17:04:42 centos86_64 dhcpd: DHCPDISCOVER from
            08:00:27:95:d9:62 via 192.168.88.129<br>
            Jun 29 17:04:42 centos86_64 dhcpd: DHCPOFFER on
            192.168.88.33 to 08:00:27:95:d9:62 via 192.168.88.129<br>
            Jun 29 17:04:42 centos86_64 dhcpd: DHCPREQUEST for
            192.168.88.33 (20.1.1.254) from 08:00:27:95:d9:62 via
            192.168.88.129<br>
            Jun 29 17:04:42 centos86_64 dhcpd: DHCPACK on 192.168.88.33
            to 08:00:27:95:d9:62 via 192.168.88.129<br>
            <br>
            What is wrong ?I expeted that request coming from
            192.168.88.129 would receive some lease from pool2 since
            192.168.88.129 falls there.<br>
            Instead I, receibing a lease from pool1 including the router
            option ... The client connected behind relay2 will never go
            out.<br>
            Any Ideas ?<br>
            <br>
            Thanks in advance,<br>
            Leandro.<br>
            <br>
            <br>
          </div>
        </div>
      </span>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
dhcp-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>