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

    DHCP fails silently, but works on reboot of pfSense

    Scheduled Pinned Locked Moved DHCP and DNS
    37 Posts 4 Posters 5.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.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      There is no limit on the number of VLANs you can have in the GUI. I'm not quite sure what would have happened there, but I recall seeing anything like that before. Are you certain there wasn't some unintentional overlap? IIRC input validation prevents most obvious ways of causing duplicate entries but maybe something else was going on there.

      Go to Diagnostics > Backup & Restore and check the config history at each point in the changes you made, see what was added when.

      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!

      B 1 Reply Last reply Reply Quote 0
      • B
        BJK @jimp
        last edited by BJK

        @jimp I've reviewed the interfaces a few times and cannot see any conflict or redundancies. Reviewing the XML, the VLAN and Interface are there, just doesn't show up in the UI.
        I also stepped backwards in the configs a couple times to re-add the vlan and also tried adding a completely random vlan with the same result of it not showing up after adding in the interfaces.
        From my experience, it appears I've hit a limit of not being able to add any more interfaces and have them show up in the UI... tho they are showing up in the XML

        B 1 Reply Last reply Reply Quote 0
        • B
          BJK @BJK
          last edited by BJK

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            So exactly how many VLAN tags do you have in config.xml when they stop showing up?

            And can you confirm which version of pfSense you are running on that device?

            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!

            B 1 Reply Last reply Reply Quote 0
            • B
              BJK @jimp
              last edited by

              @jimp
              Hardware XG-1541 running 2.4.4-RELEASE (amd64)
              built on Thu Sep 20 09:33:19 EDT 2018
              FreeBSD 11.2-RELEASE-p3

              The GUI stopped displaying after the 163 VLAN was created. Also, please recall, I rebooted after to see if something magic would happen. And it did. The GUI was now not evern showing the 162 VLANs Ihad previously created. I didn't count, but all I could see in the GUI for interfaces was more like ~155 VLANs. I restored the config from before the reboot and then I could see the 162 VLANs again in the GUI. At this time, I was not reviewing the XML to see what it had in it. But something wonky for sure going on with the GUI not displaying all interfaces.

              btw, thank you very much for your help with this.

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

                I generated a config with 250 VLANs (assigned, enabled, with DHCP) and so far they all show up everywhere. The console menu, the interfaces widget, the interfaces menu, the VLAN tab list, the DHCP server, even firewall rules.

                I was able to reproduce some weirdness when applying a change to an interface, though. It's like it is very slowly going through each VLAN and touching it. PHP is maxing out a whole core, but it's only doing maybe one VLAN every 2 minutes. So at this rate it would take 8h20m to process them all. Fun. :-)

                So I can at least open an issue for that part, which may be the original cause of this thread. Not sure what is taking so long to process them all, or why it's touching every VLAN when changing only one. Might not make -p1 but we'll see.

                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!

                1 Reply Last reply Reply Quote 0
                • O
                  obelsen
                  last edited by

                  @jimp said in DHCP fails silently, but works on reboot of pfSense:

                  I generated a config with 250 VLANs (assigned, enabled, with DHCP) and so far they all show up everywhere. The console menu, the interfaces widget, the interfaces menu, the VLAN tab list, the DHCP server, even firewall rules.

                  I was able to reproduce some weirdness when applying a change to an interface, though. It's like it is very slowly going through each VLAN and touching it. PHP is maxing out a whole core, but it's only doing maybe one VLAN every 2 minutes. So at this rate it would take 8h20m to process them all. Fun. :-)

                  So I can at least open an issue for that part, which may be the original cause of this thread. Not sure what is taking so long to process them all, or why it's touching every VLAN when changing only one. Might not make -p1 but we'll see.

                  Ah I can see that being the issue. I haven't actually tried leaving it running for that long, since people around here don't know how to set static IPs for that duration :-)

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

                    I put in https://redmine.pfsense.org/issues/9115 for this for now. If I notice any other clues about how it misbehaves I'll drop them on there.

                    In the meantime you might be able to at least do the 16/11 trick after making a change to keep it running. It does seem to apply the intended change quickly, and then gets mired in doing something else after.

                    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!

                    1 Reply Last reply Reply Quote 0
                    • B
                      BJK
                      last edited by

                      This sounds like a good lead. thank you for going thru the effort. Should I start a new thread concerning why my VLAN interfaces are not showing up in the GUI? Any other thoughts on this? Any suggestions on things to try to maybe understand what might be happening here? thx again

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

                        @bjk said in DHCP fails silently, but works on reboot of pfSense:

                        Should I start a new thread concerning why my VLAN interfaces are not showing up in the GUI? Any other thoughts on this? Any suggestions on things to try to maybe understand what might be happening here? thx again

                        Yeah that's a separate issue and I can't reproduce it here at all. I can't see why it would behave inconsistently either.

                        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!

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