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

    Factory reset on 2.2.6 DHCP leases do not show on status page.

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    21 Posts 6 Posters 3.6k 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.
    • GertjanG
      Gertjan
      last edited by

      As discovered here : https://forum.pfsense.org/index.php?topic=97204.0 , Diagnostics: Factory defaults will propose two NIC devices, probably wrong (as you already discovered).
      A third NIC (OPT1) etc will not receive any initialization, so 'DHCP' isn't even possible (NO IP, no mask, not range, nothing).
      Before using OPT1, you have to set it up.

      I advise you to 'read' the file I showed you in the other thread. It will explain things ;)

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

      1 Reply Last reply Reply Quote 0
      • R
        router_wang
        last edited by

        @doktornotor:

        Hmmm, and? Go reconfigure the DHCP server? It's not like any settings survive your "clean" upgrade.

        I DID reconfigure. Simple settings. See attached screen shots. It is giving out addresses, it is just not showing them on the status page.

        ![dhcp settings.jpg](/public/imported_attachments/1/dhcp settings.jpg)
        ![dhcp settings.jpg_thumb](/public/imported_attachments/1/dhcp settings.jpg_thumb)

        1 Reply Last reply Reply Quote 0
        • R
          router_wang
          last edited by

          @Gertjan:

          As discovered here : https://forum.pfsense.org/index.php?topic=97204.0 , Diagnostics: Factory defaults will propose two NIC devices, probably wrong (as you already discovered).
          A third NIC (OPT1) etc will not receive any initialization, so 'DHCP' isn't even possible (NO IP, no mask, not range, nothing).
          Before using OPT1, you have to set it up.

          I advise you to 'read' the file I showed you in the other thread. It will explain things ;)

          I did set it up. Why would you assume I did not set it up?

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

            @router_wang:

            Why would you assume I did not set it up?

            Why would anyone assume you DID set it up from this? - "reset a 2.2.3 to factory defaults, then installed 2.2.4."

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

              @router_wang:

              …...it is just not showing them on the status page.

              I PRESUME this page Status: DHCP leases (right ?).
              Did you have a look at the Status: System logs: DHCP - do you see any DHCP server activity, like requests (like DHCPDISCOVER) coming in on your OPT1 NIC - you can recognize them because IP's like 10.0.0.1xx will be dealt out) ?

              Edit : Any firewall rules on your OPT1 ?

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

              1 Reply Last reply Reply Quote 0
              • R
                router_wang
                last edited by

                @doktornotor:

                @router_wang:

                Why would you assume I did not set it up?

                Why would anyone assume you DID set it up from this? - "reset a 2.2.3 to factory defaults, then installed 2.2.4."

                I'm not sure if you are aware, but there is a character limitation to the post title, and I could not fit in "configured after clean install". I'm really sorry that I did not spell that out if it led to the conclusion that I did not configure the DHCP server.

                Now that we have established that, is there any particular reason the system would not show the leases on the status page?

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

                  Probably because the DHCP server didn't dealt out any IP's yet …. ;)

                  See also my previous post.

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

                  1 Reply Last reply Reply Quote 0
                  • R
                    router_wang
                    last edited by

                    @Gertjan:

                    @router_wang:

                    …...it is just not showing them on the status page.

                    I PRESUME this page Status: DHCP leases (right ?).
                    Did you have a look at the Status: System logs: DHCP - do you see any DHCP server activity, like requests (like DHCPDISCOVER) coming in on your OPT1 NIC - you can recognize them because IP's like 10.0.0.1xx will be dealt out) ?

                    Edit : Any firewall rules on your OPT1 ?

                    It shows the server handing out addresses on the OPT1 net in the log. I just have your bog standard IPv4 to any rule on the OPT1.

                    1 Reply Last reply Reply Quote 0
                    • R
                      router_wang
                      last edited by

                      @Gertjan:

                      Probably because the DHCP server didn't dealt out any IP's yet …. ;)

                      See also my previous post.

                      It handed out several IP addresses already.

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

                        @router_wang:

                        I just have your bog standard IPv4 to any rule on the OPT1.

                        Like the one shown here https://forum.pfsense.org/index.php?topic=97025.0 (message number #5) ?
                        If yes, Apply message number 6 !

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

                        1 Reply Last reply Reply Quote 0
                        • R
                          router_wang
                          last edited by

                          @Gertjan:

                          @router_wang:

                          I just have your bog standard IPv4 to any rule on the OPT1.

                          Like the one shown here https://forum.pfsense.org/index.php?topic=97025.0 (message number #5) ?
                          If yes, Apply message number 6 !

                          That is not relevant.

                          1 Reply Last reply Reply Quote 0
                          • R
                            router_wang
                            last edited by

                            About 30 minutes after the DHCP server handed out addresses on the OPT1 interface, the leases finally show up on the DHCP status page. Anyone seen this behavior before?

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

                              The file on disk with all the leases is rewritten rather often by the pfSense DHCP -server.
                              I tend to say: every time it deals out a new lease.
                              You can see for yourself when it is doing so in the Status: System logs: DHCP page.
                              I'm pretty sure it's far more often then "after a 30 minutes delay" ….. that doesn't seem normal to me.

                              You're running pfSense on what kind of device ?

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

                              1 Reply Last reply Reply Quote 0
                              • R
                                router_wang
                                last edited by

                                @Gertjan:

                                The file on disk with all the leases is rewritten rather often by the pfSense DHCP -server.
                                I tend to say: every time it deals out a new lease.
                                You can see for yourself when it is doing so in the Status: System logs: DHCP page.
                                I'm pretty sure it's far more often then "after a 30 minutes delay" ….. that doesn't seem normal to me.

                                You're running pfSense on what kind of device ?

                                APU platform with msata SSD.

                                1 Reply Last reply Reply Quote 0
                                • R
                                  router_wang
                                  last edited by

                                  UPDATE:

                                  if you use

                                  System> Advanced> Miscellaneous> Use RAM Disks

                                  PFsense will not show your DHCP leases in the GUI until the "Periodic DHCP Leases Backup" initiates at the set time.

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    divsys
                                    last edited by

                                    Sounds like you might have a bug there.

                                    Have you been able to tell if the GUI display updates ONLY at the backup interval or definitely at the backup interval and then upon changes afterwards?
                                    If you set the "Periodic" time down to a short interval (I'm guessing that's how you found this one) it should be possible to see/force a lease expiry and track the issue.
                                    Unfortunately I don't have a nano setup to test on.

                                    I'd say it's worth a post to:

                                    https://redmine.pfsense.org/projects/pfsense/issues?set_filter=1

                                    for Ver 2.2.5

                                    Thanks for you efforts tracking this one…...

                                    -jfp

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      router_wang
                                      last edited by

                                      I just did a "factory defaults" in 2.2.6-RELEASE and am seeing the same thing. The leases show up in the DHCP log, but not on the status page. It is not just for OPT1, this is also on the LAN interface.

                                      1 Reply Last reply Reply Quote 0
                                      • H
                                        hieronymousch
                                        last edited by

                                        Hi,

                                        I can confirm this behaviour after doing a configuration restore on a fresh installed 2.2.6 system.
                                        DHCP works fine, is churning out DHCP leases, logs correctly to the system log but dhcp leases page is not updated accordingly.

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