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

    DHCP log full of wan renewal requests

    Scheduled Pinned Locked Moved General pfSense Questions
    10 Posts 3 Posters 457 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.
    • A
      applesalwaysred
      last edited by applesalwaysred

      Hi, noticed my dhcp log is full of dhcp requests for wan renewal. Message of 'DHCPREQUEST on mvneta0...'.
      When I force refresh wan dhcp, log is empty for number of hours until, I assume, lease renewal time. Using kea dhcp, 24.11 release.
      What steps to review this?
      Thanks

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

        If it's on the WAN that should be from the dhclient process like:

         Dec 16 11:31:55 	dhclient 	7311 	DHCPREQUEST on mvneta0.4090 to 192.168.126.1 port 67
        Dec 16 11:31:55 	dhclient 	7311 	DHCPACK from 192.168.126.1
        Dec 16 11:31:55 	dhclient 	87209 	RENEW
        Dec 16 11:31:55 	dhclient 	88106 	Creating resolv.conf
        Dec 16 11:31:55 	dhclient 	7311 	bound to 192.168.126.10 -- renewal in 3600 seconds. 
        

        You should only see those each time it renews.

        That's independent of the DHCP server on internal interfaces.

        Steve

        A 1 Reply Last reply Reply Quote 0
        • A
          applesalwaysred @stephenw10
          last edited by applesalwaysred

          @stephenw10 I see the dhcpack response Dec 15 at 04:36:36 and the rest of what you mentioned. The renewal is ~17 hours (61825 seconds).
          Then Dec 15 21:47:01, the renew requests start again, after 16 hours of the last renewal.
          The dhcprequests continue until wan is manually refreshed.
          wan dhcp question.png

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

            And they just continue until eventually the server responds with dhcpack?

            The dhclient will start to try to renew at half the lease time. It looks like the server is just ignoring it though. That's the upstream dhcp server at the ISP?

            A 1 Reply Last reply Reply Quote 0
            • A
              applesalwaysred @stephenw10
              last edited by

              @stephenw10 Yes, upstream dhcp server at the isp. Is this then an issue on the isp, why they don't supply a renewal in a timely manner?

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

                Good question. It's harmless log spam as long as they do respond before the lease ends.

                You could try some custom dhcp options to reduce it if you need to.

                A 1 Reply Last reply Reply Quote 0
                • A
                  applesalwaysred @stephenw10
                  last edited by

                  @stephenw10 Please advise those custom options as it is renewing the log file due to cycling.

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

                    Enable dhcp advanced options. Then you can add custom send options like:
                    dhcp-lease-time xxx
                    Or override the lease time passed in the option modifiers like:
                    supersede dhcp-lease-time xxx

                    The server may or may not just ignore what ever lease time you request in the send options.

                    johnpozJ A 2 Replies Last reply Reply Quote 1
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator @stephenw10
                      last edited by johnpoz

                      You have some disconnect between your renewal time and when the server thinks it should give you a renewal? Multiple leases in your lease file?

                      What should happen is say you get a 2 hour lease, approx 1 hour later your client should renew and the server should answer, then another hour later it would renew again.

                      If the sever is not answering then yes the client will start going crazy asking more and more often until it either gets the renewal - or it finally times out at which time it would then send out a discover.

                      Normally the server will not answer if the request for renewal is too early into the lease.

                      My isp hands me a really long lease, 7 days you can see here

                      lease.jpg

                      Where the renew time is 3.5 days and from the lease file on pfsense

                      leasefile1.jpg

                      Might want to look in your dhclient.leases.interface in /var/db and clean up any old leases.. Could release your IP, then go into that file and clear it out..

                      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 1
                      • A
                        applesalwaysred @stephenw10
                        last edited by applesalwaysred

                        @stephenw10 @johnpoz thanks!

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