I have spent hours trying to get this to work, but I seem to be missing something.
I want dnsmasq to send the default gateway and dns server address of 192.168.0.55 to the host whose MAC address is xx:xx:xx:xx:xx. The host is on the same subnet as the default subnet the router serves (192.168.0.0/24).
So I added this to the DNSmasq custom config:
dhcp-mac=red,xx:xx:xx:xx:xx:xx dhcp-option=red,3,192.168.0.55 dhcp-option=red,6,192.168.0.55
This almost works. When I look at the DHCP OFFER packet in Wireshark, dnsmasq is sending TWO default gateway (option 3) addresses, the 192.168.0.55 I specified above PLUS the router's 192.168.0.1 address. How can I prevent it from sending the router's IP as well? Some hosts on the network (tagged red) are using the 192.168.0.1 address as their default gateway and some are using the 192.168.0.55.
Can anyone help? Thanks in advance.