Joined: 26 Mar 2013 Posts: 1462 Location: Hung Hom, Hong Kong
Posted: Thu May 25, 2023 10:24 Post subject: Re: DHCP - Dnsmasq vs DHCPD
Megrez7 wrote:
Since we have Dnsmasq as a DHCP server instead of DHCPD for long time now:
....
What is the role of DHCPD section at the bottom of Networking.asp?
UN-OFFICIAL REPLY from me:
DNSmasq is for the LAN, distributing IP addresses to both wired and wireless(WLAN)!
DHCPd (or is it DHCP client?) is for the wired WAN port with the sole purpose of getting an IP address from yuor ISP! _________________ Router: Asus RT-N18U (rev. A1)
Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!
Joined: 24 Feb 2013 Posts: 1621 Location: Belgrade
Posted: Thu May 25, 2023 11:53 Post subject:
Megrez7 wrote:
Do you mean it is server but using Dnsmasq?
Or only a client for WAN connections?
Shall I create a new ticket in svn?
On a old version of ddwrt you had dhcpd (dhcp deamon) and dnsmasq... you could choose between those 2... dhcpd was not maintained so Sebastian removed it from ddwrt... for WAN dhcpc (client) from busybox is used... and for LAN dnsmasq is used in ddwrt nowdays...
dnsmasq can serve dhcp for multiple interfaces with different subnets... But dnsmasq couldn't do this in old days, so that is why dhcpd was needed...
naming that leftover (dhcpd) is wrong, you are right... but it is cosmetic... BS is aware of it but doesn't care much... he has more important things to do... so, my suggestion is not to write ticket until somebody write a patch... and i think it is trivial for someone that does http coding... then you could write ticket
Joined: 26 Mar 2013 Posts: 1462 Location: Hung Hom, Hong Kong
Posted: Thu May 25, 2023 12:29 Post subject:
Megrez7 wrote:
Do you mean it is server but using Dnsmasq?
Or only a client for WAN connections?
udhcpc (not DHCPd) is indeed still in DD-WRT for my Asus RT-N18U:
Code:
# cd /sbin
/sbin# ls -l *dhcp*
lrwxrwxrwx 1 root root 2 May 15 06:03 dhcp6c-state -> rc
lrwxrwxrwx 1 root root 14 May 15 06:03 udhcpc -> ../bin/busybox
root@RT-N18U:/sbin# which udhcpc
/sbin/udhcpc
I need to enable full logging to really confirm whether udhcpc in Busybox was being used. Not today. But Mile-Lile might be correct that it's not being used at all. So do not open a ticket so soon. It's just history. There are still old DD-WRT routers out there.
If your WAN was not getting IP address, enable logging in:
1. Services-> Services -> System Log
2. Security->Log Management
to get more information!
### ****************************
I suppose you are talking about ISC's DHCPd? I was using it as well in my old Caldera OpenLinux decades ago (yes, decades, 10x years). Possibly the only available DHCP server back then, long before DNSmasq was created. I didn't know about the birth of Busybox as well.
Back then my Pentium Caldera OpenLinux server was using ISC dhclient for the WAN (after I switched ISP from using rp-pppoe to dhcp), if my memory is correct... 100% not sure. It's decades ago!!
The udhcpd busybox applet was removed to save space, dnsmasq is the ONLY dhcp server in DD-WRT, whether the one on the Setup -> Basic Setup tab or Setup -> Networking tab (under multiple DHCP servers). ISC dhcpd has never been a part of the picture that I'm aware of. I don't see why this is so difficult to comprehend. _________________ "The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost
"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio
The labeling was not changed for a reason. You are splitting hairs that do not exist unless you cannot grasp that dnsmasq is the only DHCP server included in DD-WRT.
https://thekelleys.org.uk/dnsmasq/doc.html _________________ "The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost
"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio
Joined: 26 Mar 2013 Posts: 1462 Location: Hung Hom, Hong Kong
Posted: Fri May 26, 2023 6:08 Post subject:
Megrez7 wrote:
What is the role of DHCPD section at the bottom of Networking.asp?
That seems to be confusing.
Megrez7 wrote:
Therefore it would be valuable to fix GUI ambiguity on naming - it is about quality.
Yes, it is trivial, so probably makes sense even more.
I also suspect the whole bar housing "DHCPD" in Setup->Networking could just be removed. But you have to consider the historical reason why it was there.
networking.box.jpg
Description:
Filesize:
31.3 KB
Viewed:
359 Time(s)
_________________ Router: Asus RT-N18U (rev. A1)
Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!
Maybe we name it, "Guest Network(s)"? Or "Multiple Subnets"? I can't remember what we named it before someone decided to steal other peoples' work and pass it off as their own. _________________ "The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost
"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio
Joined: 26 Mar 2013 Posts: 1462 Location: Hung Hom, Hong Kong
Posted: Fri May 26, 2023 7:22 Post subject:
dale_gribble39 wrote:
Maybe we name it, "Guest Network(s)"? Or "Multiple Subnets"? I can't remember what we named it before someone decided to steal other peoples' work and pass it off as their own.
Or just change "DHCPD" to "Multiple DHCP Servers", then leave the box under it without a label.
Or change "DHCPD" to "Multiple DHCP Servers", then rename the box's label to "DNSmasq / DHCPd". _________________ Router: Asus RT-N18U (rev. A1)
Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!
"Guest Networks, IoT, and/or Multiple Subnets" FTW! _________________ "The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost
"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio