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

    pfsense dhcp server not issuing addresses from requesters with an ip address

    Scheduled Pinned Locked Moved DHCP and DNS
    dhcp
    8 Posts 3 Posters 2.0k 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.
    • M
      mikehsr
      last edited by mikehsr

      My pfSense (latest download) was not issuing IP’s to some machines. I found, through the DHCP Server log, that if the client already had an IP, it would not respond.

      Doing an “ipconfig /release”, or “ipconfig /release <connection name>” didn’t actually remove the stale IP, what I had to do was a “ipconfig /release *”, before pfSense would respond and assign an IP.

      Three questions:

      1. Is the correct response from a DHCP Server?
        2. If so, then why do my other “Router/DHCP Servers” respond?
        3. If not, then is this a “bug” in pfSense?

      Thanks, for any insight you may have.

      Mike

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

        what was the response from pfsense exactly? Was the client sending a discover or a request for some OLD ip that was from a different network?

        If the client asks for renew and the lease is not 50% over the server were tell the client your fine, etc.

        Going to need more info to try and help you figure out what the issue actually was. Sniff of the dhcp traffic would tell you exactly what was happening. Open it in wireshark.

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

        M 1 Reply Last reply Reply Quote 0
        • M
          mikehsr @johnpoz
          last edited by

          @johnpoz

          I’ll try and get more data, for you.

          What do mean 50% over the server?

          Release and renew both failed until I did a “release *” (W10Pro, and W7Ultimate)

          Thanks, for the help.

          Mike

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

            Lets say the lease is for a length of 1 day (24hours) if a client asks for a renew say 2 hours into that lease - then the dhcpd will tell the client too bad your lease is still good.

            Let me see if I can find an example in my log of that.

            example:
            Sep 13 00:25:18 dhcpd DHCPREQUEST for 192.168.4.210 from 0c:51:01:8c:19:ae (Johns-Air2) via igb2.4
            Sep 13 00:25:18 dhcpd reuse_lease: lease age 975 (secs) under 25% threshold, reply with unaltered, existing lease for 192.168.4.210

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

            M 1 Reply Last reply Reply Quote 0
            • M
              mikehsr @johnpoz
              last edited by mikehsr

              @johnpoz

              That is not the response I’m getting. Also, the second entry does not respond a “reuse lease” response.

              BTW - The stale IP is out of the DHCP range.

              I’ll get more data and get back to you.

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

                So if your client is trying to renew an IP that is no longer in scope, it should give up and send a discover..

                So your saying client has say 192.168.1.100 from your original pool of .50 to .200, you then change your pool to .150-200 and wonder why the client just doesn't get new IP starting with .150 when you do a ipconfig /renew?

                Did you flush the old lease? Just because you change the pool size doesn't remove old leases that are no longer in scope.

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

                M 1 Reply Last reply Reply Quote 0
                • M
                  mikehsr @johnpoz
                  last edited by mikehsr

                  @johnpoz

                  Very close. The previous IP 192.168.26.51 and previous pool was .50 to .99, the new pool was .150 to .199

                  Would I flush it on the dhcp server or client?

                  1 Reply Last reply Reply Quote 0
                  • DerelictD
                    Derelict LAYER 8 Netgate
                    last edited by

                    What is the DHCP server logging?

                    Chattanooga, Tennessee, USA
                    A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                    DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                    Do Not Chat For Help! NO_WAN_EGRESS(TM)

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