need netsh dhcp reservation command

can i get some help with createing dhcp reservation of 

10.200.2.100

mac address aa:bb:cc:dd:ee:ff:gg:hh

also need to create dhcp option for tftp server ip 10.200.2.1

and also the boot option 

May 28th, 2015 1:18am

Hello,

see for the reservation the example from the following article https://technet.microsoft.com/en-us/library/bb490941.aspx?f=255&MSPPError=-2147217396:

add reservedip 10.200.2.100 aabbccddeeffgghh

See also about export/import in http://www.mpking.com/2013/08/using-netsh-to-export-and-import-dhcp.html

Is the TFTP option for Cisco? http://www.winplat.net/post/2012/09/02/How-to-add-DHCP-Scope-Option-150-for-Cisco-CallManager.aspx

If not you should use "set optionvalue" in https://technet.microsoft.com/en-us/library/bb490941.aspx

What do you mean with "and also the boot option"?

Free Windows Admin Tool Kit Click here and download it now
May 28th, 2015 1:17pm

this is what i came up with so far

netsh dhcp server 10.200.1.6 scope 10.200.0.0 add reservedip 10.200.1.13 0025b5310a9e "hostname1" "" BOTH

but i need to also set option 66 and 67

May 29th, 2015 4:50pm

this is what i came up with so far

netsh dhcp server 10.200.1.6 scope 10.200.0.0 add reservedip 10.200.1.13 0025b5310a9e "hostname1" "" BOTH

but i need to also set option 66 and 67


refer to:set reservedoptionvalue
https://technet.microsoft.com/en-us/library/bb490941.aspx
Free Windows Admin Tool Kit Click here and download it now
May 30th, 2015 7:14am

still does not work

netsh dhcp server \\10.200.1.6 scope 10.200.0.0 set reservedoptionvalue 10.200.1.11 066 IPADDRESS 10.200.1.20

Changed the current scope context to 10.200.0.0 scope.

Option data type supplied is not valid for the Option.

DHCP Server Scope Set ReservedOptionValue failed.

Parameter(s) passed are either incomplete or invalid.


May 30th, 2015 4:19pm

Hi,

After adding(successfully) reservation with command line add reservedip , then use set reservedoptionvalue to add the reservation option:
set reservedoptionvalue ReservedIP OptCode {BYTE | WORD | DWORD | STRING | IPADDRESS} [user=UserName] [vendor=VendorName] OptValue

For example, sets the value of the router option (code 003) for the reserved client IP address of 10.1.1.50 in the current scope to set IP addresses of 10.1.1.1 and 10.1.1.2 for its configured routers (default gateways).
set reservedoptionvalue 10.1.1.50 003 IPADDRESS 10.1.1.1 10.1.1.2

Best Regards,
Eve Wang      
Free Windows Admin Tool Kit Click here and download it now
June 2nd, 2015 8:36am

Can you please give me the command

to register this in dhcp

name: host1

ip: 10.200.1.12

mac: 0025b5310a3f

June 8th, 2015 6:45pm

Hi,

Netsh dhcp server[ip address of DHCP server]scope [scope ID]add reservedip[ip address] [MAC address] [name]

You may open CMD, type the command line below and each line end with Enter:

netsh

dhcp server [ip address of DHCP server]

scope [scope ID]

add reservedip 10.200.1.12 0025b5310a3f host1

Best Regards,
Eve Wang

 
Free Windows Admin Tool Kit Click here and download it now
June 8th, 2015 10:48pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics