Naming Mac Addresses

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
hotwiredd
DD-WRT Novice


Joined: 20 Jan 2017
Posts: 6

PostPosted: Sat Jan 21, 2017 21:53    Post subject: Naming Mac Addresses Reply with quote
Hi, I would like to know is there, or will there be, a feature in the Kong Mod dd-wrt.K3_R8000_4 GUI that will allow the user to give alias names to mac addresses for easier identification?

Thanks in Advance for any info on this.
Sponsor
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6820
Location: UK, London, just across the river..

PostPosted: Sat Jan 21, 2017 22:55    Post subject: Reply with quote
you generally do it in services just below the settings for
DHCP Server you will see few lines and Static Leases just below there is a button Add click it Smile

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 58184 WAP
TP-Link WR1043NDv2 -DD-WRT 60791 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 61202 Gateway/DoT,Forced DNS,AP Isolation,2VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 61202 Gateway/DNSCryptv2,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 60791 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Dynalink DL-WRX36-DDWRT 60791
Broadcom
Netgear R7000 --DD-WRT 60742 Gateway/DNScrypt-proxy2/AD-Block,IPset Firewall,Forced DNS,x4VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
hotwiredd
DD-WRT Novice


Joined: 20 Jan 2017
Posts: 6

PostPosted: Sat Jan 21, 2017 23:46    Post subject: Reply with quote
Ahhh Ok, Gotit! Thank You Very Much For The Help Alozaros.

Smile
bpmartin20
DD-WRT Novice


Joined: 29 Jan 2018
Posts: 5

PostPosted: Mon Jan 29, 2018 19:01    Post subject: Doesn't work in router mode Reply with quote
The above solution only works if you're using the internal DD-WRT DHCP. I have two APs operating in "router" mode, with DHCP services provided elsewhere on the network segment. I would imagine that is a common configuration.

In that case, it would still be helpful to be able to optionally display a reference name instead of the MAC address on the bottom of the sys-info page. I can't always remember which MAC is my wife's phone and which is the tablet, so having them labeled would help me assess their status at a glance if she's having problems connecting. The same would be true at my client sites - knowing the status of the boss's device at glance makes me look better than having to borrow their phone to find the MAC address again.
bpmartin20
DD-WRT Novice


Joined: 29 Jan 2018
Posts: 5

PostPosted: Wed Jan 31, 2018 6:06    Post subject: Reply with quote
Thank you for the response.

That could be really useful, but it's not quite working as I expected. I enabled dnsmasq, which allowed me to enter the entries in the format you described in the "Additional DNSMasq Options" (not "Additional DHCPd Options" above). I saved and applied my settings. I then visited Status->Sys Info. Initially no clients were present, so I connected with one of the devices I'd given a name to, but it still appears on this screen as a MAC. No change after I rebooted. I logged in via SSH to rummage around a bit, and found /tmp/dnsmasq.conf contained my new entries along with other configuration directives. Did I fail to follow instructions, or did you solve a different problem than the one I was expecting?
bpmartin20
DD-WRT Novice


Joined: 29 Jan 2018
Posts: 5

PostPosted: Wed Jan 31, 2018 6:29    Post subject: Reply with quote
Thanks, d0ug. In that case, I'd like to suggest it as a low priority enhancement request. It's not vital in any fashion, but many might find it helpful. It could be as simple as reading the same configuration file dnsmasq uses, and translating the MACs to host names where a match is found. Perhaps a pair of radio buttons would be required somewhere to enable/disable translation for folks that do or don't want it.
ktwo
DD-WRT Novice


Joined: 29 Dec 2007
Posts: 26
Location: Maryland, USA

PostPosted: Fri Apr 12, 2019 1:40    Post subject: Reply with quote
eibgrad wrote:

Because I find it a hassle to manage large numbers of static leases via the GUI (esp. when it comes time to upgrade the firmware), I don't bother w/ it, but instead add my own dhcp-host directives directly to the Advanced DNSMasq Options field on the Services tab. Or I'll place them in a file (e.g., /jffs/dnsmasq.custom) and add the following directive instead.

Code:
conf-file=/jffs/dnsmasq.custom




How do you place the file in the jffs folder? I can't seem to ftp any file to my router since it seems the whole file system is read only. And I can't change the folder or file permissions. I'm logging in with the root account.

When I try to transfer a file I get the following error: "Open for write: failure"

