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#2056 - odhcp misbehaves with multiple MACs for single host on DHCP configuration #6928

Open
openwrt-bot opened this issue Jan 12, 2019 · 0 comments
Labels

Comments

@openwrt-bot
Copy link

dllud:

According to the [[https://openwrt.org/docs/guide-user/base-system/dhcp_configuration#static_leases|Static Leases section on DHCP's User Guide]] it should be possible to list several MAC addresses for the same host. Indeed everything works as expected with dnsmasq, and my host gets the expected IPv4 when using any of the listed MAC addresses.

However odhcp misbehaves when I list more than one MAC. With a single MAC on 'option mac', my host gets the expected IPv6, with the suffix defined under hostid. If I place two or more MACs on that option, odhcp fails to honor my rules and attributes a dynamic IPv6 with a random suffix.

Here is an example config that produces the erroneous behavior of odhcp.

config host option name 'host4' option ip '192.168.1.4' option hostid '4' option duid '00112233445566778899' option mac '00:11:22:33:44:55, 66:77:88:99:aa:bb'

(Separating the MACs list with either commas and spaces yields the same result. The DHCP User's Guide has contradictory info on how the list should be separated, but it seems that both work for dnsmasq.)

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