FDi wrote: > Hello *, > > I noticed dnsmasq supports associating multiple hardware addresses to a > single IP-Address by a config line like this: > > "dhcp-host=11:22:33:44:55:66,12:34:56:78:90:12,192.168.0.60" > > However, if your using /etc/ethers and try to achieve the same, like > this: > > /etc/ethers: > 11:22:33:44:55:66 laptop > 12:34:56:78:90:12 laptop > > /etc/hosts: > 192.168.0.60 laptop.home laptop > > You get: > dnsmasq-dhcp[7373]: ignoring /etc/ethers line 1, duplicate name or IP > address > dnsmasq-dhcp[7373]: ignoring /etc/ethers line 2, duplicate name or IP > address > > Any ideas how to neatly solve this? I'd hate to have to add exceptions > for all my laptops to dnsmasq.conf. Having the adapters HW addresses in > multiple files is such a pain when upgradings things.
You can't solve it using /etc/ethers. The format and semantics of that file are standardised and dnsmasq can't change it. What you need to do is this: stop using /etc/ethers, and instead use --dhcp-hostsfile to read an equivalent file in dhcp-host format, that file can include lines with multiple MAC addresses in 11:22:33:44:55:66,12:34:56:78:90:12,192.168.0.60 HTH Simon. > > _______________________________________________ > Dnsmasq-discuss mailing list > Dnsmasq-discuss@lists.thekelleys.org.uk > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss >