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

    DHCP to reserve the same IP withwin the pool

    DHCP and DNS
    4
    6
    449
    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.
    • J
      john24634
      last edited by john24634

      I have DHCP on my IOT network with Pool from: 192.168.20.20 to 192.168.20.250

      It assigned 8 IPs to my IOT wifi plugs: 192.168.20.183 up to 192.168.20.190
      That I successfully configured in Home Assistant

      97571e36-4fff-4669-a451-9dbef340c176-image.png

      Now since I will not use all of them immediately I will like to "lock them on their IP" .183 to .190 until I use them next time (maybe in months or years!!!)

      if I add the device IP address to
      a2e2bb33-a5f8-4d81-acc1-a659264de7c3-image.png
      then it will tell me:
      The IP address must not be within the DHCP range for this interface.

      I am not sure what happens if I leave it BLANK

      A the end of the day what should I do to keep their IPs for years?

      Maybe Default lease time and Maximum lease time to UNLIMETED?

      d27b9201-0b53-4d1f-890b-c2af3959d7f4-image.png

      JKnottJ J S 3 Replies Last reply Reply Quote 0
      • JKnottJ
        JKnott @john24634
        last edited by

        @john24634 said in DHCP to reserve the same IP withwin the pool:

        I am not sure what happens if I leave it BLANK

        According to the image you posted, the device will get a regular DHCP address from within the pool.

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

        1 Reply Last reply Reply Quote 0
        • J
          Jarhead @john24634
          last edited by

          @john24634
          If you want to reserve an address it has to be outside of the dhcp pool.
          So either make the pool smaller, or use .2 through .19

          1 Reply Last reply Reply Quote 0
          • J
            john24634
            last edited by john24634

            @john24634 said in DHCP to reserve the same IP withwin the pool:

            Maybe Default lease time and Maximum lease time to UNLIMETED?

            Can I set Default lease time and Maximum lease time to 5 years(157784630 seconds) for that mac addresses?

            JKnottJ 1 Reply Last reply Reply Quote 0
            • JKnottJ
              JKnott @john24634
              last edited by

              @john24634 said in DHCP to reserve the same IP withwin the pool:

              Can I set Default lease time and Maximum lease time to 5 years(157784630 seconds) for that mac addresses?

              What would you achieve with that? If you use a static map, the device will always get the same address.

              PfSense running on Qotom mini PC
              i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
              UniFi AC-Lite access point

              I haven't lost my mind. It's around here...somewhere...

              1 Reply Last reply Reply Quote 0
              • S
                SteveITS Galactic Empire @john24634
                last edited by

                @john24634 See https://docs.netgate.com/pfsense/en/latest/services/dhcp/mappings-in-pools.html for the reasoning for this.

                You can split your pool and create additional pools to use IPs in the middle.

                Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                Upvote 👍 helpful posts!

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.