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

    Duplicate DHCP Leases?

    Scheduled Pinned Locked Moved DHCP and DNS
    49 Posts 3 Posters 13.8k 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.
    • W Offline
      wharris623
      last edited by

      What I was showing was there was no delete option for those entries the MAC address or host name is not necessary to see that. Try it from your installation the way I described and see what happens.

      1 Reply Last reply Reply Quote 0
      • D Offline
        doktornotor Banned
        last edited by

        For static entries, you delete them where you created them (DHCP Server). Not in Status / DHCP Leases.

        1 Reply Last reply Reply Quote 0
        • W Offline
          wharris623
          last edited by

          The issue with that is those three entries I didn't create from (DHCP Server), I created them from Status / DHCP Leases.  So how do you create entries created from there?  Take any lease you want, hit the + blue + with the white background, and then try to create a static entry that is inside of your scope.  It will tell you it can't do that.  Even though you could from the DHCP server tab.  So if you try and let it create a reservation by using an IP from the pool aka leaving the IP blank and just filling in the host name and the MAC address it'll add a blank entry.  I haven't been able to delete that entry though.

          1 Reply Last reply Reply Quote 0
          • W Offline
            wharris623
            last edited by

            Here's a few more screen captures. . . Anyone have any idea's how to remove DHCP reservations that were created from the DHCP - Status page versus the Services - DHCP page?

            ![Services - DHCP.JPG](/public/imported_attachments/1/Services - DHCP.JPG)
            ![Services - DHCP.JPG_thumb](/public/imported_attachments/1/Services - DHCP.JPG_thumb)
            ![DHCP Leases.JPG](/public/imported_attachments/1/DHCP Leases.JPG)
            ![DHCP Leases.JPG_thumb](/public/imported_attachments/1/DHCP Leases.JPG_thumb)

            1 Reply Last reply Reply Quote 0
            • D Offline
              doktornotor Banned
              last edited by

              Yay for more censored screenshots. Dude, you've already been told that this makes diagnosing your issue impossible.

              1 Reply Last reply Reply Quote 0
              • W Offline
                wharris623
                last edited by

                Doktornotor, if you can't help me, maybe someone else can.  There is more then enough information for anyone to be able to replicate what I'm experiencing.  If you can't see that, maybe you aren't the person to help me.

                1 Reply Last reply Reply Quote 0
                • D Offline
                  doktornotor Banned
                  last edited by

                  @wharris623:

                  There is more then enough information

                  Right. The white space making it impossible to find out what's in those leases and how they are different from the ones you can delete is excellent "information".

                  @wharris623:

                  If you can't see that, maybe you aren't the person to help me.

                  Correct. And since there's a lot of other people answering on this thread already, I'm leaving it up to them to figure out the white space mystery.

                  ;D ::)  ;D ::)  ;D ::)

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

                    With dok on this - WTF dude.. Do you want help, or do you want to hide that the names of your shit.. Did you name them after porn stars or something and are embarrassed..

                    What exactly are you asking..  How to delete the Jami-PC stuff?  Those are static – so you go to the dhcp server, bottom of page will be static.. Deleted them there..  Worse case directly edit the conf file.  See the Trashcan icon -- click that it deletes it..

                    Do you have dhcp running on more than 1 interface.. Check those for the ones that don't list an IP.

                    deletestatic.png
                    deletestatic.png_thumb

                    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 25.07.1 | Lab VMs 2.8.1, 25.07.1

                    1 Reply Last reply Reply Quote 0
                    • W Offline
                      wharris623
                      last edited by

                      Hey Johnpoz, what I've posted is what I'm asking about.  The rest of the names of the machines and mac addresses on the network are irrelevant to the question being asked.

                      What I'm asking is how do I delete the Jami-PC and the Jim-PC that don't have an IP address next to them.  Those are not listed under DHCP Server.  The only ones listed under DHCP Server are the ones with the IP addresses.

                      I do have DHCP running on 4 interfaces but those DHCP Reservatrions that do not show an IP are not found on any of those.  Please see the updated picture.

                      Thanks!

                      ![DHCP Leases.JPG](/public/imported_attachments/1/DHCP Leases.JPG)
                      ![DHCP Leases.JPG_thumb](/public/imported_attachments/1/DHCP Leases.JPG_thumb)

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        doktornotor Banned
                        last edited by

                        Use the goddamn trashcan icon. On the proper DHCP server interface. Geeeeeeez.

                        1 Reply Last reply Reply Quote 0
                        • W Offline
                          wharris623
                          last edited by

                          You're not listening.  Those entries don't show up on any DHCP Interface

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            doktornotor Banned
                            last edited by

                            Yeah, on any out of the censored one you keep showing us. Go edit config.xml and restore it. Enough time wasted here with your censored BS.

                            1 Reply Last reply Reply Quote 0
                            • W Offline
                              wharris623
                              last edited by

                              If they were showing up on any interface I would show them to you.  The point is, that it is possible with pfSense 2.3.2 release p1 that you can create a DHCP Reservation Entry from the DHCP Status Menu that you cannot delete from within pfSense.  I think that's a bug.  If you are talking about deleting those entries from

                              /var/dhcpd/var/db/dhcpd.leases

                              and

                              /var/dhcpd/var/db/dhcpd.leases~

                              I'm unable to find those two entries in there.

                              I can find the entries that have IP's associated to them, but I'm not trying to delete the DHCP Reservations that have IP's.  I'm trying to delete the ones that are pulling from the pool aka the IP address field is blank as is shown by the arrows in the picture on the previous post.

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                doktornotor Banned
                                last edited by

                                No, I am not. I am specifically talking about deleting them from config.xml.

                                
                                foreach ($config['dhcpd'] as $iface => $lease) {
                                	print_r($lease['staticmap']);
                                }
                                
                                

                                There are all your static leases.

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

                                  They clearly are showing up on an interface - since I pointed out the trashcan icon in one of your posts.

                                  If you create a reservation and do not give it an IP.. It will pull an address from the pool. It should still be listed in the dhcp server static listing on the bottom of the dhcp server page.  Look in all your dhcp servers running, or maybe check your ipv6 dhcp server?

                                  If still not showing up, as dok so eloquently put it.. (Oh its great to have you back dok!!)  You were missed when you were gone!  Your posts always make my day that much better!

                                  Download your xml, find the offending entry and delete from the xml and then restore that section of the xml.

                                  edit:  Oh my gawd.. I posted a mac address and a host name.. Oh the black helicopters are going to get me for sure now ;) heheheh

                                  Obfuscating clearly personal information like a public IP or fqdn that could point to your public IP, ok..  If your tinfoil hat is really tight - maybe the mac of wifi AP that could be on some wifi war driving database, ok..  But hiding rfc1918 space, or fqdn of something that is local or some hostname without a domain name, etc.  This just is frustrating for the person wanting to help because they don't have a full picture.  And as quite often on this board and the many others many of us here frequent.  The piece of the puzzle that solves the issues is quite often not given by the user, or they on purpose hide it because they think it is in some way private, etc.

                                  Have as much of the puzzle as possible makes it easier and faster for us to help you..

                                  dhcpxml.jpg
                                  dhcpxml.jpg_thumb

                                  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 25.07.1 | Lab VMs 2.8.1, 25.07.1

                                  1 Reply Last reply Reply Quote 0
                                  • W Offline
                                    wharris623
                                    last edited by

                                    @doktornotor:

                                    No, I am not. I am specifically talking about deleting them from config.xml.

                                    
                                    foreach ($config['dhcpd'] as $iface => $lease) {
                                    	print_r($lease['staticmap']);
                                    }
                                    
                                    

                                    There are all your static leases.

                                    That's the first useful suggestion you've made this entire thread! Thank you!

                                    1 Reply Last reply Reply Quote 0
                                    • W Offline
                                      wharris623
                                      last edited by

                                      @johnpoz:

                                      They clearly are showing up on an interface - since I pointed out the trashcan icon in one of your posts.

                                      If you create a reservation and do not give it an IP.. It will pull an address from the pool. It should still be listed in the dhcp server static listing on the bottom of the dhcp server page.  Look in all your dhcp servers running, or maybe check your ipv6 dhcp server?

                                      If still not showing up, as dok so eloquently put it.. (Oh its great to have you back dok!!)  You were missed when you were gone!  Your posts always make my day that much better!

                                      Download your xml, find the offending entry and delete from the xml and then restore that section of the xml.

                                      Johnpoz, I totally agree!  It should show up on the DHCP Server Static listings at the bottom of the various DHCP Server pages based upon what server is running on what interface.  I did check them all thanks to your suggest but still not finding them there.  I did also check the IPV6 DHCP server but since I'm not running IPV6 it's disabled.  Can you tell me how I can point out the "bug" of being able to create a DHCP Reservation from the DHCP Status page that you cannot delete from the GUI to the proper people?

                                      Thanks in advance!

                                      Wes

                                      1 Reply Last reply Reply Quote 0
                                      • D Offline
                                        doktornotor Banned
                                        last edited by

                                        If all you are going to provide is white boxes, then there's no need to bother with any bugs. What you are posting here does not reproduce on any sane box.

                                        1 Reply Last reply Reply Quote 0
                                        • W Offline
                                          wharris623
                                          last edited by

                                          I can reproduce it on two different boxes.  So I'd dare say it's a bug.  If this wasn't a public forum I'd post the uncensored screen.  Since it is, it's getting censored.  My right to do so.  If you want to do a joinme or team viewer and look for yourself I'm down.

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

                                            I could try and reproduce your issue I guess..  So you what created a static from your lease but did not give an IP?  And then you changed your mind and created another static while giving the IP?

                                            If I take a lease from the leases page and try and make it a static, while leaving the IP off - it gives me an error

                                            errorstatic.jpg
                                            errorstatic.jpg_thumb

                                            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 25.07.1 | Lab VMs 2.8.1, 25.07.1

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