luci icon indicating copy to clipboard operation
luci copied to clipboard

luci-mod-network with multiple dnsmasq sections (static lease and dhcp leases separated for each section)

Open andreagiaquinto opened this issue 5 months ago • 1 comments

Is there an existing issue for this?

  • [x] I have searched among all existing issues (including closed issues)

screenshots or captures

Hello, luci-mod-network with multiple dnsmasq sections should handle correctly also static lease and dhcp leases separated for each section. At moment I can see the same static lease list on every section and one dhcp leases only on first dhcp instance.

Kind Regards Andrea

Actual behaviour

  1. not possible to create static lease list one for each instance.
  2. I see only one dhcp leases list related to first instance.

Expected behaviour

  1. I should be able to add static lease separated for each instance.
  2. I should see separated dhcp leases one list for each instance,.

Steps to reproduce

  1. create interface lan with dhcp enable (ip 192.168.1.1).
  2. create interface guest with dhcp enable (ip 192.168.10.1).
  3. create "dhcp and dns" instance named "landns".
  4. create "dhcp and dns" instance named "guestdns"
  5. add one device on lan network.
  6. add one device on guest network.

Additional Information

{
	"kernel": "6.6.100",
	"hostname": "minipc",
	"system": "Intel(R) Core(TM) i3-N305",
	"model": "MINIROUTE CM-R1",
	"board_name": "default-string-default-string",
	"rootfs_type": "squashfs",
	"release": {
		"distribution": "OpenWrt",
		"version": "24.10-SNAPSHOT",
		"revision": "r29257-fb52b7e9d3",
		"target": "x86/64",
		"description": "OpenWrt 24.10-SNAPSHOT r29257-fb52b7e9d3",
		"builddate": "1755463866"
	}
}

What browsers do you see the problem on?

No response

Relevant log output


andreagiaquinto avatar Aug 18 '25 14:08 andreagiaquinto

You're correct. There's a field called 'instance' - it could be fixed to bind that e.g. lease to that instance at creation time. Unbound leases apply across all dnsmasq 'instances'.

systemcrash avatar Aug 18 '25 16:08 systemcrash