DNSMasq Automatic Static DHCP

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

DNSMasq Automatic Static DHCP

Postby 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
Forum Moderator
Posts: 19996
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: DNSMasq Automatic Static DHCP

Postby 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.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

User avatar
Forum Moderator
Posts: 1955
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland

Re: DNSMasq Automatic Static DHCP

Postby 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.

Return to “CentOS 7 - Networking Support”

Who is online

Users browsing this forum: No registered users and 3 guests