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

  1. Open the DHCP snap-in.

  2. In the left pane, right-click on DHCP and select Add Server.

  3. Type in the name of the DHCP Server you want to target and click OK.

  4. Expand the target scope.

  5. Right-click on Reservations and select New Reservation.

  6. Enter the name, IP address, MAC address, and description for the reservation.

  7. Click Add.

  8. 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 <ScopeID> add reservedip <ReservedIP> 

The following command creates a reservation for IP address

> netsh dhcp server scope add reservedip 000102C8B474 rallen-wxp
"Robbie's laptop"

Using VBScript

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 ...

Get Windows Server Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.