[Dnsmasq-discuss] Some leases not written to leases file

Ryan Gray ryantgray at gmail.com
Wed Sep 30 18:58:42 BST 2020


Greetings,

While handing out what amounts to static IPs to devices based on the Option
82 sub-option 6 - subscriber-id.

A single device's Dnsmasq config looks like this:

## Management IP for John Doe
dhcp-subscrid=set:"switch1/1/1/1","switch1/1/1/1"
dhcp-range=tag:"switch1/1/1/1",tag:!internet_pool,192.168.127.200,192.168.127.200,255.255.255.0,1800
dhcp-option=tag:"switch1/1/1/1",tag:!internet_pool,3,192.168.127.254
dhcp-option=tag:"switch1/1/1/1",tag:!internet_pool,1,255.255.255.0
dhcp-option=tag:"switch1/1/1/1",tag:!internet_pool,5,8.8.8.8
dhcp-option=tag:"switch1/1/1/1",tag:!internet_pool,6,8.8.8.8
dhcp-option=tag:"switch1/1/1/1",tag:!internet_pool,67,ont_profiles/zhone/S04.01.223/S0401223

This works. However, these leases are not recorded in the lease file. The
dhcp-script script runs an "add" when these leases are started and
everything seems to behave correctly.

I just don't understand why these leases are not in the lease file.

Any ideas or insight would be super appreciated!

Regards,
Ryan Gray
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20200930/f8444f8c/attachment.html>


More information about the Dnsmasq-discuss mailing list