DNSMasq Automatic Static DHCP

Issues related to configuring your network
Post Reply
MattyShires
Posts: 4
Joined: 2017/02/13 09:33:11

DNSMasq Automatic Static DHCP

Post by MattyShires » 2017/03/20 17:38:07

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.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: DNSMasq Automatic Static DHCP

Post by TrevorH » 2017/03/20 17:50:08

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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: DNSMasq Automatic Static DHCP

Post by avij » 2017/03/20 19:01:06

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.

Post Reply