<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    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>
    <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><br>
    Don't define host 'yellow' in the DHCP configuration.  Add a comment
    if<br>
    you like.<br>
    <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>
    <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"><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">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>