Configuring DHCP binding auto backup
About DHCP binding auto backup
The auto backup feature saves bindings to a backup file and allows the DHCP server to download the bindings from the backup file at the server reboot. The bindings include the lease bindings and conflicted IP addresses. They cannot survive a reboot on the DHCP server.
The DHCP server does not provide services during the download process. If a connection error occurs during the process and cannot be repaired in a short amount of time, you can terminate the download operation. Manual interruption allows the DHCP server to provide services without waiting for the connection to be repaired.
Procedure
Enter system view.
system-view
Configure the DHCP server to back up the bindings to a file.
dhcp server database filename { filename | url url [ username username [ password { cipher | simple } string ] ] }
By default, the DHCP server does not back up the DHCP bindings.
With this command executed, the DHCP server backs up its bindings immediately and runs auto backup.
(Optional.) Manually save the DHCP bindings to the backup file.
dhcp server database update now
(Optional.) Set the waiting time after a DHCP binding change for the DHCP server to update the backup file.
dhcp server database update interval interval
By default, the DHCP server waits 300 seconds to update the backup file after a DHCP binding change. If no DHCP binding changes, the backup file is not updated.
(Optional.) Terminate the download of DHCP bindings from the backup file.
dhcp server database update stop
This command only triggers one termination.