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

    DHCP leases question (deleting a dhcp lease manually)

    Scheduled Pinned Locked Moved DHCP and DNS
    12 Posts 11 Posters 108.2k 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.
    • J
      jnana
      last edited by

      Ok - it was great to find this so what I just want to confirm is that this part of the 1.2RC3 DHCP server gui at the bottom - with "enable network booting"

      That is setting option 66 and 67 of DHCP. This company are about to turn up and I have to have this
        option bootfile-name "Thomson/ST2030S";
          next-server 10.10.0.1;

      Set to make the phones find the server and config.

      So just looking for reassurance.

      Also still wondering if asterisk is going to be able to connect outward through the firewall. In the past I didn't have much luck making Asterisk work through a firewall but there are traffic shaping options related to asterisk.

      These last weeks I have really been converted from ipcop and smoothwall - pfsense is really complete.

      Thanks

      Jnana

      1 Reply Last reply Reply Quote 0
      • AhnHELA
        AhnHEL
        last edited by

        I know this topic is rather old and kind of unnecessary but just to clarify if someone is really interested in removing expired leases

        In the GUI, go to Diagnostics/Edit File and load /var/dhcpd/var/db/dhcpd.leases~

        Delete the leases you want removed, then hit Save.

        Do the same for /var/dhcpd/var/db/dhcpd.leases

        AhnHEL (Angel)

        1 Reply Last reply Reply Quote 3
        • N
          Nostradamus
          last edited by

          @onhel

          Thanks for your info. Exactly what i was looking for :)

          1.2-RELEASE
          built on Fri Mar 7 18:49:15 EST 2008
          Intel Celeron 1100 Mhz
          512MB PC-100
          Segate 20GB HD
          eth0: Intel 82801BA/BAM/CA/CAM 10/100 (WAN)
          eth1: 3Com 3c905C-TX/TX-M 10/100 (LAN)

          1 Reply Last reply Reply Quote 0
          • AhnHELA
            AhnHEL
            last edited by

            =O)

            AhnHEL (Angel)

            1 Reply Last reply Reply Quote 0
            • T
              Torty
              last edited by

              Hmmm Deleting all the leases shown in the two files did not work for me, a reboot does however, although clearly this is a less preferable fix!

              1 Reply Last reply Reply Quote 0
              • GruensFroeschliG
                GruensFroeschli
                last edited by

                As onhel wrote: Try to press save on the DHCP config page after deleting the files.

                You somehow have to trigger that the config gets reloaded.
                A reboot reloads the config. Pressing save does too.

                We do what we must, because we can.

                Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

                1 Reply Last reply Reply Quote 0
                • P
                  pfman
                  last edited by

                  I had same problem ….. pfSense DHCP remembers all leased IPs and won't releases them even though 1 machine have several leases .
                  I changed the IP range, save it then put the old IP range back, save it again. That resolves my problem till next time  the DHCP runs out of IP again.

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

                    Hello, just wondering if it actually worked

                    thanks

                    1 Reply Last reply Reply Quote 0
                    • C
                      ck42
                      last edited by

                      Verified.
                      Deleting the lease content information in those two lease files and then pressing the Save button in the DHCP Server page does update the current DHCP lease listing in the GUI.

                      1 Reply Last reply Reply Quote 1
                      • E
                        evewes
                        last edited by

                        @pfman:

                        I had same problem ….. pfSense DHCP remembers all leased IPs and won't releases them even though 1 machine have several leases .
                        I changed the IP range, save it then put the old IP range back, save it again. That resolves my problem till next time  the DHCP runs out of IP again.

                        Do i understand this correctly, if many PC have several leases and every ip is used there will be no more leases until i do whats described here.

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