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

    Friendly names on UI for DHCP Clients?

    Scheduled Pinned Locked Moved General pfSense Questions
    51 Posts 11 Posters 5.6k 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.
    • JKnottJ
      JKnott @terryzb
      last edited by

      @terryzb said in Friendly names on UI for DHCP Clients?:

      @johnpoz
      about 10 hours ago

      @JKnott Thank you. I wasn't really thinking to give it a static IP, I just wanted to give it a description to make it easier to identify in the DHCP lease list. Seems like in order to do this it has to have a static IP?

      What else are you going to assign the name to?

      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
      • stephenw10S
        stephenw10 Netgate Administrator @terryzb
        last edited by

        @terryzb said in Friendly names on UI for DHCP Clients?:

        just trying to add a friendly name in the UI associated with the MAC address.

        That I assume^

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

          @stephenw10 said in Friendly names on UI for DHCP Clients?:

          That I assume^

          What's the point of assigning a name to a MAC instead of an IP address or not assigning an IP to a MAC? On my network, every device that "lives" here has a static mapped IP address with a name assigned. I also have a pool of unassigned addresses for any visiting device, though they would only be on my guest WiFi/VLAN.

          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...

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

            @JKnott I really don't get it either ;) If I am going to take the trouble to make sure something has a name I lookup up somewhere, why would I not just give it an IP.. So I know device X is at 192.168.1.100 or whatever and if dns fails, I can still access known device by its IP, etc.

            But hey - the wireless controller for unifi allows to create an ailas "name" for some device based on the mac address.

            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
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              I can see how it would be useful. I haven't memorised the MAC address of every device on my network. ๐Ÿ˜‰
              I just don't think it's possible in pfSense currently.

              T 1 Reply Last reply Reply Quote 0
              • NollipfSenseN
                NollipfSense @joyjit
                last edited by NollipfSense

                @joyjit said in Friendly names on UI for DHCP Clients?:

                When I create a static IP mapping without any IP Address, it shows up only once, with the friendly hotsname I assigned, in the DHCP Leases page.

                @stephenw10 said in Friendly names on UI for DHCP Clients?:

                Either that it allows you create a mapping without an IP address (and without static ARP

                FWIW...I recently created DCHP a static mapping (v23.01/23.05) and didn't have any issue; however, in my case, I used an IP and a real domain name. I cannot show because I had to get rid of Dell Precision 3630MT...coffee lake issues for another Dell Precision 5820 with Xeon...got graphic card and memory arriving tomorrow, and should be up this week.

                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
                • T
                  terryzb @stephenw10
                  last edited by

                  @stephenw10 Thank you Stephen. I apologize that I didn't articulate my question well enough. I was just echoing what the OP asked for a few years ago in the first post and wondered if there was now a way to do it. I appreciate you confirming that it doesn't appear to be possible in pfSense yet.

                  1 Reply Last reply Reply Quote 0
                  • D
                    Dadman
                    last edited by Dadman

                    Johnpoz I see your point of just assigning a static ip if your going to go through the trouble of creating a host name.

                    However the fact of the matter is that all soho routers that I have used (ubiquiti,netgear,tplink, probably others) have this feature. Essentially what we are able to do on those routers is quickly within a few clicks rename a device in the client lists. (I.e. click client list/dhcp lease table, click the device , edit device name, done). It makes it quick and easy to monitor devices on a home network. Just like DHCP is quick and easy. I have absolutely no need to have a static ip on some devices like a kids iPad, etc. Or want to take the time figure out which Ip I want to assign/record to said device.

                    Maybe the new DHCP backend will have this from the getgo.

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

                      @Dadman said in Friendly names on UI for DHCP Clients?:

                      Essentially what we are able to do on those routers is quickly within a few clicks rename a device in the client lists.

                      I'm doing just that with with pfSense since ... a decade or so ?

                      I'm not touching the LAN network devices. They all stay on the default DHCP client mode.
                      On the pfSense side : I see the MAC of the client, assign it a IP, give it a more clear host name like 'NAS2' so I don't have to deal with (example) : 4b98fc56-a6fa-489b-9189-115a4b447bbb-image.png

                      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
                      • E
                        etuckeriv
                        last edited by etuckeriv

                        Hey all! This is an old thread, but it looks like it's still going even as of a couple months ago, so I hope it's ok I continue the discussion here rather than starting a new topic (please let me know otherwise)

                        I just got a netgate 1100, and after I got it all set up, one of the first things I wanted to do was create a description or a friendly name for all of my devices on the network, lol. I'm surprised that this seems like such a difficult task with how powerful/flexible/customizable pfSense is!

                        To be clear, the end goal (for me) is NOT to set a reservation or a static IP. If I have to do that for every device in my network then there isn't any point in running a DHCP server in the first place. I have a handful of devices that I need to have a static IP, but for everything else I want them to be given an IP from the DHCP pool.

                        That said, many of the devices don't seem to provide a host name, so I don't know what they are or who they belong to. I need a way, whether it be creating a reservation or some other way, to set an identifier (probably at the MAC address level) so I can quickly and easily identify the device. This is helpful when creating aliases to set rules and schedules for my children's devices, as an example, since I have to use a host name or IP (it would be great if I could use MAC addresses here too).

                        Or, if there is some other way I should be doing this, please let me know. Essentially I want to group my devices by the person they belong to so that I can create rules and schedules for those groups of devices. Currently I can't seem to do that without assigning a static IP to all of them, which I'd rather not do.

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

                          So effectively add an alias for a MAC address? Hmm ๐Ÿค”

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

                            @stephenw10 I thought if you just left the IP black when you setup a reservation it just pulled from the pool for the IP? Hasn't there been multiple threads about this? This is what the note says on the IP when creating a reservation

                            reservation.jpg

                            I just never understood this thinking.. If I am going to go through the trouble of setting hostname based on mac - just put in an IP as well.. What is that .2 seconds more of work?

                            You could even set it up before hand and just load it into your xml file, thought I saw some work someone did that would convert spreadsheet into the xml you need.

                            Not sure if this is the one I was thinking of, but this should be able to convert a list of your stuff you want into xml to load in
                            https://github.com/GeekVisit/uproot

                            Seems like they don't understand the point of dhcp to be honest.. There is more than an IP you can do with dhcp.. So vs settings static on the device it is much better to set a reservation.. You can change this whole network to some other IP scheme without having to touch a device, you can change dns as well. What gateway it points to, etc.

                            I don't think I have anything on my network currently that doesn't have a reservation with IP in it.. When I add something new, I just let it grab something from the pool, then go in and create a reservation for it - next time it up updates its lease it gets the new IP, or if I want it to take effect right away I just reboot the device or manually renew its lease, 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.8, 24.11

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

                              I mean I imagine the goal is to be able to access dhcp clients by hostname when they don't supply one to the server. In which case, yes, just adding an entry without an IP should do it.

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

                                @johnpoz Honestly, and I don't mean any disrespect when I say this, whether you understand it or not is irrelevant. Virtually every other router I have ever used has this functionality, based on the users in this post and in others I've found in searches online it is something that people have also done with other DHCP platforms and want to do with pfSense, and it's hard to believe pfSense can't do it.

                                I did do as you've pictured and it seems to be working, sort-of.. Sometimes there will be a duplicate listing for the client in the DHCP lease table, while other times it will have a single listing with the host name I have mapped along with an IP from the DHCP pool but is missing the description I provided in the mapping.

                                From what I can tell the ARP table seems to be involved. I don't know if there is some specific order, but disconnecting the device from the network, clearing the ARP table, and then clearing all dhcp leases seems to do something, though the behavior is inconsistent and not what is expected based on the way the aforementioned routers worked.

                                I also added nmap, which does provide additional info in some cases, but still not what I'm looking to achieve.

                                Again, all I want to do is indicate "this MAC address is my kid's tablet" I wanna have some sort of visual indicator that says "susie's tablet" and be able to associate that device to "susie" in an alias or something so that I can set rules and limitations against it, along with any of susie's other devices, and I don't want to assign it a static IP, because I shouldn't have to.

                                stephenw10S 1 Reply Last reply Reply Quote 0
                                • E
                                  etuckeriv @stephenw10
                                  last edited by

                                  @stephenw10 YES! This is exactly right. And now that I think about it, this is working and I'm able to access them in an alias in this way. I guess it's just weird to see the DHCP Lease table behavior with duplicate listings for the same host, or sometimes using the mapping but without the description I provided. Do you have any insight into why that may be happening?

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

                                    @etuckeriv said in Friendly names on UI for DHCP Clients?:

                                    and be able to associate that device to "susie" in an alias or something so that I can set rules and limitations against it,

                                    Yeah you can that as long as the firewall can resolve the host. So you need to have dhcp leases added to the DNS service.

                                    E 1 Reply Last reply Reply Quote 1
                                    • E
                                      etuckeriv @stephenw10
                                      last edited by

                                      @stephenw10 said in Friendly names on UI for DHCP Clients?:

                                      So you need to have dhcp leases added to the DNS service.

                                      Ahh, ok, that makes sense. I saw an option for that when I first set up the appliance, but it was for ISC DHCP. Since I got a warning that it is depricated I switched it to Kea DHCP, and I no longer see an option to register DHCP Leases with the DNS service. Does Kea already do this? Or am I missing a setting somewhere?

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

                                        Not yet in Kea. Coming real soon now. ๐Ÿ˜‰

                                        E 1 Reply Last reply Reply Quote 1
                                        • E
                                          etuckeriv @stephenw10
                                          last edited by

                                          @stephenw10 Well that seems to explain it, haha! Thanks for the support!

                                          1 Reply Last reply Reply Quote 0
                                          • E
                                            etuckeriv @stephenw10
                                            last edited by etuckeriv

                                            @stephenw10 said in Friendly names on UI for DHCP Clients?:

                                            So effectively add an alias for a MAC address? Hmm ๐Ÿค”

                                            Also, if you could make this happen, that would be cool too ๐Ÿ˜„

                                            As in, when creating an alias, have the ability to assign hosts to the alias using the MAC address as well as hostname or IP

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