Page 1 of 1

DNSMasq Automatic Static DHCP

Posted: 2017/03/20 17:38:07
by MattyShires
I know how to set up static addressing and normal DCHP but is there a way to set up automatic static DCHP?
i.e. for it to automatically assign an IP address to a device but from then on always give said device the same IP.

Re: DNSMasq Automatic Static DHCP

Posted: 2017/03/20 17:50:08
by TrevorH
That's up to the DHCP server. The client usually (always?) says "I've got MAC address x and I'd like ip Y" and it's down to the server to say yay or nay to that.

Re: DNSMasq Automatic Static DHCP

Posted: 2017/03/20 19:01:06
by avij
I believe that's how dnsmasq operates by default. It saves the addresses it has given to a lease file, and looks up the previous IP address from that lease file based on the MAC address when a new request comes in.