And then it gets more complicated than that.
In your DHCP server (probably your router) you can carve out a pool of addresses, a static pool.
Then you build a table in the DHCP server that has MAC address and IP address, and the same box will always get that IP.