On my home network various devices have static IPs in order to be better (more convenient) reachable. I do this by adding a MAC to IP relation on my piHole, which I use as a DHCP server. This works flawlessly on every device but one.
This said device, which happens to be a Fedora notebook, keeps claiming its old IP over and over again. I have tried releasing the DHCP lease via dhclient -r and I have also deleted the lease file in var/lib/dhcp. For some dubious reason, it is still able to remember the old IP address.
Any idea how to make it forget its IP permanently?
Have you restarted the interface on network manager?
I have restarted the notebook, which should account for the same thing^^
Edit: One thing that might be happening, is that I have to delete and release everything and keep the notebook turned off, until the lease expires (24h).
WiFi I assume?
run cat /etc/sysconfig/network-scripts/ifcfg-<nameof SSID here> | grep MAC paste the result here.
It’s probably set to use random macs which is why your not getting what you think you should.
you can set it to never use mac randomisation on that connection with the following
nmcli c m <CONNECTION NAME> 802-11-wireless.mac-address-randomization 1
just for some clarity. nmcli is the command line interface for NetworkManager
c is short for connection
m is short for modify
nmcli will accept short hand for sub commands.
It was on randomized and I’ve set it to permanent. Thanks, I hope this will fix this issue fingers crossed

you should just be able to bump the connection.
nmcli c d <connection name> && nmcli c u <connection name>
you can guess what u and d mean 
…it’s still claiming the old ip…
Correct mac on the pihole?
Also did you release the ip on the pihole?
It works now, though I had to do a couple of things at the same time:
- Release IP on the client side (
dhclient -r) - Delete
/var/lib/dhcpfiles - Edit piHole’s
/etc/pihole/dhcp.leasesfile