<div dir="ltr"><div>I ran into an issue with DHCP on DNSmsaq 2.85.</div><div><br></div><div>It's running on a host with two IP addresses on the same network.  The primary IP is .12 and the secondary is .10.  DNSmasq was put in place to replace a missing server (long story), so it was setup to listen on the missing server's IP of .10.</div><div><br></div><div>The DHCP Relay device was sending requests to DNSmasq at .10, but DNSmasq was replying to the request using the .12 IP address, which the DHCP relay device promptly ignored.</div><div><br></div><div>I tried fixing the problem using various combinations of "interface=" and "bind-interface", but the reply was always being sent using the primary IP (.12).  I finally reversed the primary and secondary IP addresses and the problem is fixed.</div><div><br></div><div>However, is there a proper way to fix this?</div><div>Or, is this a bug/limitation?</div><div><br></div><div>Config file and tcpdump capture below.</div><div><br></div><div>Thanks,</div><div>Brad</div><div><br></div><div>15:18:22.216760 IP 172.28.141.1.bootps > 172.28.8.10.bootps: BOOTP/DHCP, Request from xx:xx:xx:xx:xx:xx (oui Unknown), length 266<br>15:18:23.578420 IP 172.28.141.1.bootps > 172.28.8.10.bootps: BOOTP/DHCP, Request from xx:xx:xx:xx:xx:xx (oui Unknown), length 266<br>15:18:25.310501 IP 172.28.8.12.bootps > 172.28.141.1.bootps: BOOTP/DHCP, Reply, length 300<br>15:18:25.311037 IP 172.28.8.12.bootps > 172.28.141.1.bootps: BOOTP/DHCP, Reply, length 300<br>15:18:26.137923 IP 172.28.141.1.bootps > 172.28.8.10.bootps: BOOTP/DHCP, Request from xx:xx:xx:xx:xx:xx (oui Unknown), length 308<br>15:18:29.142546 IP 172.28.8.12.bootps > 172.28.141.1.bootps: BOOTP/DHCP, Reply, length 300<br>15:18:29.155150 IP 172.28.141.1.bootps > 172.28.8.10.bootps: BOOTP/DHCP, Request from xx:xx:xx:xx:xx:xx (oui Unknown), length 266<br>15:18:29.155816 IP 172.28.8.12.bootps > 172.28.141.1.bootps: BOOTP/DHCP, Reply, length 300<br>15:18:35.169175 IP 172.28.141.1.bootps > 172.28.8.10.bootps: BOOTP/DHCP, Request from xx:xx:xx:xx:xx:xx (oui Unknown), length 266<br>15:18:35.169933 IP 172.28.8.12.bootps > 172.28.141.1.bootps: BOOTP/DHCP, Reply, length 300<br><br><br><br><br>listen-address=127.0.0.1,172.28.8.10<br>#auto-expand simple queries, ones with no domain<br>expand-hosts<br>interface=eth0:1,lo<br>bind-interfaces<br>domain=<a href="http://myhouse.net">myhouse.net</a><br>server=172.28.10.205<br>dhcp-range=set:tag0,172.28.8.100,172.28.8.200,255.255.255.0,168h<br>dhcp-option=tag:tag0,option:router,172.28.8.1<br>dhcp-option=tag:tag0,6,172.28.8.172.28..1.10.205<br>dhcp-range=set:tag1,172.28.16.100,172.28.16.200,255.255.255.0,168h<br>dhcp-option=tag:tag1,option:router,172.28.16.1<br>dhcp-option=tag:tag1,6,172.28.8.172.28..1.10.205<br>dhcp-range=set:tag2,172.28.140.100,172.28.140.200,255.255.255.0,1h<br>dhcp-option=tag:tag2,option:router,172.28.140.1<br>dhcp-option=tag:tag2,6,8.8.8.8,8.8.4.4<br>dhcp-range=set:tag3,172.28.141.100,172.28.141.200,255.255.255.0,1h<br>dhcp-option=tag:tag3,option:router,172.28.141.1<br>dhcp-option=tag:tag3,6,8.8.8.8,8.8.4.4</div><div><br></div></div>