Stop DHCP client from receiving new IPs from DHCP server

dhcpwindows-server-2008

DHCP server is running on my DC (windows 2008 r2). It seems when I need to reboot my laptop or a VM, a new IP is set. The issue is with my DNS entries, I see a bunch of entries for the same host with some old IPs. Hence, when I go ping it may grab one of the older IPs and I would need to wait a few minutes before my laptop successfully resolves the correct IP.

For example, workstation1 has an IP of 192.168.0.201 but when I reboot it, it comes up with 192.168.0.202. In DNS, I'll have two entries for workstation. This also happens with any linux clients as well as MACs.

Best Answer

You need to use DHCP reservation. DHCP reservations provide a mechanism by which IP addresses may be permanently assigned to a specific client based on the MAC address of that client.

To configure reservation using the DHCP console, select Start -> All Programs -> Administration Tools -> DHCP and select the DHCP server and unfold the appropriate scope from the tree in the left panel. Within the scope sub-list, select Reservations.

Right click on Reservations and choose New Reservation... from the menu to launch the New Reservation dialog.

Begin by entering a name for the reservation followed by the IP address from the currently selected scope which is to be reserved for the client together with the MAC address of the client (or more specifically the network adapter of the client). Finally specify whether the reservation is to be made for BOOTP or DHCP clients, or both. Once the information has been entered click the Add button. When all reservations have been entered click Cancel to close the dialog.