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

    Remove automatically DHCP Leases Expired

    Scheduled Pinned Locked Moved DHCP and DNS
    9 Posts 2 Posters 23.5k 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.
    • Z
      zsunol
      last edited by

      Hello,

      How to remove automatically ( Cron? )inย  DHCP Leases : Offline Lease Type Expired

      Thank you

      zs

      Uploaded with ImageShack.us

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        They will be reclaimed as needed. Why do you want to forcefully delete them? There really isn't much of a practical benefit for doing that.

        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • Z
          zsunol
          last edited by

          Because, too many offline DHCP lease block my DHCP server.
          One Solution: delete one by one offline dhcp by webpage

          :o

          @jimp:

          They will be reclaimed as needed. Why do you want to forcefully delete them? There really isn't much of a practical benefit for doing that.

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            Offline/expired leases will be reclaimed automatically, they shouldn't be "blocking" anything.

            What indication do you have that this is really happening?

            Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • Z
              zsunol
              last edited by

              After a while if I do not delete Dhcp Lease offline , the dhcp does not assign an IP address.
              Even a reboot pfSense does not correct the problem.

              @jimp:

              Offline/expired leases will be reclaimed automatically, they shouldn't be "blocking" anything.

              What indication do you have that this is really happening?

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                Next time it happens, look at the system logs on the DHCP tab. It may give you some idea of what is happening there.

                Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • Z
                  zsunol
                  last edited by

                  Thx Jimp, good idea :)

                  If anyone knows where is the file logs Diagnostics DHCP Lease, I'm interested

                  @jimp:

                  Next time it happens, look at the system logs on the DHCP tab. It may give you some idea of what is happening there.

                  1 Reply Last reply Reply Quote 0
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    It's in /var/dhcpd/var/db/dhcpd.leases

                    Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 0
                    • Z
                      zsunol
                      last edited by

                      Many thanks.

                      @jimp:

                      It's in /var/dhcpd/var/db/dhcpd.leases

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