14.11. Creating a Reservation
You want to create a lease reservation for a computer so that it always receives the same IP address.
Using a graphical user interface
Open the DHCP snap-in.
In the left pane, right-click on DHCP and select Add Server.
Type in the name of the DHCP Server you want to target and click OK.
Expand the target scope.
Right-click on Reservations and select New Reservation.
Enter the name, IP address, MAC address, and description for the reservation.
The reservation will now show up under Address Leases and will be marked as inactive until the target client requests a lease.
Using a command-line interface
The following is the general syntax for adding a reservation:
> netsh dhcp server scope
The following command creates a reservation for IP address 10.1.2.5:
> netsh dhcp server scope 10.1.2.0 add reservedip 10.1.2.5 000102C8B474 rallen-wxp "Robbie's laptop"
See the Introduction for more information on how to run the netsh command from within a script.
In some situations, it is not ideal to let hosts obtain an IP address dynamically. For example, web servers need to be referable by a friendly hostname (e.g., http://www.rallencorp.com), which is associated with an IP address. If that IP address changes, the DNS record for the hostname also needs to change. The propagation delay while the record is updated could result in some clients getting ...