What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Dnsmasq static DHCP assignment help

Two Potatoe

New Around Here
I've been trying to get a list of static DHCP reservations into my AC-68U without any luck. My network is 192.168.0.1/16 and the DHCP range in the GUI is set as 192.168.3.1 to 192.168.3.254. I'm trying to add a bunch of reservations not in this range, as seen below.

Here is my dnsmasq.conf which is reading in the dnsmasq.conf.add without a problem. The host assignments aren't happening, though. The hosts specified are getting assigned from the range specified in the GUI and not the addresses given by dhcp-host. The static assignments in the file aren't being written into the ethers file either, while the static assignments made via the GUI are.

I've tried with and without the second dchp-range (see below), tried using addn-hosts, and tried using dhcp-hostsfile all to no avail. Does anyone have any experiences getting this to work? Any ideas?

Code:
pid-file=/var/run/dnsmasq.pid
user=nobody
bind-dynamic
interface=br0
interface=ppp1*
no-dhcp-interface=ppp1*
resolv-file=/tmp/resolv.conf
servers-file=/tmp/resolv.dnsmasq
no-poll
no-negcache
cache-size=1500
min-port=4096
dhcp-range=192.168.3.1,192.168.3.254,255.255.0.0,3600s
dhcp-option=lan,3,192.168.0.1
dhcp-option=lan,6,209.87.79.232,129.250.35.250
dhcp-option=lan,252,"\n"
dhcp-authoritative
read-ethers
dhcp-option=66,192.168.2.1
dhcp-range=192.168.2.1,static,255.255.255.0
dhcp-host=00:15:65:A1:04:EA,192.168.2.11,1AFG
...
dhcp-host=00:E0:66:EB:36:13,192.168.2.1,FreePBX-Server
 
Ok. Color me embarrassed. The problem was that all of the specified hosts had long leases. Once they expired, everything was right as rain.
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top