A DHCP server can be configured to provide IP addresses in a number of different ways, including:
- Dynamic allocation
- Automatic allocation
- Static allocation
A very common approach for a DHCP server is to assign addresses using a dynamic allocation process, in which the DHCP server is configured with a big pool of IP addresses and assigns one of them to clients based on their requests. When the device lease period expires or the device leaves the network, the particular IP address is handed back to the DHCP server and then it can be assigned to another client.
Another method of assigning IP addresses by the DHCP server is called automatic allocation, which is a very similar process to dynamic allocation. However, using this approach, the DHCP server tries to keep a list of all of the past assignments and if an “old” client requests an IP address, it will be assigned the same one as before (i.e., the previous time the client requested an IP address). Automatic allocation of IP addresses is less efficient but if you have a very large pool of IP addresses available, this is a very smart way to almost guarantee that clients will get the same IP address every time they become active in a network.
Static allocation of IP addresses by a DHCP server implies defining the MAC addresses that you expect to see on the network and manually assigning a unique IP address for each of them, thus administratively building a MAC-to-IP association table. This is commonly used in a server environment because servers must use predictable IP addresses in order to be accessed.