Hello,
Is there a simple solution for assigning different static IP for the same MAC host basing on network it is connected to?
For example there is a wlan 192.168.1.0/24 and wlan2 192.168.2.0/24, I'd like the host to get static IP 192.168.1.10 when connected to lan and 192.168.2.10 when connected to lan2.
There probably could be two dhcp host entries, each using different 'instance' parameter to bound to specific dnsmasq. But this enforces 2nd dnsmasq instance which I don't need.
Is there any simpler way to classify which dhcp host entry to use?
config host
option dns '1'
option name 'vocore'
option mac 'b8:d8:12:xx:xx:xx'
option ip '10.0.2.4'
option hostid '4'
option leasetime '1d'
config host
option mac 'B8:D8:12:xx:xx:xx'
option name 'vocore-iot'
option dns '1'
option ip '172.30.30.4'