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

    Setting custom descriptions in the dhcp lease list

    Scheduled Pinned Locked Moved DHCP and DNS
    4 Posts 4 Posters 412 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.
    • B
      Bruenore
      last edited by

      Hello All,

      I am sorry if this had been posted before (i did not find it if it was). And this is also a very noob question. Is there a way to set a custom description in the DHCP lease list? The reason for this questions is in our environment we use quite a large number of wireless manufacturing devices that do not send hostnames and it is not feasible to keep a list of mac addresses of known/authorized devices(<4k).

      Any advise would be greatly appreciated.

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

        The only way that I know is to select the device for static mapping, then you can change the hostname to whatever you want.

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

          .... and these "Static DHCP MAC" becomes what is called a 'list' ;)

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

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

            I am not sure I am clear on what your asking? Is this what you mean?

            Example - I have a bunch of smart lightbulbs.. They all report a name of wlan0

            Its not very helpful I agree.. Which one is which is the question.

            So I set them all to have reservation in dhcp.. And give them a hostname in the reservation, now I can access them via their fqdn, I can resolve this IP to their name.. etc. etc. So I know exactly which device is what

            names.png

            It was a bit of a pain to setup, matching which mac was which device. But it was a 1 time thing.. Is this what your asking about? While I don't have all that many so just did by hand - looking in app for which light was which based on mac, I then edited the reservations to set the hostname..

            $ dig d1.local.lan +short
            192.168.4.51
            
            $ dig -x 192.168.4.51 +short
            D1.local.lan.
            

            If you had a lot of them - and had some listing of which is which, you could manipulate the xml and then restore it vs having to manual edit each one via the gui.

            And sure you could set a description on your reservation if you wanted, but the actual hostname I think is more useful..

            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.