Thx
-K2
ktwo
DD-WRT Novice


Joined: 29 Dec 2007
Posts: 26
Location: Maryland, USA

PostPosted: Fri May 03, 2019 12:31    Post subject: Reply with quote
eibgrad wrote:


Did you enable JFFS on the Administration page? That's what allocates storage for the /jffs folder. And now you should be able to upload a file to that directory using something like WinSCP.



Thanks for the info. Got a little distracted after I posted my question with getting a Raspberry Pi up and running with Pi-Hole to be my DNS and black hole all the ads. Just got it running and seems to be working well on one machine. May expand it to the whole network this weekend.

I did try putting the 'dhcp-host= ....' command for a single host (my desktop) in the 'Additional DNSMasq Options' field. If I remember correctly I lost any ability to resolve names. So obviously I took it out. Will retry to make sure I didn't fat finger something. Then I'll move on to a broader list.

One more question - will this approach work if I have another device serving as the DHCP server? I have Dojo security device that I've been trying to make work (that's another whole story) and it's approach is that it becomes the DHCP server for the network and uses whatever special sauce it has to 'secure' your network. I don't care who's fulfilling DHCP requests, just really want to quit having to keep a list of MAC addresses next to my computer.

Thx
-K2
ktwo
DD-WRT Novice


Joined: 29 Dec 2007
Posts: 26
Location: Maryland, USA

PostPosted: Fri May 03, 2019 18:14    Post subject: Reply with quote
eibgrad wrote:

Not sure what happened. But as a matter of course, whenever I define static leases in this fashion, I also add a host-record directive for the same device.


I'm not trying to manage static leases - just associate a MAC address with a name so it's easier to see what devices are on my network.

I've managed to get two entries working by copying the 'dhcp-host=<MAC>,devicename' in to the DNSMasq options. When I try my whole list (12 devices) OR try the /jffs/dnsmasq.conf approach any dhcp clients can't connect to the internet. I thought maybe because I had a space in the device name but that wasn't it. Is there a max number of characters that can be in the device name perhaps? I have one name with 18 characters. Perhaps a testing scenario where I take one entry that works and increase the character count to see where/if it breaks is in order.

Perhaps, given your comment about how current (or not) DD-WRT support is for DNSMasq perhaps my next step should be to get a version of DD-WRT that is more current than the two year old one I have now.

Thanks for your help. Going a bit 'above and beyond' for someone who doesn't even run DD-WRT anymore.

-K2
noisytrain
DD-WRT Novice


Joined: 25 Mar 2025
Posts: 1

PostPosted: Tue Mar 25, 2025 14:05    Post subject: Re: Naming Mac Addresses Reply with quote
This would help me too! I manage a rather large list of MAC addresses on my QOS tab and I have to have a google sheet open detailing which MAC address is which in order to navigate the list. Razz



hotwiredd wrote:
Hi, I would like to know is there, or will there be, a feature in the Kong Mod dd-wrt.K3_R8000_4 GUI that will allow the user to give alias names to mac addresses for easier identification?

Thanks in Advance for any info on this.
Vercety
DD-WRT User


Joined: 04 May 2024
Posts: 77

PostPosted: Wed Mar 26, 2025 17:50    Post subject: Reply with quote
Is these means if i would like to rename insted of mac address devices name to do things: Make dhcp device non modem but any ddwrt router? all other is easy.. i could understand...

Can it be done in AP router in clients connected on wifi? Am owner of all my devices offcourse i though to do that on my ap s.. Some wifi devices are low rated stock like wifi plugs but have big act in routers about things and turn off and on. But dont have custom host option or if it does shows only in dhcp list in modem not in radioname host option in wifi ap router.

And am not sure that i will change defould and only dhcp server in lan like its should be by any defoult.
https://i.imgur.com/O1wQXcu.jpeg like these
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 16020
Location: Texas, USA

PostPosted: Wed Mar 26, 2025 17:58    Post subject: Reply with quote
So, we cross-post bump a thread that is missing information because of an error of my own doing Embarassed

This can be accomplished on the Services -> Services tab, and you can add each device connected via wired or wifi by using the "+" button under DHCP clients on the Status -> LAN tab. This may or may not be possible on a device configured as a Wired Access Point.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
RSS feed for DD-WRT releases (2025)
RSS feed for DD-WRT releases (2024)
RSS feed for DD-WRT releases (2023)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum