<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 01/27/2018 05:43 AM, Bill Shirley
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:72a291a7-9bed-bdae-bd5b-562ced4bd7a9@c3po.polymerindustries.biz">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      This is all kinds of confusing.  You're configuring DHCP on a
      machine<br>
      named 'yellow' who's address is 10.1.1.2 and has a gateway of
      10.1.1.1.<br>
      Yet 'yellow' has a WAN connection?<br>
    </blockquote>
    <br>
    yellow is at 10.1.1.1.  The .2 was a typo.<br>
    <br>
    <blockquote type="cite"
cite="mid:72a291a7-9bed-bdae-bd5b-562ced4bd7a9@c3po.polymerindustries.biz">
      <br>
      You've configured DHCP for subnet 10.1.1.0/24 which is on
      interface<br>
      'enp4s5' which IS NOT UP.  Can you ping anything on the LAN?<br>
      <br>
      Is 'yellow' the internet gateway?<br>
      <br>
      Also your DHCP configuration:<br>
      <font color="#993300"><tt>       host yellow {</tt><tt><br>
        </tt><tt>             hardware ethernet f0:7d:24:c2:c4:13;</tt><tt><br>
        </tt><tt>             fixed-address 10.1.1.1;</tt><tt><br>
        </tt><tt>         }</tt><tt><br>
        </tt><tt> </tt></font>^^You're defining 'yellow' (which is the
      DHCP server!!) and it has a<br>
      different address that the one you defined in <font face="Arial">/etc/network/interfaces!!</font><br>
      <font color="#993300"><tt>iface enp4s5 inet static<br>
              address 10.1.1.2/24</tt><tt><br>
        </tt></font></blockquote>
    <br>
    <tt><font color="#993300"><font color="#000000">Nice catch!</font><br>
        <br>
      </font></tt>
    <blockquote type="cite"
cite="mid:72a291a7-9bed-bdae-bd5b-562ced4bd7a9@c3po.polymerindustries.biz"><font
        color="#993300"><tt> </tt></font><br>
      Don't define host 'yellow' in the DHCP configuration.  Add a
      comment if<br>
      you like.<br>
    </blockquote>
    <br>
    OK.  I also removed blue.  However I did entered them so that yellow
    & blue would each always get the same IP.  dhcp is primarily for
    wireless devices at the moment.  But, I do expect more wired devices
    that will need dhcp at some point.<br>
    <br>
    <blockquote type="cite"
