Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Last seen for static DHCP leases

    Scheduled Pinned Locked Moved DHCP and DNS
    3 Posts 2 Posters 341 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      Ros44
      last edited by

      Hi there,

      Is there a way to view when was the last time a static DHCP lease was used by the device that is supposed to use it. I am transitioning from a MikroTik router where I am using this information to track if a computer in the network was not used for a while.

      I am interested if this information is actually collected at all by ISC or Kea?
      If it is, I would be even more interested how to display it, hopefully in the web interface.

      Thanks!

      T 1 Reply Last reply Reply Quote 0
      • T
        tgl @Ros44
        last edited by

        @Ros44
        Both DHCP servers seem to ping leased addresses every so often; the status indicators at the left of the "DHCP Leases" GUI page will give a thumbs-down to a device that's been offline for more than a couple minutes. I'm not sure what the ping interval is, or if you can control it, or if there's a way to see the underlying last-response-time state ... but that state must exist.

        1 Reply Last reply Reply Quote 0
        • R
          Ros44
          last edited by

          For anyone that has the same question.

          A workaround I've found is the Arpwatch package. It has a Timestamp data that has the last seen time not only for DHPC clients, but also for hosts with static IPs which is amazing!

          It does the job perfectly but has the following cons:

          • there is no convenient way to remove specific entries from the Arpwatch database;
          • in order to find the last seen time of specific host from the DHCP lease table, I have to manually crosscheck the info from both services;
          • sorting the database of Arpwatch is done by the letters of the days of the week, not by the date itself which is quite unusual and a bit silly.

          Regards!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.