Configuring DHCPv6 binding auto backup

About DHCPv6 binding auto backup

The auto backup feature saves DHCPv6 bindings to a backup file, and allows the DHCPv6 server to download the bindings from the backup file at the server reboot. The bindings include the lease bindings and conflicted IPv6 addresses. They cannot survive a reboot on the DHCPv6 server.

The DHCPv6 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 DHCPv6 server to provide services without waiting for the connection to be repaired.

Procedure

  1. Enter system view.

    system-view

  2. Configure the DHCPv6 server to back up the bindings to a file.

    ipv6 dhcp server database filename { filename | url url [ username username [ password { cipher | simple } string ] ] }

    By default, the DHCPv6 server does not back up the DHCPv6 bindings.

    With this command executed, the DHCPv6 server backs up its bindings immediately and runs auto backup.

  3. (Optional.) Manually save the DHCPv6 bindings to the backup file.

    ipv6 dhcp server database update now

  4. (Optional.) Set the waiting time after a DHCPv6 binding change for the DHCPv6 server to update the backup file.

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

  5. (Optional.) Terminate the download of DHCPv6 bindings from the backup file.

    ipv6 dhcp server database update stop

    This command only triggers one termination.