cite="mid:72a291a7-9bed-bdae-bd5b-562ced4bd7a9@c3po.polymerindustries.biz">
      <br>
      You need to figure out which 10.1.1.0/24 address 'yellow' is
      supposed to<br>
      have and bring up interface 'enp4s5'.<br>
      <br>
      Is 'yellow' the gateway for 10.1.1.0/24?  Your '<font
        color="#993300">option routers 10.1.1.1</font>'<br>
      says it's not.<br>
    </blockquote>
    <br>
    Yes.  yellow is at 10.1.1.1, it is the gateway. <br>
    <br>
    My updated dhcpd.conf:<br>
    <br>
    ddns-update-style none;<br>
    option domain-name "myFQDN";<br>
    option domain-name-servers 10.1.1.1, 8.8.4.4, 50.23.197.95;<br>
    <br>
    default-lease-time 86400;<br>
    max-lease-time 604800;<br>
    <br>
    authoritative;<br>
    <br>
    log-facility local7;<br>
    <br>
    subnet 10.1.1.0 netmask 255.255.255.0 {<br>
            option domain-name-servers 10.1.1.1;<br>
            max-lease-time 7200;<br>
            default-lease-time 600;<br>
            range 10.1.1.10 10.1.1.250;<br>
            option subnet-mask 255.255.255.0;<br>
            option broadcast-address 10.1.1.255;<br>
            option routers 10.1.1.1;<br>
    }<br>
    <br>
    # ip -4 -o addr<br>
    1: lo    inet 127.0.0.1/8 scope host lo\       valid_lft forever
    preferred_lft forever<br>
    2: enp4s5    inet 10.1.1.1/24 brd 10.1.1.255 scope global
    enp4s5\       valid_lft forever preferred_lft forever<br>
    3: enp6s0    inet [xx.xx.xx.xx/20 brd 255.255.255.255 scope global
    enp6s0\       valid_lft forever preferred_lft forever<br>
    4: wlp2s0    inet 10.1.1.10/24 brd 10.1.1.255 scope global
    wlp2s0\       valid_lft forever preferred_lft forever<br>
    <br>
    <br>
    systemctl status isc-dhcp-server<br>
    root@yellow:/usr/local/src/myscripts# systemctl status
    isc-dhcp-server<br>
    ● isc-dhcp-server.service - ISC DHCP IPv4 server<br>
       Loaded: loaded (/lib/systemd/system/isc-dhcp-server.service;
    enabled; vendor preset: enabled)<br>
       Active: active (running) since Sat 2018-01-27 10:37:48 PST; 10min
    ago<br>
         Docs: <a class="moz-txt-link-freetext" href="man:dhcpd(8)">man:dhcpd(8)</a><br>
     Main PID: 5804 (dhcpd)<br>
       CGroup: /system.slice/isc-dhcp-server.service<br>
               └─5804 dhcpd -user dhcpd -group dhcpd -f -4 -pf
    /run/dhcp-server/dhcpd.pid -cf /etc/dhcp/<br>
    <br>
    Jan 27 10:37:48 yellow dhcpd[5804]:   <font color="#ff6666"> <b>in
        your dhcpd.conf file for the network segment</b></font><br>
    Jan 27 10:37:48 yellow dhcpd[5804]:    <b><font color="#ff6666">to
        which interface enp4s5 is attached</font></b>. **<br>
    Jan 27 10:37:48 yellow dhcpd[5804]: <br>
    Jan 27 10:37:48 yellow dhcpd[5804]: Listening on
    LPF/wlp2s0/f0:7d:68:c1:b4:13/10.1.1.0/24<br>
    Jan 27 10:37:48 yellow dhcpd[5804]: Sending on  
    LPF/wlp2s0/f0:7d:68:c1:b4:13/10.1.1.0/24<br>
    Jan 27 10:37:48 yellow sh[5804]: Listening on
    LPF/wlp2s0/f0:7d:68:c1:b4:13/10.1.1.0/24<br>
    Jan 27 10:37:48 yellow sh[5804]: Sending on  
    LPF/wlp2s0/f0:7d:68:c1:b4:13/10.1.1.0/24<br>
    Jan 27 10:37:48 yellow sh[5804]: Sending on  
    Socket/fallback/fallback-net<br>
    Jan 27 10:37:48 yellow dhcpd[5804]: Sending on  
    Socket/fallback/fallback-net<br>
    Jan 27 10:37:48 yellow dhcpd[5804]: Server starting service.<br>
    <br>
    <br>
    syslog:<br>
    <br>
    Jan 27 10:37:48 yellow systemd[1]: Started ISC DHCP IPv4 server.<br>
    Jan 27 10:37:48 yellow dhcpd[5804]: Internet Systems Consortium DHCP
    Server 4.3.3<br>
    Jan 27 10:37:48 yellow sh[5804]: Internet Systems Consortium DHCP
    Server 4.3.3<br>
    Jan 27 10:37:48 yellow sh[5804]: Copyright 2004-2015 Internet
    Systems Consortium.<br>
    Jan 27 10:37:48 yellow sh[5804]: All rights reserved.<br>
    Jan 27 10:37:48 yellow sh[5804]: 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>
    Jan 27 10:37:48 yellow dhcpd[5804]: Copyright 2004-2015 Internet
    Systems Consortium.<br>
    Jan 27 10:37:48 yellow dhcpd[5804]: All rights reserved.<br>
    Jan 27 10:37:48 yellow dhcpd[5804]: 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>
    Jan 27 10:37:48 yellow dhcpd[5804]: Config file:
    /etc/dhcp/dhcpd.conf<br>
    Jan 27 10:37:48 yellow sh[5804]: Config file: /etc/dhcp/dhcpd.conf<br>
    Jan 27 10:37:48 yellow sh[5804]: Database file:
    /var/lib/dhcp/dhcpd.leases<br>
    Jan 27 10:37:48 yellow sh[5804]: PID file:
    /run/dhcp-server/dhcpd.pid<br>
    Jan 27 10:37:48 yellow dhcpd[5804]: Database file:
    /var/lib/dhcp/dhcpd.leases<br>
    Jan 27 10:37:48 yellow sh[5804]: Wrote 4 leases to leases file.<br>
    Jan 27 10:37:48 yellow dhcpd[5804]: PID file:
    /run/dhcp-server/dhcpd.pid<br>
    Jan 27 10:37:48 yellow dhcpd[5804]: Internet Systems Consortium DHCP
    Server 4.3.3<br>
    Jan 27 10:37:48 yellow dhcpd[5804]: Copyright 2004-2015 Internet
    Systems Consortium.<br>
    Jan 27 10:37:48 yellow dhcpd[5804]: All rights reserved.<br>
    Jan 27 10:37:48 yellow dhcpd[5804]: 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>
    Jan 27 10:37:48 yellow dhcpd[5804]: Wrote 4 leases to leases file.<br>
    Jan 27 10:37:48 yellow dhcpd[5804]: <br>
    Jan 27 10:37:48 yellow sh[5804]: No subnet declaration for enp4s5
    (no IPv4 addresses).<br>
    Jan 27 10:37:48 yellow sh[5804]: ** Ignoring requests on enp4s5.  If
    this is not what<br>
    Jan 27 10:37:48 yellow sh[5804]:    you want, please write a subnet
    declaration<br>
    Jan 27 10:37:48 yellow sh[5804]:    in your dhcpd.conf file for the
    network segment<br>
    Jan 27 10:37:48 yellow sh[5804]:    to which interface enp4s5 is
    attached. **<br>
    Jan 27 10:37:48 yellow dhcpd[5804]: No subnet declaration for enp4s5
    (no IPv4 addresses).<br>
    Jan 27 10:37:48 yellow dhcpd[5804]: ** Ignoring requests on enp4s5. 
    If this is not what<br>
    Jan 27 10:37:48 yellow dhcpd[5804]:    you want, please write a
    subnet declaration<br>
    Jan 27 10:37:48 yellow dhcpd[5804]:    in your dhcpd.conf file for
    the network segment<br>
    Jan 27 10:37:48 yellow dhcpd[5804]:    to which interface enp4s5 is
    attached. **<br>
    Jan 27 10:37:48 yellow dhcpd[5804]: <br>
    Jan 27 10:37:48 yellow dhcpd[5804]: Listening on
    LPF/wlp2s0/f0:7d:68:c1:b4:13/10.1.1.0/24<br>
    Jan 27 10:37:48 yellow dhcpd[5804]: Sending on  
    LPF/wlp2s0/f0:7d:68:c1:b4:13/10.1.1.0/24<br>
    Jan 27 10:37:48 yellow sh[5804]: Listening on
    LPF/wlp2s0/f0:7d:68:c1:b4:13/10.1.1.0/24<br>
    Jan 27 10:37:48 yellow sh[5804]: Sending on  
    LPF/wlp2s0/f0:7d:68:c1:b4:13/10.1.1.0/24<br>
    Jan 27 10:37:48 yellow sh[5804]: Sending on  
    Socket/fallback/fallback-net<br>
    Jan 27 10:37:48 yellow dhcpd[5804]: Sending on  
    Socket/fallback/fallback-net<br>
    Jan 27 10:37:48 yellow dhcpd[5804]: Server starting service.<br>
    <br>
    # cat /etc/network/interfaces<br>
    <br>
    auto lo<br>
    iface lo inet loopback<br>
        dns-nameservers 10.1.1.1 8.8.8.8 8.8.4.4 50.23.197.95<br>
        dns-search myFQDN<br>
    <br>
    auto enp6s0<br>
    <br>
    iface enp6s0 inet dhcp<br>
        dns-nameservers 10.1.1.1 8.8.8.8 8.8.4.4 50.23.197.95 <br>
        dns-search myFQDN<br>
    <br>
    <br>
    auto enp4s5<br>
    allow-hotplug enp4s5 <br>
    iface enp4s5 inet static<br>
        address 10.1.1.1/24<br>
        gateway 10.1.1.1<br>
        network 10.1.1.0<br>
        netmask 255.255.255.0 <br>
        broadcast 10.1.1.255<br>
    <br>
        pre-up ip link set enp4s5 down<br>
        up ip link set enp4s5 up<br>
    <br>
        #down ip link set enp4s5 down<br>
        # post-down <insert command here><br>
    <br>
    <br>
    allow-hotplug wlp2s0 <br>
    <br>
    iface wlp2s0 inet static<br>
        address 10.1.1.3/24<br>
        gateway 10.1.1.1<br>
        network 10.1.1.0<br>
        netmask 255.255.255.0 <br>
        broadcast 10.1.1.255<br>
    <br>
        pre-up ip link set wlp2s0 down<br>
        up ip link set wlp2s0 up<br>
        down ip link set wlp2s0 down<br>
    <br>
        wireless-mode master<br>
        wireless-essid BHNDK16A0C1Z12<br>
        wireless-channel 1<br>
        wpa-ssid BHNDK16A0C1Z12<br>
    <br>
        # encrypted passwd<br>
        wpa-psk [redacted]<br>
        gateway 10.1.1.1<br>
    <br>
    <br>
    <br>
    <blockquote type="cite"
cite="mid:72a291a7-9bed-bdae-bd5b-562ced4bd7a9@c3po.polymerindustries.biz">
      <br>
      Bill<br>
      <br>
      <div class="moz-cite-prefix">On 1/27/2018 5:57 AM, Simon Hobson
        wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:E0B3AA68-C71D-49CF-9519-D4F1431EEC6D@thehobsons.co.uk">
        <pre wrap="">A <a class="moz-txt-link-rfc2396E" href="mailto:publicface@bak.rr.com" moz-do-not-send="true"><publicface@bak.rr.com></a> wrote:

</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap="">Also in your first post:
subnet 10.1.1.0 netmask 255.255.255.0 {
        interface wlp2s0;
        option domain-name-servers 10.1.1.1;
        max-lease-time 7200;
        default-lease-time 600;
        range 10.1.1.10 10.1.1.250;
        option subnet-mask 255.255.255.0;
        option broadcast-address 10.1.1.255;
        option routers 10.1.1.1;

As far as I know there is no interface directive.  Plus wlp2s0 is the wrong
interface.  You should remove that line.
</pre>
          </blockquote>
          <pre wrap=""> Wrong name for the device?  Or just shouldn't be the wireless interface?  Why is it wrong?
</pre>
        </blockquote>
        <pre wrap="">There is no instruction in dhcpd.conf called "interface". The example you found probably had it as a comment to help the person keep track of what is where.

</pre>
        <blockquote type="cite">
          <pre wrap="">If that's not how to specify the interface for that subnet, then what is the proper way please?
</pre>
        </blockquote>
        <pre wrap="">You don't ! It happens automagically, and bear in mind that a subnet served by a DHCP server does NOT have to be directly connected - it can come via a relay agent.
The server uses the IP address(es) of the interface for directly connected clients, or the Gateway Interface Address (GIAddr) field inserted by a relay agent if the client is remote (the other side of a router). That address is used to determine which subnet a client is connected to.


</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap="">What does 'ip -4 -o addr' show?

</pre>
          </blockquote>
          <pre wrap=""># ip -4 -o addr
1: lo    inet 127.0.0.1/8 scope host lo\       valid_lft forever preferred_lft forever
3: enp6s0    inet xx.xx.xx.xx/20 brd 255.255.255.255 scope global enp6s0\       valid_lft forever preferred_lft forever
</pre>
        </blockquote>
        <pre wrap="">OK, you do not have IPv4 addresses on any internal interface ! it isn't going to work like that. Or have you deleted lines from that output thinking they aren't relevant ?

_______________________________________________
dhcp-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org" moz-do-not-send="true">dhcp-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users" moz-do-not-send="true">https://lists.isc.org/mailman/listinfo/dhcp-users</a>
</pre>
      </blockquote>
      <br>
      <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>