Automatically saving IP address allocation information allows the DHCP server to re-allocate the same configurations (such as IP address and lease time) to clients in the event that the server unexpectedly restarts.
After this function is enabled, the DHCP server stores lease information in lease.txt and conflicting IP addresses in conflict.txt (both data files are saved to the DHCP folder). New data files overwrite earlier data files.
The time displayed in the lease.txt and conflict.txt files is the UTC time rather than the system time, and you do not need to pay attention to time zone information.
To view information about the DHCP database, run the display dhcp server database command.
system-view
dhcp server database enable
By default, the DHCP server does not automatically save IP address allocation information.
dhcp server database write-delay interval
By default, IP address allocation information is saved every 7200 seconds in data files. The new data files overwrite the earlier data files.
dhcp server database recover
By default, the DHCP server is disabled from recovering IP address allocation information from the data files upon a restart.