<div dir="ltr">Re-sending after temporarily subscribing</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Feb 11, 2016 at 4:11 PM Michael Evans <<a href="mailto:mjevans1983@gmail.com">mjevans1983@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">My goal is to have dnsmasq serve DHCP leases on an interface, either for static addresses (either within that interface's very large subnet mask)<div><br></div><div><div>71: eth1@if72: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000</div><div>    link/ether de:ad:be:af:f0:0d brd ff:ff:ff:ff:ff:ff</div><div>    inet <a href="http://10.0.0.2/16" target="_blank">10.0.0.2/16</a> brd 10.0.255.255 scope global eth1</div><div>       valid_lft forever preferred_lft forever</div><div>    inet6 fe80::dcad:beff:feaf:f00d/64 scope link</div><div>       valid_lft forever preferred_lft forever</div></div><div><br></div><div><br></div><div>Using a config-dir entry (which is scanned according to the ranges)</div><div><br></div><div><br></div><div><div>interface=eth1</div><div>expand-hosts</div><div><br></div><div>dhcp-leasefile=/var/lib/misc/dnsmasq.leases</div><div><br></div><div>domain=<a href="http://example.com" target="_blank">example.com</a>,<a href="http://10.0.0.0/16,local" target="_blank">10.0.0.0/16,local</a></div><div><br></div><div>dhcp-range=10.0.4.1,10.0.8.250,255.255.0.0,1h</div><div>dhcp-range=tag:staticdhcp,10.0.0.0,static,255.255.0.0,1h</div><div><br></div><div># dhcp-options slipped for brevity</div><div><br></div><div>dhcp-host=de:ad:be:ef:55:55,id:*,10.0.0.10 # ,hnstatic,infinite<br></div></div><div><br></div><div><br></div><div>Yet the offered address is from the dynamic range.</div><div><br></div><div><br></div><div><div>Feb 12 00:09:00 testDnsmasq dnsmasq[312]: started, version 2.72 cachesize 150</div><div>Feb 12 00:09:00 testDnsmasq dnsmasq[312]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect</div><div>Feb 12 00:09:00 testDnsmasq dnsmasq-dhcp[312]: DHCP, static leases only on 10.0.0.0, lease time 1h</div><div>Feb 12 00:09:00 testDnsmasq dnsmasq-dhcp[312]: DHCP, IP range 10.0.4.1 -- 10.0.8.250, lease time 1h</div><div>Feb 12 00:09:00 testDnsmasq dnsmasq[312]: using local addresses only for domain 0.10.in-addr.arpa</div><div>Feb 12 00:09:00 testDnsmasq dnsmasq[312]: reading /etc/resolv.conf</div><div>Feb 12 00:09:00 testDnsmasq dnsmasq[312]: using local addresses only for domain 0.10.in-addr.arpa</div><div>Feb 12 00:09:00 testDnsmasq dnsmasq[312]: using nameserver 192.168.1.1#53</div><div>Feb 12 00:09:00 testDnsmasq dnsmasq[312]: read /etc/hosts - 4 addresses</div><div>Feb 12 00:09:00 testDnsmasq systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.</div><div>Feb 12 00:09:06 testDnsmasq dnsmasq-dhcp[312]: 2573025057 available DHCP range: 10.0.4.1 -- 10.0.8.250</div><div>Feb 12 00:09:06 testDnsmasq dnsmasq-dhcp[312]: 2573025057 available DHCP subnet: <a href="http://10.0.0.0/255.255.0.0" target="_blank">10.0.0.0/255.255.0.0</a></div><div>Feb 12 00:09:06 testDnsmasq dnsmasq-dhcp[312]: 2573025057 client provides name: testStatic</div><div>Feb 12 00:09:09 testDnsmasq dnsmasq-dhcp[312]: 2573025057 DHCPDISCOVER(eth1) de:ad:be:af:55:55</div><div>Feb 12 00:09:09 testDnsmasq dnsmasq-dhcp[312]: 2573025057 tags: eth1</div><div>Feb 12 00:09:09 testDnsmasq dnsmasq-dhcp[312]: 2573025057 DHCPOFFER(eth1) 10.0.7.62 de:ad:be:af:55:55</div><div>Feb 12 00:09:09 testDnsmasq dnsmasq-dhcp[312]: 2573025057 requested options: 1:netmask, 28:broadcast, 2:time-offset, 3:router,</div><div>Feb 12 00:09:09 testDnsmasq dnsmasq-dhcp[312]: 2573025057 requested options: 15:domain-name, 6:dns-server, 119:domain-search,</div><div>Feb 12 00:09:09 testDnsmasq dnsmasq-dhcp[312]: 2573025057 requested options: 12:hostname, 44:netbios-ns, 47:netbios-scope,</div><div>Feb 12 00:09:09 testDnsmasq dnsmasq-dhcp[312]: 2573025057 requested options: 26:mtu, 121:classless-static-route, 42:ntp-server</div><div>Feb 12 00:09:09 testDnsmasq dnsmasq-dhcp[312]: 2573025057 next server: 10.0.0.2</div><div>Feb 12 00:09:09 testDnsmasq dnsmasq-dhcp[312]: 2573025057 sent size:  1 option: 53 message-type  2</div><div>Feb 12 00:09:09 testDnsmasq dnsmasq-dhcp[312]: 2573025057 sent size:  4 option: 54 server-identifier  10.0.0.2</div><div>Feb 12 00:09:09 testDnsmasq dnsmasq-dhcp[312]: 2573025057 sent size:  4 option: 51 lease-time  1h</div><div>Feb 12 00:09:09 testDnsmasq dnsmasq-dhcp[312]: 2573025057 sent size:  4 option: 58 T1  30m</div><div>Feb 12 00:09:09 testDnsmasq dnsmasq-dhcp[312]: 2573025057 sent size:  4 option: 59 T2  52m30s</div><div>Feb 12 00:09:09 testDnsmasq dnsmasq-dhcp[312]: 2573025057 sent size:  4 option: 28 broadcast  10.0.255.255</div><div>Feb 12 00:09:09 testDnsmasq dnsmasq-dhcp[312]: 2573025057 sent size:  4 option:  6 dns-server  10.0.0.2</div><div>Feb 12 00:09:09 testDnsmasq dnsmasq-dhcp[312]: 2573025057 sent size: 11 option: 15 domain-name  <a href="http://example.com" target="_blank">example.com</a></div><div>Feb 12 00:09:09 testDnsmasq dnsmasq-dhcp[312]: 2573025057 sent size:  2 option: 26 mtu  9000</div><div>Feb 12 00:09:09 testDnsmasq dnsmasq-dhcp[312]: 2573025057 sent size:  4 option:  3 router  10.0.0.1</div><div>Feb 12 00:09:09 testDnsmasq dnsmasq-dhcp[312]: 2573025057 sent size:  4 option:  1 netmask  255.255.0.0</div><div>Feb 12 00:09:09 testDnsmasq dnsmasq-dhcp[312]: 2573025057 available DHCP range: 10.0.4.1 -- 10.0.8.250</div><div>Feb 12 00:09:09 testDnsmasq dnsmasq-dhcp[312]: 2573025057 available DHCP subnet: <a href="http://10.0.0.0/255.255.0.0" target="_blank">10.0.0.0/255.255.0.0</a></div><div>Feb 12 00:09:09 testDnsmasq dnsmasq-dhcp[312]: 2573025057 client provides name: testStatic</div></div><div><br></div><div><br></div><div>What am I doing incorrectly?  How should the configuration file look?<br></div></div></blockquote></div>