Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change to dhcp static IP from lease 1

Status
Not open for further replies.

Aardman

Technical User
Mar 21, 2003
7
GB
We have a DHCP win2k3 standard server. I'd like to lock it down more and change to static ip from lease. Is there a script/tool to change to lots of fixed ip's using the pc's current leased ip's?

Thanks
 
So you want your client machines to use DHCP, but always receive the same ip? Then you need to reserve their IP based on their Mac address.

If this is not what you are looking to do, please explain in more detail.
 
Thanks Serbastic. I want to reserve their IP based on MAC addresses. I wondered if there was a acript or tool to do the whole scope in one go using their current IP?
 
If you have a list of the IPs and mac addresses, you can script the addition of reservations using the netshell commands for DHCP administration.

Specifically, you want to be using the "add reservedip" command to create reservations. The command might look like this:

add reservedip 10.2.2.32 08002b30369B

See the syntax guide here:

And here is a guide on scripting netsh dhcp commands:

ShackDaddy
Shackelford Consulting
 
Thanks ShackDaddy I'll give that a go.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top