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

    Clear all DHCP leases

    DHCP and DNS
    3
    7
    555
    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
      ama
      last edited by

      How do I get the router to reissue leases to connected devices? I hit the clear button by accident and only Static IP devices are showing now. no leases are being given out. I rebooted the router and nothing has changed.

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @ama
        last edited by johnpoz

        @ama clients will renew their leases when its time to do so.. This is normally at around the 50% mark of their lease time.. Until it comes time for them to renew, they could care if the dhcp server is up or not.

        You could force the client to renew its lease, simple reboot of the client will normally do that for sure. But you can also just run a command on the client to attempt to renew its lease. The specifics of the command or method would depend on the client.

        I believe the default lease time is like 2 hours, but maybe you changed yours? Mine is set for 4 days.. So a client would not attempt to renew its lease until like 48 hours since it last got/renewed a lease.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

        A 2 Replies Last reply Reply Quote 0
        • A
          ama @johnpoz
          last edited by

          @johnpoz Thank you very much John. So, there is no way on the router to flush and renew the client leases?

          GertjanG 1 Reply Last reply Reply Quote 0
          • A
            ama @johnpoz
            last edited by

            @johnpoz I rebooted a laptop, no lease renewal. I ran ipconfig release and renew and got nothing!!

            johnpozJ 1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator @ama
              last edited by

              @ama what does your lease show on the client? What does the dhcp log show?

              If you released it, and it couldn't get a new lease - then it wouldn't be working, and most likely would give itself 169.254.x.x address

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.7.2, 24.11

              1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan @ama
                last edited by

                @ama said in Clear all DHCP leases:

                So, there is no way on the router to flush and renew the client leases?

                The server doesn't and can't take any initiate.

                It's like a web server and the a web browser : you could update your web server with new pages and content, but it wouldn't reach out to all the browsers that were visiting it in the past, to update what they were looking at : the user has to open his browser, revisit your web server, and then see the new content.

                The initiative to renew a lease is entire decided by the device that starts a DHCP client process, so it can renew the lease, or, if refused, get a new lease (new IP).

                @ama said in Clear all DHCP leases:

                I rebooted the router and nothing has changed.

                The list with attributed leases will get populated over time, when the clients decides that its lease is at 50 % of the duration. It will renegotiate the lease, and this is what populates the DHCP server lease list.

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                A 1 Reply Last reply Reply Quote 0
                • A
                  ama @Gertjan
                  last edited by

                  @Gertjan Thank you for the valuable information. I ended up reloading the configuration file and started back from scratch. All is well now. Once again, Thank you for the support!

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