CCS-IT Posted September 24, 2014 Share Posted September 24, 2014 Hi Guys, Need your help to restore the dhcp scope backup on another windows 2008 R2 server. Actually our 2008 R2 DHCP server is currently down and we need to restore the dhcp scope backup on different server but we unable to restore. Backup file format is in .txt format so please help me with command line to fix such issue. Many thanks. Link to comment https://www.neowin.net/forum/topic/1230625-dhcp-scope-backup-restoration/ Share on other sites More sharing options...
+John Teacake MVC Posted September 24, 2014 MVC Share Posted September 24, 2014 You can do alot with DHCP and powershell. http://blogs.technet.com/b/heyscriptingguy/archive/2013/01/15/use-powershell-to-create-multiple-dhcp-scopes-on-dhcp-servers.aspx Link to comment https://www.neowin.net/forum/topic/1230625-dhcp-scope-backup-restoration/#findComment-596589933 Share on other sites More sharing options...
+BudMan MVC Posted September 24, 2014 MVC Share Posted September 24, 2014 why do you need to restore? Just recreate - how many possible settings could you have? Do you have like 100 scopes or something? Do you have hundreds of reservations setup? There pretty much is 2 settings in a scope that would be requierd. Gateway and DNS server - if it take you longer than 30 seconds to bring up a dhcp scope so your boxes can get an IP and talk to what they need to talk to -- your doing it wrong ;) You spent more time typing this post asking for help on restore of a backup, when you could have had 10 scopes created ;) as to your restore - why do you need command line? To restore the DHCP database Open the DHCP snap-in. In the console tree, click the DHCP server you want to configure. On the Action menu, click Restore. In the Browse For Folder dialog box, select the folder that contains the backup DHCP database, and then click OK. Roger H. 1 Share Link to comment https://www.neowin.net/forum/topic/1230625-dhcp-scope-backup-restoration/#findComment-596589953 Share on other sites More sharing options...
CCS-IT Posted September 24, 2014 Author Share Posted September 24, 2014 On 24/09/2014 at 12:01, BudMan said: DHCP server which are currently got down having 48 scope configured and yes there are more the 100 reservation... Link to comment https://www.neowin.net/forum/topic/1230625-dhcp-scope-backup-restoration/#findComment-596589967 Share on other sites More sharing options...
CCS-IT Posted September 24, 2014 Author Share Posted September 24, 2014 On 24/09/2014 at 12:16, CCS-IT said: DHCP server which are currently got down having 48 scope configured and yes there are more the 100 reservation... Backup of that particular DHCP server, I have in .txt format so as you suggested below is not works for me. To restore the DHCP database Open the DHCP snap-in. In the console tree, click the DHCP server you want to configure. On the Action menu, click Restore. In the Browse For Folder dialog box, select the folder that contains the backup DHCP database, and then click OK. Link to comment https://www.neowin.net/forum/topic/1230625-dhcp-scope-backup-restoration/#findComment-596589977 Share on other sites More sharing options...
+BudMan MVC Posted September 24, 2014 MVC Share Posted September 24, 2014 so you did like a dump? Something like this netsh DHCP server dump >c:\DHCPdump.txt Here http://support.microsoft.com/kb/962355 Can we see the beginning of this text file? Link to comment https://www.neowin.net/forum/topic/1230625-dhcp-scope-backup-restoration/#findComment-596589979 Share on other sites More sharing options...
sc302 Veteran Posted September 24, 2014 Veteran Share Posted September 24, 2014 a text file is not going to work, you will need to proper files to restore dhcpcfg dhcp.mdb dhcp.pat or you will need to have a system state backup that you can restore. Link to comment https://www.neowin.net/forum/topic/1230625-dhcp-scope-backup-restoration/#findComment-596589983 Share on other sites More sharing options...
yeoo_andy_ni Posted September 24, 2014 Share Posted September 24, 2014 http://everythingsysadmin.wordpress.com/2010/11/03/migrate-dhcp-from-windows-2003-to-windows-2008-r2/ I've used this, commands are the same when exporting config between two 2008 R2 servers. Just make sure you do both from an elevated command prompt :) Link to comment https://www.neowin.net/forum/topic/1230625-dhcp-scope-backup-restoration/#findComment-596589993 Share on other sites More sharing options...
CCS-IT Posted September 25, 2014 Author Share Posted September 25, 2014 Guys thanks for posting... and sorry for delay response here. Actually we raised a case with HP to replace the systemboard of our core server and they replaced it within 5 hours. hence our corebox is running and DHCP server which are hosted in this core server are running fine. But still I would like to do above backup restoration steps on different server to avoid such issues in future. Will start working on this and keep you posted. Link to comment https://www.neowin.net/forum/topic/1230625-dhcp-scope-backup-restoration/#findComment-596591801 Share on other sites More sharing options...
+BudMan MVC Posted September 26, 2014 MVC Share Posted September 26, 2014 first would like to know how you took your backup? 2nd if you were running current OS you could have dhcp failover http://blogs.technet.com/b/teamdhcp/archive/2012/06/28/ensuring-high-availability-of-dhcp-using-windows-server-2012-dhcp-failover.aspx Link to comment https://www.neowin.net/forum/topic/1230625-dhcp-scope-backup-restoration/#findComment-596592125 Share on other sites More sharing options...
CCS-IT Posted September 26, 2014 Author Share Posted September 26, 2014 On 26/09/2014 at 03:00, BudMan said: Hi, Good Morning BudMan, 1) We have around world wide 300+ DHCP servers and we used script to take backup, Backup file saved in .txt format in one centralized server. 2) Currently we do not have the DHCP failover server, as for each site we have one core box which hosted in DC, DHCP-SCCM, F&P server. I will try your below guidance and update you if in case any issue occurs. netsh DHCP server dump >c:\DHCPdump.txt Here http://support.microsoft.com/kb/962355 Link to comment https://www.neowin.net/forum/topic/1230625-dhcp-scope-backup-restoration/#findComment-596592281 Share on other sites More sharing options...
+BudMan MVC Posted September 26, 2014 MVC Share Posted September 26, 2014 so this script runs what command that netsh one? So you have this backup script - that you don't know how to restore from?? Really?? You have 300+ dhcp servers? Why??? That makes no sense at all.. You can serve up 1000's of scopes off 1 dhcp server.. I sure wouldn't be using microsoft to serve up dhcp if you needed that many.. I would prob use something like infoblox.. And you would need no where close to 300 I am damn sure ;) Link to comment https://www.neowin.net/forum/topic/1230625-dhcp-scope-backup-restoration/#findComment-596592397 Share on other sites More sharing options...
CCS-IT Posted September 26, 2014 Author Share Posted September 26, 2014 On 26/09/2014 at 11:38, BudMan said: All 300+ servers are not located in one place, it hosted on different country and different city. Hope you understand the infra. Before restoring DHCP backup on another server, at that time we will do following steps to perform. 1) Move the site subnet to nearest site, 2) Restore DHCP backup on new server & enable IP helper Link to comment https://www.neowin.net/forum/topic/1230625-dhcp-scope-backup-restoration/#findComment-596592467 Share on other sites More sharing options...
+BudMan MVC Posted September 26, 2014 MVC Share Posted September 26, 2014 Yeah you could have like 1 HA pair of dhcp servers in each region.. Way less than 300 ;) I am finding it hard to believe that 300 dhcp servers would be required for even the largest of of enterprise or ISPs even.. Curious - so how many leases per second do these boxes serve up? How many leases total? Link to comment https://www.neowin.net/forum/topic/1230625-dhcp-scope-backup-restoration/#findComment-596592545 Share on other sites More sharing options...
Recommended Posts