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

    Do you use dhcp reservations?

    Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
    62 Posts 26 Posters 13.8k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @maverickws
      last edited by

      @maverickws sure static aps are handy, etc.. But not really a "reservation" ;)

      But sure they could go hand and hand with each other.

      You find different terms all over the planet for sure, as long as you can convey what it is your actually talking about - doesn't really matter.. I have always used the term transit network for example, for a network that connects routers, etc. In my new gig working noticed some colleagues call them connector networks.. Ok that works too.. same thing ;)

      And they use the term kit a lot, vs just gear or specific call out switch or router, or model of the device.. Again as long as we know what each other is talking about - doesn't really matter. And I find myself using some different terms now as well ;) Because that is the terms the team uses.

      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.7.2, 24.11

      maverickwsM 1 Reply Last reply Reply Quote 1
      • maverickwsM
        maverickws @johnpoz
        last edited by maverickws

        @johnpoz yeah I'm 100% with you.
        Now I'm just mind bogged bc I can't remember exactly the context in we used the arp entries. Transit networks we used that too, and I believe we also used carrier networks. All and all, DHCP reservations or static mappings are in fact one of the most commonly used features. Clients get their addresses dynamically there is no need of configuring each client device, its mapping on the router and its done each device gets the proper IP. Wouldn't change a thing.

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          Yeah I use static reseervations/mappings for numerous things.

          I also usually add them for devices that statically configured because it makes them resolvable (except in Kea!) and prevents me forgetting and using that IP for something else. It also means if hat device forgets it's config and falls back to dhcp it still gets the same IP.

          johnpozJ 1 Reply Last reply Reply Quote 3
          • GertjanG
            Gertjan
            last edited by Gertjan

            @johnpoz said in Do you use dhcp reservations?:

            I would be running dhcp else where on my network that did

            Exact.

            On my captive portal network, reservations are impossible, as these devices are just part of 'my' network for a short time, they come and go.

            On my main company LAN, and @home, I've a reservation for every device.
            About 20 at work, and nearly as many @home.
            Both IPv4 and Ipv6.

            My way of seeing things : as every device I use on my networks has a DHCP-client activated, I can 'admin' the DHCP process on the server = pfSense side. I've nothing to do on the device that is related to network settings.
            Ok, maybe not nothing, as some still works with the "Microsoft Network Neighborhood" (is this still a ) thing. And another issue : most don't use the DHCP client ask (option 42) for a NTP client IP, so I have to enter it myself (= 192.168.1.1 as the IPv6 equivalent is a pain in the b*t).

            Right now, I can see that these devices :
            2861963b-16f6-4ce5-9fc9-c304cb19d482-image.png
            don't have static DHCP leases, so these don't belong on my company LAN.
            This could be a security issue. But ok, I know to who they belong ...

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

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

              @stephenw10 said in Do you use dhcp reservations?:

              I also usually add them for devices that statically configured

              I do the same for my main pc, but as of late have just left in dhcp mode.. If I have to change its IP for some test or something I just go to static, and then when I want to get back to my default setup I just move it back to dhcp..

              But yeah adding a reservation for stuff you set static is good practice I would agree. Simple way to just know hey I assigned this ip to something already vs having to use some ipam software or spreadsheet or "memory" ;)

              And yup if for some reason the thing does reset to default or whatever - if it comes up dhcp it will get the IP you want, etc.

              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.7.2, 24.11

              LarryFahnoeL 1 Reply Last reply Reply Quote 0
              • LarryFahnoeL
                LarryFahnoe @johnpoz
                last edited by

                I'm a long time user of ISC dhcpd for both enterprise and personal use. I certainly make use of reservations as well as many other custom options. This topic took me by surprise as I was unaware that dhcpd is no longer being maintained by ISC (I'm retired), so I spent a little time reading about migration to KEA as well as how to configure it. Perhaps I'm just old, but the new JSON configuration and the many restrictions and qualifications make it look like a serious step backwards. https://kea.readthedocs.io/en/latest/arm/config.html

                --Larry

                1 Reply Last reply Reply Quote 1
                • NollipfSenseN
                  NollipfSense @johnpoz
                  last edited by

                  @johnpoz said in Do you use dhcp reservations?:

                  Reservations came up in one, do people even use them, etc.. Which got me curious.. I personally use them for everything...

                  Yes, I do; however, not on my edge firewall pfSense...just on my LAN with Mikrotik.

                  pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                  pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

                  1 Reply Last reply Reply Quote 0
                  • kohenkatzK
                    kohenkatz @SteveITS
                    last edited by

                    @SteveITS said in Do you use dhcp reservations?:

                    if you need to change your subnet or especially mask it saves time touching each device to update manually.

                    I just had to do this - I set up a site-to-site VPN, and there was a subnet conflict between one of my subnets and one of the other side's subnets. I was able to change my subnet with little trouble, and all the devices with reservations picked up their new IP addresses automatically.


                    I also have some devices that I want static IPs for, but they do not have the ability to set a static IP. (Offhand, the first example that comes to mind is DoorBird doorbells, but there are some others too. These have an API that can be scripted, but that requires knowing how to contact them.) For these types of devices, DHCP reservations are critical.

                    1 Reply Last reply Reply Quote 0
                    • C
                      coxhaus @johnpoz
                      last edited by coxhaus

                      @johnpoz
                      I use statics for important things not reservations. My network is so small at home that over the last 15 years or so I have changed equipment enough that I just use DHCP and adapt.
                      I guess I should also say I run DHCP off my Cisco L3 switch not Pfsense.

                      1 Reply Last reply Reply Quote 0
                      • Sergei_ShablovskyS
                        Sergei_Shablovsky @johnpoz
                        last edited by

                        @johnpoz
                        Sad: 1,200 views and ~32 (!!!!!!) votes

                        —
                        CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                        Help Ukraine to resist, save civilians people’s lives !
                        (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                        1 Reply Last reply Reply Quote 0
                        • Sergei_ShablovskyS
                          Sergei_Shablovsky @KOM
                          last edited by

                          @KOM said in Do you use dhcp reservations?:

                          I don't use reservations at home or at the office. For me the only benefit would be easier renumbering, and that's something I haven't needed to do in the 20+ years I've been at this company.

                          Static IP mapping are VERY USEFUL for pf rules writing and also give You flexibility when hardware changes.

                          If someone (I mean boss) not understanding this - it has a right to pay for extra work hours ;)

                          —
                          CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                          Help Ukraine to resist, save civilians people’s lives !
                          (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                          KOMK 1 Reply Last reply Reply Quote 0
                          • the otherT
                            the other
                            last edited by

                            hey all,
                            FYI: static mappings are in use here too. I have DHCP reservations for all my clients (pure home network). Used to do static IPs on clients directly but cahnged that to dhcp reservations. And no, not using the new kea dhcp...still the old stuff here.

                            the other

                            pure amateur home user, no business or professional background
                            please excuse poor english skills and typpoz :)

                            1 Reply Last reply Reply Quote 0
                            • Sergei_ShablovskyS
                              Sergei_Shablovsky
                              last edited by

                              My decision and arguments for using “IP static mapping” in middle-size companies or small firms with @johnpoz answers and arguments You may read here: Static IP - MAC mapping inside DHCP dynamic pool - how to?.

                              Thank You all!

                              —
                              CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                              Help Ukraine to resist, save civilians people’s lives !
                              (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                              1 Reply Last reply Reply Quote 0
                              • JonathanLeeJ
                                JonathanLee
                                last edited by JonathanLee

                                I use them for every single device on my network. My 48 bit addresses and layer 2 addresses are all purple here because I do not want any mac address cloning going on. That is a cool pen testing tool to see that done.

                                Screenshot 2024-03-15 at 13.26.40.png

                                Make sure to upvote

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

                                  @JonathanLee said in Do you use dhcp reservations?:

                                  I do not want any mac address cloning going on.

                                  Who is going to clone your macs? And for what purpose? Mac cloning is only a thing if they are already on your network..

                                  Here is my pc mac.. Clone away ;)

                                     Connection-specific DNS Suffix  . : home.arpa
                                     Description . . . . . . . . . . . : Killer E2600 Gigabit Ethernet Controller
                                     Physical Address. . . . . . . . . : B0-4F-13-0B-FD-16
                                     DHCP Enabled. . . . . . . . . . . : Yes
                                     Autoconfiguration Enabled . . . . : Yes
                                     IPv4 Address. . . . . . . . . . . : 192.168.9.100(Preferred)
                                     Subnet Mask . . . . . . . . . . . : 255.255.255.0
                                     Lease Obtained. . . . . . . . . . : Wednesday, March 6, 2024 2:02:01 PM
                                     Lease Expires . . . . . . . . . . : Monday, March 18, 2024 2:02:00 PM
                                     Default Gateway . . . . . . . . . : 192.168.9.253
                                     DHCP Server . . . . . . . . . . . : 192.168.9.253
                                     DNS Servers . . . . . . . . . . . : 192.168.3.10
                                     NetBIOS over Tcpip. . . . . . . . : Enabled
                                  

                                  I would love to hear your theory how anyone could use that to do anything? That doesn't already have full access to my network anyway..

                                  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.7.2, 24.11

                                  JonathanLeeJ Sergei_ShablovskyS 2 Replies Last reply Reply Quote 2
                                  • JonathanLeeJ
                                    JonathanLee @johnpoz
                                    last edited by

                                    @johnpoz bro now I can run airsnort on your network and packet sniff hahahaha. Jk

                                    Make sure to upvote

                                    1 Reply Last reply Reply Quote 0
                                    • KOMK
                                      KOM @Sergei_Shablovsky
                                      last edited by

                                      @Sergei_Shablovsky said in Do you use dhcp reservations?:

                                      give You flexibility when hardware changes

                                      New hardware? What's that?? My company runs on Dell blades from 2012. We don't ever get new hardware because that would cost more than zero. Same with our desktops.

                                      1 Reply Last reply Reply Quote 1
                                      • E
                                        Epimpin @johnpoz
                                        last edited by Epimpin

                                        @johnpoz Yes, I use dhcp reservations for my wireless clients, but sometimes it does not quite work as I would Like. It works hand in hand with my macsec implementation and hardens my certificate based user auth and aids in my acl implementation.

                                        C 1 Reply Last reply Reply Quote 0
                                        • C
                                          coxhaus @Epimpin
                                          last edited by coxhaus

                                          @Epimpin
                                          That means you are going to spend a lot of time chasing MACs for all devices that come into your network. I have better things to do with my time than track every iPhone or whatever IP devices that comes into my network. Those devices are not going to work without you setting up the MAC for a DHCP reservation. Create a setup so it can be automated. And that means don't use DHCP reservations as it is too limiting. Use DHCP for a general class of devices. You can use scopes to separate devices and classes.

                                          E 1 Reply Last reply Reply Quote 2
                                          • E
                                            Epimpin @coxhaus
                                            last edited by Epimpin

                                            @coxhaus
                                            Well it all starts with having a good understanding of what a mac address consists of. For instance, the first 6 digits(3 octets) tell you who manufacures the device and when and is called an OUI.

                                            I have a locally stored OUI database installed in my auth scheme and I have ACL'S that block any device made by Huawei for instance and sends them to a walled garden with a message regarding Huawei devices with specific information.

                                            You should know what type of devices you should expect on your network. With some simple network automation you don't have to "chase" mac addresses.

                                            Then for things like switch to switch communications in your core, you should only ever see mac addresses of the neighboring switch. It doesn't have to be hard.

                                            The dhcp reservations work well for allowing my roaming clients in my wireless networks to maintain a consistent connection and also allows my gigamon boxes to assign an identifier and gives good deduplication and solid subscriber tracking and less logging without having to implement a complex gtp/gprs configuration.

                                            It works for me.

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