openwrt / luci

LuCI - OpenWrt Configuration Interface
Apache License 2.0
6.39k stars 2.54k forks source link

Web interface doesn't allow to set `option dhcpv4 'server'` when using odhcp #7404

Open larskotthoff opened 13 hours ago

larskotthoff commented 13 hours ago

Is there an existing issue for this?

screenshots or captures

No response

Actual behaviour

When setting up the DHCP server for an interface, there's no way to specify option dhcpv4 'server' when using odhcp. This results in the default value being used, which disables the DHCP server for the interface.

Expected behaviour

UI allows to set the option.

Steps to reproduce

  1. Switch to odhcp.
  2. Create a new interface and enable DHCP for it (default options ok).
  3. Send a DHCP discover on that interface... and get nothing back.

Additional Information

23.05.0

What browsers do you see the problem on?

No response

Relevant log output

No response

systemcrash commented 9 hours ago

You mean -S here?: https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html

That is covered in the init file. Although where would it go? Under DHCP or in the interface section?

larskotthoff commented 8 hours ago

No, this is when not using dnsmasq but odhcp instead. The missing option should be in the interface section.