DHCP Static mapping works, but doesn't work
-
I've been using static mapping for ages, but I'm having a new issue. pfSense version is 2.3.2. Static mappings range from 192.168.1.20 to 192.168.1.199 (I have a lot of devices mapped, but seldom are more than 20 of them active at once). The dynamic pool range is 192.168.1.200 to 192.168.1.249.
My issue is that old mappings work without issue, but new mappings don't work, and the new device is mapped into the dynamic range. Changes to existing static mappings also don't take effect. Those devices still take their old IP assignment. I've tried releasing/renewing on the devices, restarting the dhcp service on pfsense, and rebooting both. Problem persists.
I discovered this problem while setting up a new virtual machine, but the problem applies to everything in my network. What am I missing?
Attached are images of the adapter properties, dhcp static mapping, and relevant dhcp logs.
![dhcp static map.PNG](/public/imported_attachments/1/dhcp static map.PNG)
![dhcp static map.PNG_thumb](/public/imported_attachments/1/dhcp static map.PNG_thumb)
![dhcp log.PNG](/public/imported_attachments/1/dhcp log.PNG)
![dhcp log.PNG_thumb](/public/imported_attachments/1/dhcp log.PNG_thumb)
![vm network status.PNG](/public/imported_attachments/1/vm network status.PNG)
![vm network status.PNG_thumb](/public/imported_attachments/1/vm network status.PNG_thumb) -
Ok you give a machine an IP via either just out of the pool or you create a static entry for it. He gets a lease!!! Once he has that lease he will renew that lease until the cows come home. So you either have to have the client release it!! And then make sure he doesn't ask for it again, or delete it on the server. So he can not renew it and then he has to ask for a new one. Then he will either get his new static or he will get out of the pool range if you do not have a static set for him.
I do this all the time.. I let a machine get a dhcp, and then I set a reservation for him. I then delete the dhcp lease he got and once he goes to renew.. That lease will be gone, he will have to ask for a new one and then he will get his reservation.
The web gui will not let you delete the lease if thinks its in use, via there is a arp entry for that IP.. So delete the arp entry then you can delete the old lease.. Or just manually delete the lease out of the leases file or delete the whole thing and let it get rebuilt as clients renew, etc.