No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
dhcp server database

dhcp server database

Function

The dhcp server database command enables the function to save the current DHCP data to storage devices.

The undo dhcp server database command disables the function to save the DHCP data to storage devices.

By default, DHCP data is not saved to storage devices.

Format

dhcp server database { enable | recover | write-delay interval }

undo dhcp server database { enable | recover | write-delay }

Parameters

Parameter

Description

Value

enable

Enables the function to save DHCP data to storage devices.

-

recover

Recovers DHCP configurations using DHCP data in storage device.

-

write-delay interval

Specifies the interval at which DHCP data is saved.

The value is an integer ranging from 300 to 86400, in seconds. The default value is 300 seconds.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the device functions as a DHCP server, run the dhcp server database enable command to enable the device to save DHCP data to storage devices. This avoids data loss caused by device faults. Then the system generates lease.txt and conflict.txt files in the storage device. The two files save address lease information and address conflict information respectively. Run the display dhcp server database command to check the storage device for saving DHCP data. After the dhcp server database enable command is run, current DHCP data is automatically saved at the specified interval, and previous data files are overwritten. The interval can be set using the dhcp server database write-delay interval command.

If a fault occurs on the device, run the dhcp server database recover command to recover DHCP data from storage devices during the system restarts.

Prerequisites

The dhcp server database enable command has been run to enable the device to save DHCP data to storage devices, and ensure that the storage devices work properly.

Precautions

  • The lease.txt and conflict.txt files are overwritten periodically; therefore, you are advised to back up and save the two files to other locations.

  • 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.

Example

# Enable the device to save the current DHCP data to storage devices and set the interval at which DHCP data is saved to 2000s.

<Huawei> system-view
[Huawei] dhcp server database enable
[Huawei] dhcp server database write-delay 2000

# Recover DHCP configuration using the DHCP data saved on storage devices.

<Huawei> system-view
[Huawei] dhcp server database recover
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 205759

Downloads: 122

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next