DHCPD Doesn't Update Lease File



  • 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.



  • 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.


Log in to reply