A bit surprised why OpenWRT isn´t automatically providing hostnames for the DHCP leases.
Before I used a stupid Telekom router and this one was providing automatically hostnames for most of the connected devices.
I can find similar questions but quite old already, so is there in the meanwhile a possibility to push OpenWRT to provide this information?
does your clients provide host names to the DHCP ?
Yes, I have maintained the hostnames wherever I could and these were displayed e.g. with the really old Telekom router I used before.
Hostnames maintained in tons of Tasmota switches I am using
that would be a no then ...
populate /etc/ethers
.
I have maintained the hostnames in each device not in the router.
Ok if it is not working in Open-WRT I have to maintain it manually.
Just why is it working in other routers, I mean Open-WRT is a powerful system, so ...
in that case, sniff the traffic, see if the name is passed on to the DHCP
Don't know how to do that sniff traffic, can I do it in Open-WRT?
Also in most of the cases when hostname wasn't displayed, it showed the producer of the devices, assuming there is a Mac address table inside the routers what allows at least a rough identification, can such not be implemented in Open-WRT?
Use tcpdump in Openwrt.
Have a look at How to obtain the type of the connected device? - #20 by RuralRoots.
It does but a reboot wipes them out since they are stored in /tmp/dhcp.leases
and by default /tmp
is in RAM to reduce flash wear. Can move the file someplace that persists between reboots like a USB drive, In Luci that is Network -> DHCP and DNS -> Resolv & Hosts Files -> Lease file, change to something like /mnt/sda1/tmp/dhcp.leases
.
Oh that sounds already promising!
When I install arp-scan-database, I cannot find any instructions
how to use that in Open-WRT,
Is any command required?
Is it automatically running?
where does it show me details it can discover, is it in /tmp/dhcp.leases?
Did you check that, this I will try