DHCP server not running when dnsmasq is used..

Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.)
Author Message
Oranda
DD-WRT Novice


Joined: 12 Sep 2016
Posts: 5

PostPosted: Wed Jun 20, 2018 16:10    Post subject: DHCP server not running when dnsmasq is used.. Reply with quote
I have a WRT1200 AC with DD-WRT ver 3.0-r30585M. Which I know is old. But before I have to update this one and the other one I am trying to get this one to work or verify it will work before I update firmware.

I am trying to have the router give an alternate gateway via dhcp. I have found the simple directions that say check the boxes for use DNSMasq for DHCP and DNS. I added the dhcp-option=br0,3,w.x.y.z .

I looked at the dnsmasq.conf file and see the line in there.

However when I have it setup this way the router status, sysinfo shows dhcp Enabled - stopped. I save, apply, reboot etc. Still nothing. If I uncheck the two boxes for DNSMasq dhcp works. However it gives the default ip of the router for the gateway. I see no way to give an alternate gateway without using DNSMasq.

Here is the dnsmasq file.
interface=br0
resolv-file=/tmp/resolv.dnsmasq
all-servers
strict-order
domain=8th
dhcp-leasefile=/tmp/dnsmasq.leases
dhcp-lease-max=10
dhcp-range=br0,192.168.168.201,192.168.168.210,255.255.255.0,1440m
local=8th
expand-hosts
dhcp-option=br0,3,192.168.168.1
dhcp-option=6,4.2.2.2,8.8.8.8
domain-needed


Any help is appreciated.
Sponsor
Oranda
DD-WRT Novice


Joined: 12 Sep 2016
Posts: 5

PostPosted: Wed Jun 20, 2018 17:07    Post subject: I think the issue is bad info. Reply with quote
I rebooted the router and looked at the dnsmasq.conf file again and there are two lines for dhcp-options=br0 lines as seen below.
interface=br0
resolv-file=/tmp/resolv.dnsmasq
all-servers
strict-order
domain=8th
dhcp-leasefile=/tmp/dnsmasq.leases
dhcp-lease-max=10
dhcp-option=br0,3,192.168.168.7
dhcp-range=br0,192.168.168.201,192.168.168.210,255.255.255.0,1440m
local=8th
expand-hosts
dhcp-option=br0,3,192.168.168.1
dhcp-option=6,4.2.2.2,8.8.8.8
domain-needed

In the GUI I see now where that this replication is happening. If I VI the /tmp/dnsmasq.conf file it just gets written over and adds the second line. I assume since the file is wrong, 2 dhcp-option=br0,3 lines the service fails.

Where can I manually edit the source file?
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.) 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 cannot attach files in this forum
You cannot download files in this forum