Why don't al DHCP hosts show up under "DHCP Clients&quo

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> General Questions
Author Message
Fried Chicken
DD-WRT User


Joined: 12 Jun 2019
Posts: 109

PostPosted: Sat May 14, 2022 7:39    Post subject: Why don't al DHCP hosts show up under "DHCP Clients&quo Reply with quote
In the status page, I have a computer connected, working, pingable, etc. It has an assigned IP address, everything is working fine, but it doesn't show up under "DHCP Clients".

Also many hostnames are left blank. I've chalked this up to some inherent way DHCP works, but it doesn't make sense to me. Shouldn't by necessity every active client have its IP address and hostname listed?

_________________
So you’re a DD-WRT Expert? Figure this out: https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1168315
Sponsor
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 1258
Location: Germany

PostPosted: Sat May 14, 2022 8:03    Post subject: Reply with quote
Only devices that have received DHCP data since the last reboot are displayed under DHCP Clients.

Clients that may not have received any data:

* manually configured clients that do not use DHCP
* clients using DHCP reservation (without lease expiration)
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 3872

PostPosted: Sat May 14, 2022 9:10    Post subject: Reply with quote
Computer has previous lease information, router forgot after reboot.

Reconnect or reboot your computer and it should show up in the list.

The nature of embedded devices at least until lease expires, renews.
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 672
Location: All over YOUR webs

PostPosted: Sat May 14, 2022 9:12    Post subject: Reply with quote
Not my experience, see https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1262405#1262405

I then set static leases with an expiry of 15 minutes for these missing devices, rebooted the devices (NAS boxes), this should have triggered a DHCP request from devices and it did, and even after this, not all devices reliably show, I still had missing devices that didn't show up even after accessing them and sending data/receiving data.

These are all wired devices.

Rebooting dd-wrt and devices (power cycle) still same, not all show up, its a random bag of fun.

The only one that reliably shows up is the first static IP assignment and non expiring lease, which is my main dev machine. Also all wifi devices will show up (non expireing leases), but wired YMMV no matter if lease expires.

Dnsmasq afaik is a test version daemon.info dnsmasq[22957]: started, version 2.87test8 cachesize 1500 so this could have some influence on the reliability.

Im running latest 48865, I remember much older builds that always showed all devices without fail, so clearly bugs were introduced upstream, on the project (which is not developed by dd-wrt.

In the meanwhile, tumbleweeds.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)


Last edited by the-joker on Sat May 14, 2022 9:29; edited 1 time in total
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 1258
Location: Germany

PostPosted: Sat May 14, 2022 9:28    Post subject: Reply with quote
So that clients with DHCP reservation are not shown under "DHCP clients" is already quite a few years (I can't remember that it was ever different!).

and with me it works exactly as I have described it above.

I just have to log in to such a client and restart the network and suddenly the client is displayed again.

Code:
/etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
Reconfiguring network interfaces...
udhcpc started
No resolv.conf for interface eth0.udhcpc
Sending discover...
Sending select for 192.168.1.109...
Lease of 192.168.1.109 obtained, lease time 268435455
/etc/udhcpc.d/50default: Adding DNS 192.168.1.1


no problems here!



7945645925.jpg
 Description:
 Filesize:  12.73 KB
 Viewed:  89 Time(s)

7945645925.jpg


the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 672
Location: All over YOUR webs

PostPosted: Sat May 14, 2022 9:34    Post subject: Reply with quote
It use to work fine, I remember this was not an issue, but since at least this year, it started going flaky, perhaps even the last builds from 2021.

Its not a stable release of the dnsmasq anyway... This is the culprit, need to check upstream for bug reports

https://www.mail-archive.com/dnsmasq-discuss@lists.thekelleys.org.uk/ pff, whos got time for that?

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
kernel-panic69
DD-WRT Guru


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

PostPosted: Sat May 14, 2022 10:47    Post subject: Reply with quote
Haven't bothered to see if any post test8 upstream commits have been applied, but.

https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=summary

_________________
Official Forum Rules, Guidelines & Helpful InformationFirmware FAQInstallation WikiWhere Do I Download Firmware‽
DON'T use Chromium-based browsersRTFM/STFW TL;DR is NOT an excuse. • Why Should I Care What Color the Bikeshed Is‽
Please DO NOT PM me with questions; Ask in the forum. ---------------------- 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 Forum Index -> General Questions 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