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

    (Solved) DHCP not working

    Scheduled Pinned Locked Moved General pfSense Questions
    dhcp
    18 Posts 3 Posters 1.9k 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.
    • AndyRHA
      AndyRH
      last edited by AndyRH

      I must be missing something simple and I cannot see it.
      I am trying to enable a port, igb0. I assigned the port, enabled the port and enabled DHCP, but I do not get a DHCP address or any messages in the log that I can find.
      I am plugged directly into OPT4. When I move the cable to one of the FW switch ports I get an address.

      Interface.JPG

      Opt4.JPG

      opt4DHCP.JPG

      Opt4 online.JPG

      o||||o
      7100-1u

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @AndyRH
        last edited by

        @andyrh
        I'm also actually fighting with a DHCP issue, but the problem here is not pfSense.

        To investigate, I took a packet capture and filtered for ports "67,68" with full details.
        This shows the whole DHCP communication, so you can check if the device sends a request, if pfSense gives a proper offer and so on.

        1 Reply Last reply Reply Quote 0
        • AndyRHA
          AndyRH
          last edited by

          The packet capture does not see any packets. I did not apply any filters.
          The client works if I move the cable to one of the switch ports on the 7100.

          Why does the FW see the port linked, but sees no packets?

          o||||o
          7100-1u

          V 1 Reply Last reply Reply Quote 0
          • AndyRHA
            AndyRH
            last edited by

            I am starting to think the card is bad, but all four ports and they all link?
            I also tried creating a VLAN and pointing at the interface and still an empty packet capture.

            o||||o
            7100-1u

            1 Reply Last reply Reply Quote 0
            • V
              viragomann @AndyRH
              last edited by

              @andyrh said in DHCP not working:

              The packet capture does not see any packets.

              After connecting the cable to the device? Seems quite strange. Normally once the device recognizes a network connection, it sends a DHCP request to the broadcast address.

              I am starting to think the card is bad, but all four ports and they all link?

              I don't know the 7100. But never seen an issue, that pfSense initiate the NIC properly, but doesn't work at last.

              Maybe @stephenw10 can help with that.

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                Is this an older 7100? There was a Coreboot update to address exactly this behaviour but it was some time ago.
                Make sure the Netgate Firmware Updater package is current (v0.41_1) and then check it reports the Coreboot version as current (01.00.00.11 for the 7100).

                Steve

                1 Reply Last reply Reply Quote 0
                • AndyRHA
                  AndyRH
                  last edited by AndyRH

                  It is an older firmware.

                  I added the package to update the firmware, but I do not get an update button.

                  7100 Firmware.JPG

                  21.05.1-RELEASE (amd64)
                  built on Wed Aug 04 09:50:13 EDT 2021
                  FreeBSD 12.2-STABLE

                  o||||o
                  7100-1u

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    Aha! Ok that's your problem then.

                    Is that the current Netgate Firmware Upgrade package?

                    There any reason you are not running 21.05.2? I think you will only see package version 0.40 in 21.05.1.

                    Steve

                    AndyRHA 1 Reply Last reply Reply Quote 0
                    • AndyRHA
                      AndyRH @stephenw10
                      last edited by

                      @stephenw10 Just happened to be uninstalling and the installing the package so I could snag the install log. It was all good.

                      I did not load 21.05.2 as I understood it was just a fix for 6100's.

                      The firmware package loader is version 0.41_1.

                      I can load the new code if that will help.

                      o||||o
                      7100-1u

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        Indeed it was for the 6100 but there is a newer version of the package there and you need to update Coreboot.
                        The only other option there might be to go to a 22.01 snapshot temporarily where v0.46 is available.

                        Steve

                        AndyRHA 1 Reply Last reply Reply Quote 0
                        • AndyRHA
                          AndyRH @stephenw10
                          last edited by

                          @stephenw10 Upgraded to 21.05.2, the firmware package is still at 0.41_1 and the upgrade button remains elusive.
                          I did remove and reinstall the package to be sure and there is no change.

                          o||||o
                          7100-1u

                          1 Reply Last reply Reply Quote 0
                          • stephenw10S
                            stephenw10 Netgate Administrator
                            last edited by

                            Hmm. Are you able to go to a 22.01 snapshot just to update Coreboot?

                            Be sure to backup your config before you update if you do. Otherwise you would not be able to reinstall 21.05.2 and restore afterwards.

                            Steve

                            AndyRHA 1 Reply Last reply Reply Quote 0
                            • AndyRHA
                              AndyRH @stephenw10
                              last edited by

                              @stephenw10 I think I can get that done this weekend. Are these the correct steps?
                              0. Make backup of config

                              1. upgrade to 22.01 snapshot (I have not done this before)
                              2. fix firmware
                              3. re-load with 21.05.2
                              4. Apply backup config

                              o||||o
                              7100-1u

                              1 Reply Last reply Reply Quote 0
                              • stephenw10S
                                stephenw10 Netgate Administrator
                                last edited by

                                Yes, exactly that.

                                In the mean time I'll see if I can replicate what you're seeing. It's likely a simple fix that would remove the need to do an upgrade if we can find it.

                                Steve

                                AndyRHA 1 Reply Last reply Reply Quote 0
                                • AndyRHA
                                  AndyRH @stephenw10
                                  last edited by

                                  @stephenw10 Thank you.

                                  I have a loaner lined up for the code shuffle. All of my needed traffic is through ix1 and ix2. Cabling will be easy for the loaner.
                                  My friends know I have a thing about having a way out if things go bad.

                                  o||||o
                                  7100-1u

                                  1 Reply Last reply Reply Quote 0
                                  • stephenw10S
                                    stephenw10 Netgate Administrator
                                    last edited by

                                    Ok this is a single character change that causes this in 0.41_1. It's detailed here:
                                    https://redmine.pfsense.org/issues/12487

                                    Line 35 in /usr/local/pkg/netgate_firmware_upgrade.inc should read:

                                    		return ($current['version'] != $new['version']);
                                    

                                    I manually made that edit here and spoofed the coreboot version and it flashed fine. That's easier than upgrading to 22.01 and downgrading again. It is fixed in 0.46 in 22.01 though.

                                    Steve

                                    AndyRHA 1 Reply Last reply Reply Quote 0
                                    • AndyRHA
                                      AndyRH @stephenw10
                                      last edited by

                                      @stephenw10 That worked and the ports are online.
                                      Thank you

                                      o||||o
                                      7100-1u

                                      1 Reply Last reply Reply Quote 1
                                      • stephenw10S
                                        stephenw10 Netgate Administrator
                                        last edited by

                                        Ah, nice result. Thanks for persisting!

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