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

    [Solved] ( 2.4.5) Can't delete an old Static DHCP lease

    Scheduled Pinned Locked Moved DHCP and DNS
    8 Posts 3 Posters 541 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.
    • T
      T-Monster
      last edited by T-Monster

      I've recently upgraded to 2.4.5 and noticed some old Static DHCP leases that needed removing (old equipment).

      However, there's 1 entry that I just can't delete.

      It's listed under Status/DHCP Leases as "ADSL Router":
      DHCPLease.png

      But there's no entry under the DHCP Server:
      DHCPServer.png

      (That's the only entry for that interface - and the ADSL Router doesn't appear under any of the other interfaces either)

      I tried to delete the dhcpd.leases* files as per this forum post, but that didn't appear to remove the entry.

      I've re-assigned the IP address to the new DSL Modem in case having the same IP address was causing it to be hidden, but that didn't bring the old entry to life either.

      So, if it's not in the dhcpd.leases file(s), where is it - and (more importantly) how do I remove this?

      Thanks

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

        It must be in the configuration somewhere. Take a backup of config.xml and see if you can find it inside and tell where it is.

        Worst case scenario you can edit the entry out of the backup and restore it.

        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!

        T 1 Reply Last reply Reply Quote 1
        • T
          T-Monster
          last edited by

          Ah! Didn't think of resolving it that way...

          Yes... there's a <staticmap> entry lurking in the config backup file on that interface 🕵

          I'll remove it and restore just the "DHCP Server" section this evening when everyone's off the network.

          Thanks Jim!

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

            So your saying the delete button, the little trashcan icon doesn't work? Does it spit an error at you? Or just doesn't delete after it says it did?

            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
            • T
              T-Monster
              last edited by

              There's no entry at all to show the trashcan...

              See the 2nd picture just shows the new device (which does have the trashcan)... but the old device isn't even listed

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

                Oh I saw the IP for 77.1, didn't notice the mac address were different - my bad for not catching that... Thanks..

                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
                • T
                  T-Monster
                  last edited by

                  Yeah, sorry... I could've probably made the screenshots a little more clear... all these MAC addresses and IP addresses...

                  1 Reply Last reply Reply Quote 0
                  • T
                    T-Monster @jimp
                    last edited by

                    @jimp said in ( 2.4.5) Can't delete an old Static DHCP lease:

                    It must be in the configuration somewhere. Take a backup of config.xml and see if you can find it inside and tell where it is.

                    Worst case scenario you can edit the entry out of the backup and restore it.

                    Just to confirm that editing the config file and restoring the DHCP Server section resolved this.

                    Thanks!

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