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

    Add description to DHCP Leases???

    Scheduled Pinned Locked Moved DHCP and DNS
    13 Posts 5 Posters 2.3k 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.
    • L
      lrossi
      last edited by

      As mentioned on the title, i would like to know how to manually add a description for a device on the DHCP lease list.

      The hostname of some of my devices are very cryptic and doesn't tell me enough about the device. For instance, below is a portion of my DHCP lease list with several devices that i don't know what they are.
      Screenshot 2021-05-31 060334.jpg

      Now, i know i can double check the MAC addresses with the physical devices and find out which hostname belongs to which device but i cannot possibly do that every time i want to the IP of my thermostat for example.

      That is why i want to be able to fill up the "Description" field on the DHCP lease list. It seems it is the right tool to do what i want to do.

      Does anyone knows how to manually put information on this field?

      1 Reply Last reply Reply Quote 0
      • A
        amarcino
        last edited by

        If you click the + sign for static mapping in the right hand column of the DHCP lease table, the description will open up so you can edit it. You will have to do this with each and every device, that you want to name, and those devices will always get that IP address. Depending on the size of your network, this may or not be reasonable.

        L 1 Reply Last reply Reply Quote 0
        • L
          lrossi @amarcino
          last edited by

          @amarcino thanks for the response but I was hoping i could add a description without reserving a specific IP to the device

          When i click the + sign for the static reservation i get the following screen
          Screenshot 2021-05-31 082638.jpg

          I mean, if i do the static mapping route, i can manually fill the description field just as i wanted but, what would happen if i leave the "IP Address" field empty? will the device keep leasing and automatically renewing an IP from the DHCP server?

          Or, am i forced to assign a specific IP to this device if i want to be able to add a description to it?

          Also, what would happen if i change the hostname to something different than what the internal network setting of the device has? for example, my printer's internal network settings has a hostname like "HP inkjet XXX". If i change the hostname in pfsense to something like "printer" what would happen?

          GertjanG JKnottJ 2 Replies Last reply Reply Quote 0
          • GertjanG
            Gertjan @lrossi
            last edited by Gertjan

            @lrossi said in Add description to DHCP Leases???:

            what would happen if i leave the "IP Address" field empty?

            This :

            2dadcda4-4a43-4494-a909-587d7d2b70ae-image.png

            !?!

            Did you try it ?

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

            L 1 Reply Last reply Reply Quote 0
            • L
              lrossi @Gertjan
              last edited by

              @gertjan, thanks for your response, I completely missed that reference. I guess I stopped reading after the first line.

              Anyway, to answer your question, I haven’t tried it yet.

              My network environment includes not only residential appliances but also supports 2 businesses and, the most demanding of all, a 4 year old that devours online content. What this means is that I cannot just experiment with settings without knowing the outcome and hope for the best.

              Any idea on what would happen if I change the hostnames to something different than what the setting of the devices themselves have?

              GertjanG 1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan @lrossi
                last edited by

                @lrossi said in Add description to DHCP Leases???:

                if I change the hostnames to something different than what the setting of the devices themselves have?

                That's what we all do ^^

                Instead of using what the device is proposing, something like "HP4785HJYURDF-HJ" it's now know to the network as "Dave-PC-first-floor".

                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
                • JKnottJ
                  JKnott @lrossi
                  last edited by

                  @lrossi

                  Why are you hiding the MAC address? They're only relevant on the local LAN.

                  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
                  • L
                    lrossi
                    last edited by lrossi

                    So, i finally got a chance to give the static mapping a try. I used the OBI1022 as a test subject, added a description for it and left all other fields empty. Clicked save and apply changes.

                    static mapping1.jpg
                    (I even covered the MAC address to aggravate some people in this forum🙃 )

                    But when i went to the DHCP leases list i noticed that PFsense did not add the description to the OBI1022 lease. Instead, it created a new line item that had only the information that i indicated on the static mapping settings. This duplicated the OBI1022 in the DHCP list which is not the expected or desired result.

                    static mapping2.jpg
                    Does anybody know how to add a description to an item in the DHCP lease without duplicating such item?

                    fireodoF 1 Reply Last reply Reply Quote 0
                    • fireodoF
                      fireodo @lrossi
                      last edited by

                      @lrossi said in Add description to DHCP Leases???:

                      Does anybody know how to add a description to an item in the DHCP lease without duplicating such item?

                      You can add a description only to static leases!

                      Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                      SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                      pfsense 2.8.0 CE
                      Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

                      L 1 Reply Last reply Reply Quote 0
                      • L
                        lrossi @fireodo
                        last edited by

                        @fireodo thank you so much for the straight forward response.

                        fireodoF 1 Reply Last reply Reply Quote 0
                        • fireodoF
                          fireodo @lrossi
                          last edited by

                          @lrossi said in Add description to DHCP Leases???:

                          @fireodo thank you so much for the straight forward response.

                          You're welcome - hope it answers you question.

                          Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                          SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                          pfsense 2.8.0 CE
                          Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

                          GertjanG 1 Reply Last reply Reply Quote 0
                          • GertjanG
                            Gertjan @fireodo
                            last edited by

                            Because it's an

                            29427f60-8822-4a90-8dca-ea5942c27b16-image.png

                            this info :

                            1a9b6728-bf9c-49d4-964b-8b6f1a84c9e6-image.png

                            is random because, by default, this option is set :

                            642e46f9-f31c-42a8-ab8b-8c63d7717524-image.png

                            so the MAC is a random string.

                            Setting up a static lease needs a static MAC ....

                            @lrossi said in Add description to DHCP Leases???:

                            covered the MAC address to aggravate some people in this forum

                            so you're included ;)

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

                            fireodoF 1 Reply Last reply Reply Quote 0
                            • fireodoF
                              fireodo @Gertjan
                              last edited by

                              @gertjan said in Add description to DHCP Leases???:

                              so the MAC is a random string.

                              In my environment i have only older android and the mac is from hardware! Thanks for enlightenment!

                              Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                              SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                              pfsense 2.8.0 CE
                              Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

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