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

    Switch Doesn't accept DHCP Lease after Pfsense service gets boot late after the switch is already booted.

    Scheduled Pinned Locked Moved DHCP and DNS
    16 Posts 4 Posters 782 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 @pjaiswal0231
      last edited by

      @pjaiswal0231

      Lets start with this : an non managed switch isn't 100 % non managed, as there are two part you have to do yourself with a switch like this :

      1. Hook up the power.
      2. Slide in as many as network cables plugs as the switch can hold to forum a 'network'.

      And now your done. There is no more and no less.
      Switches replicate traffic on a port to a destination port.
      It doesn't care what the packers 'are' - it doesn't care about what a packets 'do'.
      So, if they are ICMP, or UDP, or TCP, or DHCP, etc, it's doesn't care ....

      So it can't have issue with 'DHCP', as it doesn't know what DHCP is.

      @pjaiswal0231 said in Switch Doesn't accept DHCP Lease after Pfsense service gets boot late after the switch is already booted.:

      But this scenario on power failure doesn't

      Can be very bad for pfSense.
      pfSense doesn't run from a ROM (Read Only Memory) as the wallmart router does, it uses a real hard disk like your PC, NAS, phone etc. Power loses can mean : file system damaged. That's something you don't want to happen. if doubt, take an insurance (== UPS).

      What pfSense version do you use ?
      Did you change something ?
      Use this DHCP pfSense server :

      431242a3-7adf-4788-b716-421a13abd930-image.png

      and you'll be fine.

      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
      • AndyRHA
        AndyRH
        last edited by

        To me it sounds like the clients are coming up faster than pfSense and think they are on a different network and are dropping their IPs.
        Rebooting the switch will make the clients re-evaluate what network they are on and request an address when the network comes on-line.

        As others have suggested, review the clients, my guess is you will find they have 169.254 addresses.
        pfSense will never start faster then an unmanaged switch.

        I do not have a solution other than what you are doing or simply waiting for the clients to check again for a DHCP server.

        o||||o
        7100-1u

        johnpozJ P 2 Replies Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator @AndyRH
          last edited by

          @AndyRH said in Switch Doesn't accept DHCP Lease after Pfsense service gets boot late after the switch is already booted.:

          simply waiting for the clients to check again for a DHCP server.

          Yeah they should - quick google

          https://learn.microsoft.com/en-us/windows-server/troubleshoot/how-to-use-automatic-tcpip-addressing-without-a-dh#example-1-no-previous-ip-address-and-no-dhcp-server

          And it looks like windows will check every 3 minutes after it has gone with the 169.254 address

          "An error message is presented to the user and discover messages are transmitted every 3 minutes."

          Or could be 5 minutes?

          "The computer then broadcasts four discover messages, and after every 5 minutes it repeats the whole procedure until a DHCP server comes on line."

          Depending on if it had a previous IP or if lease had expired, etc.

          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.8, 24.11

          P 1 Reply Last reply Reply Quote 0
          • P
            pjaiswal0231 @AndyRH
            last edited by

            @AndyRH thanks I also thought so as in west africa the price of managed switch are 3 times or 4 times higher then the other places so i have to wait till some one goes to UAE and pick one up for saving the cost

            1 Reply Last reply Reply Quote 0
            • P
              pjaiswal0231 @johnpoz
              last edited by

              @johnpoz what you are saying is true but in my scenario it didn't happens, the only solution is reboot the switch as it is stuck like this for 3 hours then also nothing happen so reboot is the only solution, I will try to change LAN card and check one that is the easiest and cheapest solution.

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

                @pjaiswal0231

                The ultimate test tool - you can start it with one click :

                950ba855-0146-4878-b4c9-152393d7cd09-image.png

                Enter first :
                LAN, because you want to capture on your pfSEnse LAN
                UDP because DHCP is 'UDP' only
                Ports 67 and 68 because DHCP uses these ports.
                And "Full" details as you are the admin, and you want details.

                Now hit start !

                And you'll see the request and answers.

                If you're in a hurry, go to a LAN device, a PC, and enter the magic command :

                ipconfig /renew4
                

                The packet capture will show the DHCP exchanges in real time.

                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
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator @pjaiswal0231
                  last edited by johnpoz

                  @pjaiswal0231 please answer some basic questions.. Does your pc get a 169.254.x.x address?

                  Is dhcp even running on pfsense? What dhcp server are you using on pfsense, shoot what version of pfsense are you even using?

                  Is the lan interface of pfsense even coming up - do you see lights on the pfsense port and switch ports? Can you console in to pfsense?

                  The only thing an unmanaged switch does is provide connection between your pc and pfsense.. You sure shouldn't have to reboot it just because it came up before the devices connected to it - pfsense or PC..

                  What switch is this - maybe its just a POS? A managed switch isn't going to make any difference here really if all your doing is single vlan stuff.. What OS is your PC even running? For all we know your still running windows ME or something?

                  Vs rebooting the switch - what happens if you just unplug the the port from from the switch or pfsense or pc and plug it back in?

                  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.8, 24.11

                  P 1 Reply Last reply Reply Quote 0
                  • P
                    pjaiswal0231 @johnpoz
                    last edited by

                    @johnpoz I will share you all the details and snapshot tomorrow.

                    1 Reply Last reply Reply Quote 0
                    • P
                      pjaiswal0231
                      last edited by

                      Hi, The PfSense Version 2.7.2-RELEASE
                      I have also attached a screen shot of the DHCP Server.

                      But some thing happened it is fixed automatically

                      7d726ea2-b71d-4cae-8e99-2ca70c5fa6d8-image.png

                      P 1 Reply Last reply Reply Quote 0
                      • P
                        pjaiswal0231 @pjaiswal0231
                        last edited by

                        @pjaiswal0231 I have also made changes I disabled IPV6 in DHCP Server, Router Advertisement and on the LAN interface i changed from auto negotiation to 100 full duplex according to my switch after that i rebooted the server 5 to 6 times now issue is not coming

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

                          @pjaiswal0231 said in Switch Doesn't accept DHCP Lease after Pfsense service gets boot late after the switch is already booted.:

                          i changed from auto negotiation to 100 full duplex according to my switch

                          So this dumb switch is also ancient - 100 full duplex.. ouch..

                          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.8, 24.11

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