ID #1102

How can we ensure that an endpoint gets same IP every time it boots?

There are couple of ways to do such configuration.
One easy way is to increase IP lease time in /etc/dnsmasq.conf file as follows.

Look for dhcp-range option, and change last value "12h" to "infinite" e.g. change
dhcp-range=192.168.100.60,192.168.100.240,255.255.255.0,12h

to

dhcp-range=192.168.100.60,192.168.100.240,255.255.255.0,infinite


Another way of binding MAC and ip is by adding 'dhcp-host' entry in dnsmasq.conf file

for example:

dhcp-host=11:22:33:44:55:66,192.168.0.60

Once dnsmasq.conf file is updated, restart dnsmasq service using

service dnsmasq restart

Tags: -

Related entries:

You can comment this FAQ