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.serviceNext 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.serviceStart networking on the client machine or
sudo dhclient.