Is it possible to set static leases in DHCP and DNS (dnsmasq) to allow for two different fixed ip addresses to be assigned to the same MAC address?
I have a linux based box (Debian derivative) that has eth0 and what I suppose is an alias interface named xx@eth0. Both use the same Mac address. Both interfaces are set to get their IP addresses from DHCP.
I'm willing to set well defined known IP addresses to both interfaces, but have failed to do so. I first tried adding only one static lease via the GUI, which was accepted by Luci normally. Unfortunately, once I rebooted the linux system, it refused to get the IP address I set in DHCP and DNS as a static lease.
I then tried to manually edit /etc/config/dhcp and add two separate config host entries, the first with option IP '192.168.1.100' and the second with option IP '192.168.1.101'. Each config host entry was also set with the same option mac 'xx:xx:xx:xx:xx:xx' and each one got a unique option name ('name-x' and 'name-y'), respectively. I then restarted dnsmasq with /etc/init.d/dnsmasq restart and it restarted successfully.
But the linux box still refused to get the static ip leases as defined above.
Is it possible, at all, to set dnsmasq in OpenWRT to lease different ip addresses to different interfaces using the same mac address?