This post is a revised version of link.
The following steps should be followed:
-
Edit the file
/etc/dnsmasq.confon your router, and update the mac address associated with the intended ip address.dhcp-host=<mac address>,<ip address> -
Stop
dnsmasqservicesudo systemctl stop dnsmasq.service -
Next shutdown networking on the new client machine or the command dhclient -v -r might get the job done. Be aware, that this step will make the client lose the connection.
-
On the router, edit the file
/var/lib/misc/dnsmasq.leases, and delete the pre-existing lease for the client machine. -
Start dnsmasq service on the router,
sudo systemctl start dnsmasq.service -
Start networking on the client machine or
sudo dhclient.