Yesterday, when working with a customer, the subject came up about our Quota tool, and its drawback of not being able to track a user by IP over time, and the customer turned that into a teaching moment for me.
You see, a DHCP server will always try and give the same IP address back to the same device if the previous IP address is available. So the key is keeping that IP address available; and there is a simple trick to make sure that this happens.
When you set up a DHCP server it will ask you the range of IP addresses you want to use. All one needs to do is ensure that the defined range is much bigger than the number of devices that will be on your network, and then you can be almost certain that a device will always get the same IP. This is because the DHCP server only re-uses previously assigned IP addresses when all IP addresses have been assigned, and this would only happen if you defined your IP address range to a relative small number relative to the number of potential devices on your network. There is no real extra cost for defining your DHCP address range as a Class B instead of the typical default Class C, which then expands your range from 255 to 64,000. So make sure your ranges are large enough and feel free to track your users by IP without worry.
If you would like to learn more about our Quota tool, also known as “User Quota”, you can read more about it in our User Guide.