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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bizarre DHCP scripting question

Status
Not open for further replies.

floppyraid

Technical User
Aug 16, 2009
30
US
Greetings,

I want to know if this is possible:

I have a Windows 2003 Server, I have multiple DHCP scopes for various subnets and vlans I have. But I want to be able to copy all of the DHCP MAC address reservations from one scope to another scope on the fly.

In other words, when I add a DHCP reservation, I dont want to have to do it in multiple scopes, instead, I would like to make the changes to one scopes reservations, and then run a script that will mirror all of the data from one scope to another scope.

Is this possible? Can you point me in the direction of what I would need to use to do this? (would I need to use powershell or can I do this though a simple batchfile, or would I need some other cli utility?)

thanks ahead of time :)
 
Let me re-phrase your question as I understand it.....
You have the same DHCP scope located on multiple servers and when you want to create a reservation you want to have that reseration apply to each applicable scope on each applicable server, is this correct? If so I may be able to help you.
 
no sorry

i have 1 DHCP server, and it has multiple scopes

we want to be able to add a reservation to 1 of the scopes, and then clone all of the reservations to other scopes.

but the problem is that the other scopes are all (of course) numbered differently, so, we want to copy over the information regarding the MAC address, but we dont want to copy over the data regarding the IP address reservation since the IP would be outside of the scope we are copying the reservation to.

basically our end goal in mind is not so much to have control over what IP address each MAC gets, but so that only computers get a DHCP lease if we have entered their MAC address into the system. i found this the other day and it looks very promising, but i have to reboot the DHCP server in order to test it:


the one thing that disappoints me about it is that you cannot put any comments into the text file, so, we will have to keep another copy of the text file with comments in it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top