< Home

dhcpv6 server database

Function

The dhcpv6 server database command enables the device to save DHCPv6 data to storage devices.

The undo dhcpv6 server database command disables the device from saving DHCPv6 data to storage devices.

By default, the device is disabled from saving DHCPv6 data to storage devices.

Format

dhcpv6 server database url [ write-delay interval ]

undo dhcpv6 server database url

Parameters

Parameter

Description

Value

url

Specifies the path and name of the file that data is saved to.

The value is a string of 1 to 63 case-insensitive characters without spaces.

write-delay interval

Specifies the interval at which DHCPv6 data is saved.

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

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the device functions as a DHCPv6 or DHCPv6 PD server, run the dhcpv6 server database command to enable the device to save DHCPv6 data to storage devices. This avoids data loss caused by device faults. DHCPv6 data includes the last data recording time, address pool name, client DUID, IAID, address and prefix bound to the client DUID and IAID, conflicted address, and conflict detection time.

The device automatically saves current DHCPv6 data at the specified interval, and previous data files are overwritten. The interval can be set using the write-delay interval parameter.

Precautions

If the DHCPv6 client requests for lease renewal when the device (functioning as the DHCPv6 server) restarts, the device cannot receive the renewal request and the client fails to renew the lease.

Example

# Configure the device to save DHCP data to the path flash:/dhcpv6.tbl and set the interval for saving data to 36000s.

<HUAWEI> system-view
[HUAWEI] dhcpv6 server database flash:/dhcpv6.tbl write-delay 36000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >