ipv6 dhcp server database filename
Use ipv6 dhcp server database filename to configure the DHCPv6 server to back up the DHCPv6 bindings to a file.
Use undo ipv6 dhcp server database filename to restore the default.
Syntax
ipv6 dhcp server database filename { filename | url url [ username username [ password { cipher | simple } string ] ] }
undo ipv6 dhcp server database filename
Default
The DHCPv6 server does not back up the DHCPv6 bindings.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
filename: Specifies the name of a local backup file. For information about the filename argument, see Fundamentals Configuration Guide.
url url: Specifies the URL of a remote backup file. The URL is a case-sensitive string of 1 to 255 characters. Do not include a username or password in the URL.
username username: Specifies the username for accessing the URL of the remote backup file, a case-sensitive string of 1 to 32 characters. Do not specify this option if a username is not required for accessing the URL of the remote backup file.
cipher: Specifies a password in encrypted form.
simple: Specifies a password in plaintext form. For security purposes, the password specified in plaintext form will be stored in encrypted form.
string: Specifies the password. Its plaintext form is a case-sensitive string of 1 to 32 characters. Its encrypted form is a case-sensitive string of 1 to 73 characters. Do not specify this argument if a password is not required for accessing the URL of the remote backup file.
Usage guidelines
The command automatically creates the file if you specify a nonexistent file.
With this command executed, the DHCPv6 server backs up its bindings immediately and runs auto backup. The server, by default, waits 300 seconds after a binding change to update the backup file. You can use the ipv6 dhcp server database update interval command to change the waiting time. If no DHCPv6 binding changes, the backup file is not updated.
As a best practice, back up the bindings to a remote file. If you use the local storage medium, the frequent erasing and writing might damage the medium and then cause the DHCPv6 server to malfunction.
When the backup file is on a remote device, follow these restrictions and guidelines to specify the URL, username, and password:
If the file is on an FTP server, enter URL in the format of ftp://server address:port/file path, where the port number is optional.
If the file is on a TFTP server, enter URL in the format of tftp://server address:port/file path, where the port number is optional.
The username and password must be the same as those configured on the FTP server. If the server authenticates only the username, the password can be omitted.
If the IP address of the server is an IPv6 address, enclose the address in a pair of brackets, for example, ftp://[1::1]/database.dhcp.
You can also specify the DNS domain name for the server address field, for example, ftp://company/database.dhcp.
Examples
# Configure the DHCPv6 server to back up its bindings to the file database.dhcp
<Sysname> system-view [Sysname] ipv6 dhcp server database filename database.dhcp
# Configure the DHCPv6 server to back up its bindings to the file database.dhcp in the working directory of the FTP server at 10::1.
<Sysname> system-view [Sysname] ipv6 dhcp server database filename url ftp://[10::1]/database.dhcp username 1 password simple 1
Related commands
ipv6 dhcp server database update interval
ipv6 dhcp server database update now
ipv6 dhcp server database update stop