Windows Server 2003
1820390 Members
3674 Online
109623 Solutions
New Discussion юеВ

DHCP servers Active/Disable

 
SOLVED
Go to solution
Maaz
Valued Contributor

DHCP servers Active/Disable

Hi Gurus

srv_1 IP: 192.168.0.7
srv_2 IP: 192.168.0.8

I am running two dhcp servers(srv_1, srv_2) having same IP Range(Same scope) on Windows Server 2003.

dhcp service is disable/stoped on srv_2, that is right now there is only one DHCP server(srv_1) available.

Please share with me the code/script(vb or batch), that will check if the srv_1 is alive/active(ping srv_1), if not then this script enable/start the dhcp service on srv_2, but it continues to check via ping that srv_1 is alive or not. Once Srv_1 is enable/active/alive, the script will stop/disable the dhcp service on srv_2.

This script will be placed on srv_2.

Regards
Maaz
4 REPLIES 4
Igor Karasik
Honored Contributor
Solution

Re: DHCP servers Active/Disable

Hi,
Did you see this project ?
http://www.c64gg.com/dhcp-redundancy/
Lucky Luciano
Regular Advisor

Re: DHCP servers Active/Disable

Hi

I am not sure, if this will be answer to your question, but having 2 servers has no sense not to use them if no particular reason. Try to consider having this server configured as redundant and always running. with same scope create different exlusions and create same reservation on both of them so you would have 2 redundant servers distributing load and serving clients.

Would it be acceptable? Scripting it will decrease what you could have.

I admire your fashionable running shoes!
Maaz
Valued Contributor

Re: DHCP servers Active/Disable

Dear Igor Karasik, and Lucky Luciano Thanks for your support.

Lucky Luciano
Nice Suggestion. Thanks for your detailed reply and suggestions.

>with same scope create different exlusions and create same reservation on >both of them...
Ok If I configure the dhcp server on SRV_1, is there any utility so that I export all the configs(reservations, IP Range/Scope etc) to a file, and then Import all the settings on SRV_2 from that file ? so that I dont have to configure the SRV_2 manually.

Second, as I am going to start work on the DHCP-Redundancy project(thanks Igor), but still I would like to have such a script.

Thanks and Regards
Maaz
Lucky Luciano
Regular Advisor

Re: DHCP servers Active/Disable

Hi

I think that netsh should be a way

http://blogs.technet.com/teamdhcp/archive/2006/07/18/442311.aspx

just to be careful and to play with it

:-)
I admire your fashionable running shoes!