Partager via


How to Assign a Dynamic address to A server by making a reservation for the server

Obtain the MAC address of the server's interface for which we want to assign a Fixed DHCP address, And add a reservation using below command

  netsh dhcp server <DhcpServer'sAddress> Scope <Scope_ID> add reservedip <Fixed DHCP Address> MAC-Address

 For EX:

  netsh dhcp server 10.2.2.1 Scope 10.2.2.0 add reservedip 10.2.2.32 08002b30369b

Adds a reservation of 10.2.2.32 address for the machine having MAC address 08002b30369b in the scope 10.2.2.0

We can also add reservations specific to a particular interface using the below command.

  netsh dhcp server 10.2.2.1 Scope 10.2.2.0 set reservedoptionvalue reservedip option_code option_type option_values

For Ex:

  netsh dhcp server 10.2.2.1 Scope 10.2.2.0 set reservedoptionvalue 10.2.2.32 003 IPADDRESS 10.1.1.1 10.1.1.2

  Adds Router Addresses (Option3) of 10.1.1.1 , 10.1.1.2 to the reservation of 10.2.2.32. So when the reserved client requests for the options, These specific option values are retrieved and given to the client.

 - Vamshi

Comments