In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
Today, I will talk to you about how to back up and restore the Windows DHCP server. Many people may not know much about it. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.
Have you ever experienced a DHCP server crash or failure? Everything will be calm until the device starts to restart.
Users will complain that they cannot access email, the Internet stops working and their applications no longer work. This is because the DHCP servers are down and they are not connected to the network.
It's really easy to start a new DHCP server, but do you remember all the scopes that need to be recreated? What about those reserved addresses? do you remember all these MAC addresses?
Let's take a look at how to back up the DHCP server for fast recovery.
Automatic backup of DHCP database every 60 minutes
By default, Windows backs up the DHCP configuration at% SystemRoot%System32\ DHCP\ backup at this location every 60 minutes.
Important: although Windows automatically backs up the DHCP configuration, it is bad for you if the server crashes and you cannot access the file system. It is recommended that you change the location to a network share, or use backup software to back up the folder. You can also schedule tasks to copy the backup folder to another location.
Manual DHCP backups using the DHCP console
In this example, I will back up the DHCP configuration on the server DHCP1. Later in this tutorial, I will restore this backup to the server DHCP2.
Step 1: create a backup folder
I have created a folder called DHCPBackup on the server desktop.
Step 2: open the DHCP Management console step 3: right-click the server, and then select backup
Select the folder you created in step 1. In my case, this is the DHCPBackup folder on the desktop. Then click OK
Unfortunately, there is no prompt to confirm that the backup has been completed.
You can open the folder and verify that the data has been backed up.
I can see that the files have been written to the folder, and it looks like the backup completed successfully.
This is used to back up the DHCP server manually. Now, let's move on to the reduction process.
To restore a DHCP server using the DHCP console
Important: you must copy the backup folder from the above steps to% SystemRoot%System32\ DHCP\ backup, or you will receive the following error message indicating that the database has not been restored correctly.
Step 1: log in to the server to which you want to restore the DHCP backup
I logged in to the second DHCP server using the hostname of DHCP2.
Step 2: copy the backup to the correct location
Now, I will copy the DHCPBackup folder to% SystemRoot%System32\ DHCP\ backup
Step 3: open the DHCP console and select restore
On the DHCP console, right-click the server and select restore.
Now select the DHCPBackup folder
You will receive a message indicating that the service must be stopped and restarted.
Click "Yes"
Recovery complete
You can browse the scope to verify that everything has been restored correctly.
I have a small lab, but I can see that both areas (lease and reservation) have been restored.
Back up the DHCP server using PowerShell
This example logs in locally to the server.
Use the following command to back up the DHCP configuration through PowerShell.
Backup-DhcpServer-path c:\ DHCPBackup
Use this command if you want to back up the DHCP server from a remote computer
Backup-DhcpServer-ComputerName "dhcp1"-Path "C:\ DHCPBackup" restore the DHCP server using PowerShell step 1: copy the backup folder to the correct path
Remember that the backup must be copied to C:Window\ ssystem32\ dhcp\ backup, or a permission error will occur.
Step 2: run the following command PS C: > Restore-DhcpServer-ComputerName "dhcp2"-Path "C:Windows\ system32\ dhcp\ backup"
This allows you to use PowerShell to complete the backup and restore process.
After reading the above, do you have any further understanding of how to back up and restore the Windows DHCP server? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.