Forums

Rohn
Rohn
Offline
Resolved
0 votes
When I go to the dhcp server page, the list of leases does not include all the devices on my network receiving dhcp addresses. I am trying to create a static reservation for a device that is not showing up. Thanks
Friday, February 08 2019, 12:04 AM
Share this post:
Responses (7)
  • Accepted Answer

    Friday, February 08 2019, 05:02 AM - #Permalink
    Resolved
    0 votes
    Just checking for the obvious...

    At the top of the page there’s a drop down menu allowing you to show X amount of rows at a time, and then at the bottom of the page there are arrows to leaf through those pages?
    The reply is currently minimized Show
  • Accepted Answer

    Friday, February 08 2019, 08:42 AM - #Permalink
    Resolved
    0 votes
    Or have a look in /var/lib/dnsmasq/dnsmasq.leases.

    Could you by any chance have 2 DHCP servers on your LAN (think router acting as a WAP). If so, it is a recipe for a network mess.
    The reply is currently minimized Show
  • Accepted Answer

    Rohn
    Rohn
    Offline
    Friday, February 08 2019, 09:33 PM - #Permalink
    Resolved
    0 votes
    Thanks for the replies. There are only 12 devices showing up, & no additional pages. The file dnsmasq.leases shows the exact same list. I double checked my WAP to make sure dhcp server is still disabled & it is. There are a couple other devices on my network which are getting dhcp addresses, but not showing up on this list. Come to thinks of it, the devices that are missing from the list, are devices which you don't directly configure, but use a app on a phone to configure like an Alexa, a thermostat, this device which is a Monument photo manager. I'm not sure if that has anything to do with it, but it does seem like quite the coincidence. Tech support for the Monument told me how to find the ip address for the device, I ran arp -a & found the mac address for the device & created a static lease for it, but it still does not show up in the list.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, February 08 2019, 09:55 PM - #Permalink
    Resolved
    0 votes
    Are those devices getting an IP on your LAN or are they getting an IP on a different subnet? Could the device they get their configuration from be acting as a router and is using a different subnet for its LAN.
    The reply is currently minimized Show
  • Accepted Answer

    Rohn
    Rohn
    Offline
    Saturday, February 09 2019, 02:39 AM - #Permalink
    Resolved
    0 votes
    No, they are on the same subnet as the rest of the devices.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, February 09 2019, 04:47 AM - #Permalink
    Resolved
    0 votes
    Does dnsmasq actually put an entry in the lease file for statically defined addresses? I don't use it, but ask the question as the ISC dhcpd server, which is used here, doesn't...

    The quick way to find static addresses assigned by ISC dhcpd is to look in the log, e.g.

    Feb 9 15:08:25 danda dhcpd: DHCPREQUEST for 192.168.2.11 (192.168.2.98) from 88:32:9b:25:55:e7 via enp3s0
    Feb 9 15:08:25 danda dhcpd: DHCPACK on 192.168.2.11 to 88:32:9b:25:55:e7 via enp3s0

    There is no corresponding entry, an example for a dynamic lease below, in the lease file for 192.168.2.11...

    lease 192.168.2.89 {
    starts 4 2019/01/24 04:57:48;
    ends 4 2019/01/24 05:07:48;
    tstp 4 2019/01/24 05:07:48;
    tsfp 4 2019/01/24 05:07:48;
    atsfp 4 2019/01/24 05:07:48;
    cltt 4 2019/01/24 04:57:48;
    binding state backup;
    hardware ethernet 50:e5:49:6c:00:ca;
    }
    server-duid "\000\001\000\001#\001\343\034h\005\312\015\235\307";
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, February 09 2019, 09:06 AM - #Permalink
    Resolved
    0 votes
    Dnsmasq does put entries into /etc/ethers for static leases when you fix them in the webconfig. When they are used, the also appear in /var/lib/dnsmasq/dnsmasq.leases. Still, have a look, as Tony suggests, in the messages log for dnsmasq-dhcp entries. Perhaps looking for your device MAC addresses as well as IP's.
    The reply is currently minimized Show
Your Reply