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

    DHCPD Doesn't Update Lease File

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 1 Posters 796 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.
    • A
      afasoas
      last edited by

      Hi, I'd appreciate some insight into this.

      I'm running 2.3.2-RELEASE-p1 (amd64) and I've noticed just recently (may coincide with my last upgrade) that when I view "Status -> DHCP Leases" in the Web GUI, no leases are ever shown.
      My clients are successfully obtaining leases on three interfaces for which I am using the DHCP server.
      The /var/dhcpd/dhcpd.leases has the following contents:

      # The format of this file is documented in the dhcpd.leases(5) manual page.
      # This lease file was written by isc-dhcp-4.3.4
      
      # authoring-byte-order entry is generated, DO NOT DELETE
      authoring-byte-order little-endian;
      
      dhcpd --version
      isc-dhcpd-4.3.4
      
      

      I've tried removing the file and restarting the dhcpd service. It gets written out with the same contents as above, but as clients connect no leases are written out and the "Status -> DHCP Leases" page remains empty.

      I'm getting concerned that I'll end up in a situation with conflicting leases issues if this isn't resolved.

      1 Reply Last reply Reply Quote 0
      • A
        afasoas
        last edited by

        A bit of further digging, I found that if I added a DHCP Static Mapping, it did show up in "Status -> DHCP Leases".
        /var/dhcpd/var/db/dhcpd.leases file still remained as before with the default content. Where is this static mapping maintained from isc-dhcp-server's perspective?

        On edit: Answered my own question, the DHCP Static Mapping goes into the configuration, hence it's recorded and persists. I'm tempted to add a path for the leases file to the dhcpd configuration.

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