DHCP - Dnsmasq vs DHCPD

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2, 3  Next
Author Message
Megrez7
DD-WRT User


Joined: 25 Aug 2019
Posts: 88

PostPosted: Thu May 25, 2023 10:10    Post subject: DHCP - Dnsmasq vs DHCPD Reply with quote
Since we have Dnsmasq as a DHCP server instead of DHCPD for long time now:

"Since changeset 39350, udhcpd has been removed and DNSMasq is the only DHCP server in dd-wrt"
https://wiki.dd-wrt.com/wiki/index.php/DNSMasq_as_DHCP_server

What is the role of DHCPD section at the bottom of Networking.asp?

That seems to be confusing.
Sponsor
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1856
Location: Hung Hom, Hong Kong

PostPosted: Thu May 25, 2023 10:24    Post subject: Re: DHCP - Dnsmasq vs DHCPD Reply with quote
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!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
Megrez7
DD-WRT User


Joined: 25 Aug 2019
Posts: 88

PostPosted: Thu May 25, 2023 10:34    Post subject: Reply with quote
Have seen this explanation as well, but GUI at the bottom of Networking.asp clearly says "Multiple DHCP Servers" and allows to set it up.

Why not Dnsmasq for multiple servers is used then?
Mile-Lile
DD-WRT Guru


Joined: 24 Feb 2013
Posts: 1634
Location: Belgrade

PostPosted: Thu May 25, 2023 10:51    Post subject: Reply with quote
it's cosmetic... sebastian didn't changed it...
Megrez7
DD-WRT User


Joined: 25 Aug 2019
Posts: 88

PostPosted: Thu May 25, 2023 11:35    Post subject: Reply with quote
Do you mean it is server but using Dnsmasq?
Or only a client for WAN connections?

Shall I create a new ticket in svn?
Mile-Lile
DD-WRT Guru


Joined: 24 Feb 2013
Posts: 1634
Location: Belgrade

PostPosted: Thu May 25, 2023 11:53    Post subject: Reply with quote
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
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1856
Location: Hung Hom, Hong Kong

PostPosted: Thu May 25, 2023 12:29    Post subject: Reply with quote
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. Smile

ISC DHCP - ISC
https://www.isc.org/dhcp/

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!! Smile

https://github.com/changmw/changmw/tree/master/linux/compile.packages

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1927

PostPosted: Thu May 25, 2023 15:34    Post subject: Reply with quote
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

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
Megrez7
DD-WRT User


Joined: 25 Aug 2019
Posts: 88

PostPosted: Thu May 25, 2023 16:53    Post subject: Reply with quote
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.
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1927

PostPosted: Thu May 25, 2023 17:46    Post subject: Reply with quote
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

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1856
Location: Hung Hom, Hong Kong

PostPosted: Fri May 26, 2023 6:08    Post subject: Reply with quote
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:  1410 Time(s)

networking.box.jpg



_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1927

PostPosted: Fri May 26, 2023 7:16    Post subject: Reply with quote
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

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1856
Location: Hung Hom, Hong Kong

PostPosted: Fri May 26, 2023 7:22    Post subject: Reply with quote
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". Smile

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1927

PostPosted: Fri May 26, 2023 7:28    Post subject: Reply with quote
"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

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
Gameman Advanced Kid
DD-WRT Guru


Joined: 18 Nov 2012
Posts: 1158

PostPosted: Fri May 26, 2023 7:34    Post subject: Reply with quote
I got a better one. "Additional DHCP Servers"
_________________
For people who are new to the dd-wrt forums >> http://www.catb.org/~esr/faqs/smart-questions.html#rtfm

barryware wrote:
It takes a "community" to raise a router..


Internet Connection 1
Some Techicolor modem > Linksys WRT3200ACM

Internet connection 2
Ubiquiti Powerbeam Gen 2 > Netgear R9000

Official (but not really) dd-wrt General Discussion element/matrix chat

https://matrix.to/#/#dd-wrt-private-non-offical:matrix.org
Goto page 1, 2, 3  Next Display posts from previous:    Page 1 of 3
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