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

Can't Enable DHCP Server

Scheduled Pinned Locked Moved DHCP and DNS
8 Posts 5 Posters 6.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.
  • C
    Cruzer
    last edited by Mar 17, 2012, 12:18 PM

    I am unable to enable the DHCP server. When I attempt to enable the service, I get the following error:

    DHCP Relay is currently enabled. Cannot enable the DHCP Server service while the DHCP Relay is enabled on any interface.

    The DHCP relay is not enabled. Under Status/Services, it shows dhcrelay as stopped. I did have it on at one point, but not any longer. Am on 2.01 full. TIA.

    1 Reply Last reply Reply Quote 0
    • M
      mibovrd
      last edited by Mar 23, 2012, 6:49 PM Mar 23, 2012, 6:45 PM

      It has to be 'DISABLED', or (un)checked on the DHCP Relay page. Stopped is not enough.

      Other than that, may be a bug. May not remove OPT1 correctly. Back up config, remove it manually. The should be OK.

      Tweet: MIBovrd@cqrite http://www.cqrite.com

      1 Reply Last reply Reply Quote 0
      • C
        Cruzer
        last edited by Apr 8, 2012, 9:09 PM

        Awesome! Just as you suspect, it looks like a bug that does not remove the OPT1 correctly. I did a backup, modified the xml, and restored. Fixed. Thank you so much for your help.

        1 Reply Last reply Reply Quote 0
        • M
          mibovrd
          last edited by Apr 8, 2012, 10:45 PM

          Another little snippet from the Forum, use Firefox browser. People have most problems with other browsers. I think Chrome is OK too.

          Tweet: MIBovrd@cqrite http://www.cqrite.com

          1 Reply Last reply Reply Quote 0
          • C
            cmb
            last edited by Apr 8, 2012, 11:14 PM

            When you disable an interface, it doesn't delete all of its configuration by design as people enable/disable or reassign connections under a number of circumstances and don't want the config blown away, it's not a bug. If you leave it disabled and want it truly gone, either manually clean up the config, or make sure you remove all of its config before deleting the interface.

            1 Reply Last reply Reply Quote 0
            • C
              Cruzer
              last edited by Apr 12, 2012, 11:38 AM

              But I didn't disable an interface. I had dhcp relay enabled at one point, but it didn't work the way I was hoping that it would. So I tried to disable it and use the dhcp server built into pfsense instead. But although I disabled dhcp relay in the gui, it would not let me enable the dhcp server in pfsense. It said that I couldn't enable the dhcp server since dhcp relay was enabled. But according to the gui, it was not enabled.

              By the way, I use Chrome if that matters.

              1 Reply Last reply Reply Quote 0
              • S
                Sasch
                last edited by Dec 5, 2012, 5:00 PM

                @cmb:

                When you disable an interface, it doesn't delete all of its configuration by design as people enable/disable or reassign connections under a number of circumstances and don't want the config blown away, it's not a bug. If you leave it disabled and want it truly gone, either manually clean up the config, or make sure you remove all of its config before deleting the interface.

                I'm having the same issue (and am very much a newbie). I've figured out how to download the backup XML file, found the section to edit:

                <dhcrelay><server><lan><enable></enable></lan>
                <interface></interface></server></dhcrelay>

                but I am unsure what is the correct edit to disable DHCP relay for the LAN. Do I just delete everything from <lan>through</lan> ?

                Thanks!

                1 Reply Last reply Reply Quote 0
                • J
                  jimp Rebel Alliance Developer Netgate
                  last edited by Dec 10, 2012, 2:55 PM

                  I fixed this up on 2.1 last week

                  https://github.com/bsdperimeter/pfsense/compare/752c6ca8117e05e6bb74115d2199dab7ff99168d…0a35ca7ccf198cfa6654ccc17741005a58cd6aee

                  Remember: Upvote with the šŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

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