Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#1137 - dnsmasq static hosts configuration should support client-id #6061

Open
openwrt-bot opened this issue Nov 1, 2017 · 0 comments
Open
Labels
core packages pull request/issue for core (in-tree) packages flyspray

Comments

@openwrt-bot
Copy link

irichter:

By design, dnsmasq does not assume that two requests from the same source MAC address are for the same client if their client-id is different. Put another way, the requester is effectively identified by a <MAC,client-id> pair. This is discussed in the dnsmasq FAQ [[http://www.thekelleys.org.uk/dnsmasq/docs/FAQ]] under the question "I'm network booting my machines, and trying to give them static DHCP-assigned addresses..."

As a result, a machine that has been assigned a static address, which first requests an IP address without sending a client-id, and later makes a request with a client-id, will not be given the assigned static IP in response to the subsequent request. (The static IP will bind to the initial <MAC,client-id> pair with the null client-ID.)

To resolve this, one of the following options could be implemented:

  • Mention the problem in the documentation, and advise the user to append ",id:*" to the MAC address if they run into this issue. (This will cause issues for luci users because this will be considered a malformed MAC address, and luci will refuse to save changes.)
  • The dnsmasq init script could always insert ",id:*" immediately after the mac address on the generated dhcp-host configuration line.
  • The dhcp.host entry could be extended with an "allow-any-client-id" or "ignore-client-id" boolean, which, if selected, would cause ",id:*" to be inserted as above.
  • The dhcp.host entry could be extended with an optional "client-id" field, which would allow an explicit DHCP client-id to be set for the host. That ID could be used instead of or in addition to the existing "mac" entry. Semantics would need to be defined to make sure that the handling is well-defined.

Whichever option is chosen, the documentation should be updated. If an entry is added to the dhcp.host schema, bugs should be filed on other DHCP server packages (e.g.: isc-dhcp-server-ipv4) so that they can also implement the new functionality.

@aparcar aparcar added the core packages pull request/issue for core (in-tree) packages label Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core packages pull request/issue for core (in-tree) packages flyspray
Projects
None yet
Development

No branches or pull requests

2 participants