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

    Feature request to allow DHCP Reservation anywhere in the range

    Scheduled Pinned Locked Moved Forum Feedback
    10 Posts 7 Posters 4.1k 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.
    • T
      torontob
      last edited by

      It would be best to have the flexibility to assign ANY IP to client on RESERVED basis. Currently, pfSense complains of IP being within DHCP range - an option to override that will be a great improvement. Maybe a warning would suffice rather than forcing user to change the whole network infrastructure.

      Does this feature have any likes?

      1 Reply Last reply Reply Quote 1
      • D
        doktornotor Banned
        last edited by

        Certainly no likes from the pfSense developers, denied multiple times. Move on, not going to happen.

        1 Reply Last reply Reply Quote 0
        • C
          Cino
          last edited by

          There is a why around it but its up to you to figure out

          https://doc.pfsense.org/index.php/Why_can%27t_I_have_static_mappings_inside_my_DHCP_range%3F

          hint
          /usr/local/www/services_dhcp_edit.php
          /* make sure it's not within the dynamic subnet */

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            The tricky part is the "RESERVED" part. That is not possible with ISC DHCPD. There is a reason why we don't allow it (documented on the page Cino linked)

            Static mappings are a preference, not a reservation. The IP address from a static mapping can be assigned dynamically if the host that usually has the mapping is offline.

            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
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              There is also simple way to do where everyone is happy.

              So lets say your dhcp pool is .100 to .200 and you just are hell bent on having a "reservation or static" assigned for .150 right in the middle of that pool.

              Just adjust your pools, multiple pools have been available for quite some time.

              So create pool .100 to .149, and another pool for .151 to .200 - so now you have a overall pool of .100 to .200 with a static for your .150 box.

              dhcppools.png
              dhcppools.png_thumb

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

                That is a good workaround for one or two in the middle, but not if you need to scatter them around or just take current lease values and make them "stick".

                It would be possible for the code to automatically generate a bunch of new pools to allow for reservations in the middle, but that seems like it could get really ugly, really fast. Especially for failover.

                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
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator
                  last edited by

                  yeah it would be a real pain if you had lots of them to do.. Its ok if you have them all in one group of ips or just a couple of them.

                  I don't see any issues with current setup to be honest.  What is the difference if the box has .99 or .201 that outside your scope of .100 to 200 or inside that at .150 - that sort of requirement seems anal to the highest degree ;)

                  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 0
                  • S
                    sekrit_skworl
                    last edited by

                    @jimp:

                    The tricky part is the "RESERVED" part. That is not possible with ISC DHCPD. There is a reason why we don't allow it (documented on the page Cino linked)

                    Static mappings are a preference, not a reservation. The IP address from a static mapping can be assigned dynamically if the host that usually has the mapping is offline.

                    I am trying to connect my HDHomerun Prime (Which SiliconDust states would require either DHCP or DHCP reservation NO STATIC)

                    I need my Homerun prime to operate on subnet 2.  The tuner device (Homerun Prime) keeps going to subnet 4.

                    It is both connected to the Subnet 2 designated ethernet connector and the MAC is assigned to the DHCP server for subnet 2. 
                    I've rebooted the router, and Tuner device multiple times.  I have cleared old active/inactive leases.

                    I have loaded "/var/dhcpd/var/db/dhcpd.leases~" & "/var/dhcpd/var/db/dhcpd.leases" and cleared old leases there as well.

                    I am an in from desperate, as I have been attempting for 3 weeks now.  What on earth could I be failing to do?

                    1 Reply Last reply Reply Quote 0
                    • DerelictD
                      Derelict LAYER 8 Netgate
                      last edited by

                      You should start another thread. And give more details about these subnets 2 and 4.

                      Chattanooga, Tennessee, USA
                      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                      Do Not Chat For Help! NO_WAN_EGRESS(TM)

                      1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator
                        last edited by

                        You trying to run 2 subnets over the same wire??  devices on subnet 2 it would be impossible to get an dhcp address from subnet 4..  Unless you think you can just run 2 different address schemes over the same wire and run 2 different dhcp servers??

                        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 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.