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

DHCPD Stopped working, fixed, but trying to figure it out.

Scheduled Pinned Locked Moved DHCP and DNS
5 Posts 3 Posters 868 Views 4 Watching
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.
  • C Offline
    CoreyCoop
    last edited by CoreyCoop Feb 13, 2023, 7:44 AM Feb 13, 2023, 7:42 AM

    I've been trying to solve a problem with my pfSense setup, (no need to go into it here) so I've been trying various things. My wife told me this evening she had no internet, so I started investigating.
    DHCP was not running, after coming up with an error, as seen in this from the log file:

    Feb 12 20:32:46 dhcpd 4463 /etc/dhcpd.conf line 62: semicolon expected.
    Feb 12 20:32:46 dhcpd 4463 option custom-s_lan_4-0 4,
    Feb 12 20:32:46 dhcpd 4463 ^
    Feb 12 20:32:46 dhcpd 4463 Configuration file errors encountered -- exiting

    after that it showed several lines of how to report bugs to isc.org, and then:

    Feb 12 22:32:46 dhcpd 74267 exiting.

    after that all the messages were from dhcp6c.

    I'm a newb on pfSense and BSD, so I tried to 'ee' the file /etc/dhcpd.conf, but it does not exist, I guess it's a temp file.
    I tried undoing everything i could think of I might have done to the DHCP server, but didn't remember doing anything specific.
    Finally I did a Restore recent configuration from the console, working my way back, #25 didn't work, but luckily #30, the last one available, from yesterday morning, was marked "DHCP Server Settings Saved" and it fixed the issue. So somewhere between #25 and #30 is something that caused the problem.

    So my question is how do I save the configuration files? Something I did working solely in the webConfigurator caused a configuration that was missing a semi-colon, which sounds like a bug someone would be interested in fixing (unless it's known bug?) Since it was the oldest available, I can't make any changes until I backup those files.

    G R 2 Replies Last reply Feb 13, 2023, 9:45 AM Reply Quote 0
    • G Offline
      Gertjan @CoreyCoop
      last edited by Feb 13, 2023, 9:45 AM

      @coreycoop said in DHCPD Stopped working, fixed, but trying to figure it out.:

      Feb 12 20:32:46 dhcpd 4463 /etc/dhcpd.conf line 62: semicolon expected.

      Can you show the file that produces the error ?

      It's here : /var/dhcpd/etc/dhcpd.conf

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      C 1 Reply Last reply Feb 14, 2023, 4:07 AM Reply Quote 0
      • C Offline
        CoreyCoop @Gertjan
        last edited by CoreyCoop Feb 14, 2023, 4:08 AM Feb 14, 2023, 4:07 AM

        @gertjan said in DHCPD Stopped working, fixed, but trying to figure it out.:

        /var/dhcpd/etc/dhcpd.conf

        dhcpd.conf.works.txt
        dhcpd.conf.dhcp-fails.txt

        Is there any way to save the #30 and #29 backups and get more info, like what exactly I did in the WebConfigurator to cause this problem?

        R 1 Reply Last reply Feb 15, 2023, 1:27 AM Reply Quote 1
        • R Offline
          rcoleman-netgate Netgate @CoreyCoop
          last edited by Feb 14, 2023, 6:18 PM

          @coreycoop said in DHCPD Stopped working, fixed, but trying to figure it out.:

          Something I did working solely in the webConfigurator caused a configuration that was missing a semi-colon, which sounds like a bug someone would be interested in fixing (unless it's known bug?)

          All possible bugs should be posted to https://redmine.pfsense.org/

          Ryan
          Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
          Requesting firmware for your Netgate device? https://go.netgate.com
          Switching: Mikrotik, Netgear, Extreme
          Wireless: Aruba, Ubiquiti

          1 Reply Last reply Reply Quote 0
          • R Offline
            rcoleman-netgate Netgate @CoreyCoop
            last edited by Feb 15, 2023, 1:27 AM

            @coreycoop said in DHCPD Stopped working, fixed, but trying to figure it out.:

            Is there any way to save the #30 and #29 backups and get more info, like what exactly I did in the WebConfigurator to cause this problem?

            There's a diff option in the Backup Config. You can also download them directly and do a diff comparison locally.

            Ryan
            Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
            Requesting firmware for your Netgate device? https://go.netgate.com
            Switching: Mikrotik, Netgear, Extreme
            Wireless: Aruba, Ubiquiti

            1 Reply Last reply Reply Quote 0
            1 out of 5
            • First post
              1/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received