Navigation

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

    DHCP Service is not Starting

    DHCP and DNS
    2
    7
    122
    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.
    • L
      limez17 last edited by

      Hi All!

      Good day. Hope you are all doing fine in this time of pandemic.
      I'm having with my pfsense box. DHCP service is not starting.
      DHCP server is working before but its not working now.

      Here is the log:
      Jul 23 14:22:40 dhcpd Internet Systems Consortium DHCP Server 4.3.6-P1
      Jul 23 14:22:40 dhcpd Copyright 2004-2018 Internet Systems Consortium.
      Jul 23 14:22:40 dhcpd All rights reserved.
      Jul 23 14:22:40 dhcpd For info, please visit https://www.isc.org/software/dhcp/
      Jul 23 14:22:40 dhcpd Config file: /etc/dhcpd.conf
      Jul 23 14:22:40 dhcpd Database file: /var/db/dhcpd.leases
      Jul 23 14:22:40 dhcpd Internet Systems Consortium DHCP Server 4.3.6-P1
      Jul 23 14:22:40 dhcpd PID file: /var/run/dhcpd.pid
      Jul 23 14:22:40 dhcpd Copyright 2004-2018 Internet Systems Consortium.
      Jul 23 14:22:40 dhcpd All rights reserved.
      Jul 23 14:22:40 dhcpd For info, please visit https://www.isc.org/software/dhcp/
      Jul 23 14:22:40 dhcpd /var/db/dhcpd.leases line 0: whitespace too long, buffer overflow.
      Jul 23 14:22:40 dhcpd ^
      Jul 23 14:22:40 dhcpd Exiting
      Jul 23 14:22:40 dhcpd If you think you have received this message due to a bug rather
      Jul 23 14:22:40 dhcpd than a configuration issue please read the section on submitting
      Jul 23 14:22:40 dhcpd bugs on either our web page at www.isc.org or in the README file
      Jul 23 14:22:40 dhcpd before submitting a bug. These pages explain the proper
      Jul 23 14:22:40 dhcpd process and the information we find helpful for debugging.
      Jul 23 14:22:40 dhcpd exiting.

      Any info is greatly appreciated.

      Gertjan 2 Replies Last reply Reply Quote 0
      • Gertjan
        Gertjan @limez17 last edited by

        @limez17 said in DHCP Service is not Starting:

        /var/db/dhcpd.leases line 0: whitespace too long, buffer overflow.

        Try this : Delete that file.

        First, make sure the DHCP server is stopped.
        Then :

        rm /var/db/dhcpd.leases
        

        and start DHCP again.

        No "help me" PM's please. Use the forum.

        L 1 Reply Last reply Reply Quote 0
        • L
          limez17 @Gertjan last edited by

          @Gertjan Thank you for responding. Done:
          [2.4.4-RELEASE][root@]/var/db: ls -lrt dh*
          ---------- 1 root wheel 419 Aug 8 2019 dhclient.leases.igb2.bkp
          ---------- 1 root wheel 838 Aug 8 2019 dhclient.leases.igb0.bkp

          But still unable to start the DHCP service.

          1 Reply Last reply Reply Quote 0
          • Gertjan
            Gertjan last edited by

            It seems that the files are extended with the NIC driver name, like em0 or igb0

            Probably a file like /var/db/ dhclient.leases doesn't even exist.

            I do not have - and never saw these dot bkp files, probably backup files.

            No "help me" PM's please. Use the forum.

            L 1 Reply Last reply Reply Quote 0
            • L
              limez17 @Gertjan last edited by

              @Gertjan I only backup dhclient.leases files to simulate deletion, i don't it to be deleted just in case my box will encounter an error,

              L 1 Reply Last reply Reply Quote 0
              • L
                limez17 @limez17 last edited by

                Anyone who has idea on this? Thank you!

                1 Reply Last reply Reply Quote 0
                • Gertjan
                  Gertjan @limez17 last edited by

                  @limez17 said in DHCP Service is not Starting:

                  Jul 23 14:22:40 dhcpd /var/db/dhcpd.leases line 0: whitespace too long, buffer overflow.

                  What do you find a that lease file ?

                  You should sections like this :

                  lease {
                    interface "em3";
                    fixed-address 192.168.10.2;
                    option subnet-mask 255.255.255.0;
                    option routers 192.168.10.1;
                    option domain-name-servers 192.168.10.1;
                    option domain-name "home";
                    option broadcast-address 192.168.10.255;
                    option dhcp-lease-time 86400;
                    option dhcp-message-type 5;
                    option dhcp-server-identifier 192.168.10.1;
                    renew 5 2020/7/24 02:09:50;
                    rebind 5 2020/7/24 11:09:50;
                    expire 5 2020/7/24 14:09:50;
                  }
                  lease {
                    interface "em3";
                    fixed-address 192.168.10.2;
                    option subnet-mask 255.255.255.0;
                    option routers 192.168.10.1;
                    option domain-name-servers 192.168.10.1;
                    option domain-name "home";
                    option broadcast-address 192.168.10.255;
                    option dhcp-lease-time 86400;
                    option dhcp-message-type 5;
                    option dhcp-server-identifier 192.168.10.1;
                    renew 5 2020/7/24 14:09:50;
                    rebind 5 2020/7/24 23:09:50;
                    expire 6 2020/7/25 02:09:50;
                  }
                  
                  etc
                  

                  Strange is that the DHCP server creates and maintains this file.
                  It should be able to read it back in.
                  What does it put in this file that it can't read back ?

                  No "help me" PM's please. Use the forum.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post