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

    Can't Enable DHCP Server

    DHCP and DNS
    5
    8
    6.0k
    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

      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

        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

          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

            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

              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

                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

                  @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
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    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.