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#2484 - dnsmasq UCI configuration dhcp.@host[n].ip needs to be optional #8309

Closed
openwrt-bot opened this issue Sep 7, 2019 · 1 comment
Labels

Comments

@openwrt-bot
Copy link

dnsm:

UCI configuration
dhcp.@host[n].ip needs to be optional.

According to http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html . dhcp-host isn't just for static leases, it can be used to specify lease time, hostname etc, so IP isn't mandatory. Their example is "For example --dhcp-host=00:20:e0:3b:13:af,wap,infinite tells dnsmasq to give the machine with hardware address 00:20:e0:3b:13:af the name wap, and an infinite DHCP lease."

OpenWrt currently ignores dhcp.@host[n], if IP isn't provided. https://openwrt.org/docs/guide-user/base-system/dhcp#static_leases

@openwrt-bot
Copy link
Author

dedeckeh:

dhcp.@host[0]=host
dhcp.@host[0].name='wap'
dhcp.@host[0].leasetime='infinite'
dhcp.@host[0].mac='00:20:e0:3b:13:af'

Contents in /var/etc/dnsmasq.conf.cfg01411c :

dhcp-host=00:20:e0:3b:13:af,wap,infinite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant