Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DHCP lease Table

How can I clean the DHCP lease table? It is showing some ip should return to the pull but are not. Some of the leases should have expired like 3 days ago but are still in the table. Any ideas why this could be also it shows unknown next to those addresses.


This thread was automatically locked due to age.
Parents
  • Hi, 

    I would say that looking at the dhcpd config file should answer your question,
    On version 8.5, it's at
    /var/chroot-dhcps/etc/dhcpd.conf

    Mine shows:
    # Lease times
    # 600s = 10m
    # 14400s = 4h
    # 86400 = 1d
    # 172800 = 2d
    max-lease-time 172800;
    default-lease-time 86400;
    min-lease-time 600;


    But that means they should expire after a max of 2 days.

    There must be another parameter somewhere, but I don't know where.

    I found
    "New leases are appended to the end of the dhcpd.leases file. From time to time, dhcpd removes obsolete information to prevent the file becoming too large. "
    at /var/state/dhcp/dhcpd.leases
    but that isn't very specific.

    Note that it can be GOOD that the lease information is kept, that way a device that is only online once in a while would still tend to have the same IP.

    I would guess that as the pool gets full, dhcpd would be more likely to do a 'clean-up'... are you having trouble running out of IPs in your dhcp scope?

    Barry
Reply
  • Hi, 

    I would say that looking at the dhcpd config file should answer your question,
    On version 8.5, it's at
    /var/chroot-dhcps/etc/dhcpd.conf

    Mine shows:
    # Lease times
    # 600s = 10m
    # 14400s = 4h
    # 86400 = 1d
    # 172800 = 2d
    max-lease-time 172800;
    default-lease-time 86400;
    min-lease-time 600;


    But that means they should expire after a max of 2 days.

    There must be another parameter somewhere, but I don't know where.

    I found
    "New leases are appended to the end of the dhcpd.leases file. From time to time, dhcpd removes obsolete information to prevent the file becoming too large. "
    at /var/state/dhcp/dhcpd.leases
    but that isn't very specific.

    Note that it can be GOOD that the lease information is kept, that way a device that is only online once in a while would still tend to have the same IP.

    I would guess that as the pool gets full, dhcpd would be more likely to do a 'clean-up'... are you having trouble running out of IPs in your dhcp scope?

    Barry
Children
No Data