< Home

Backing Up DHCP Snooping Binding Entries

Context

If binding entries are not backed up, the binding entries will be lost after the device restarts. DHCP users must log in again so that the device can generate DHCP snooping binding entries for DHCP users to communicate. After DHCP snooping binding entries are backed up, DHCP snooping binding entries can be restored after the device restarts.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run the following commands as required.

    • Run dhcp snooping user-bind autosave file-name [ write-delay delay-time ]

      The device is enabled to back up DHCP snooping binding entries locally.

      By default, local automatic backup of the DHCP snooping binding table is disabled.

    • Run dhcp snooping user-bind ftp remotefilename filename host-ip ip-address username username password password [ write-delay delay-time ]

      The device is enabled to automatically back up DHCP snooping binding entries on the remote FTP server.

      By default, the device is not enabled to automatically back up DHCP snooping binding entries on the remote FTP server.

    • Run dhcp snooping user-bind sftp remotefilename filename host-ip ip-address username username password password [ write-delay delay-time ]

      The device is enabled to automatically back up DHCP snooping binding entries on the remote SFTP server.

      By default, the device is not enabled to automatically back up DHCP snooping binding entries on the remote SFTP server.

    • Run dhcp snooping user-bind tftp remotefilename filename host-ip ip-address [ write-delay delay-time ]

      The device is enabled to automatically back up DHCP snooping binding entries on the remote TFTP server.

      By default, the device is not enabled to automatically back up DHCP snooping binding entries on the remote TFTP server.

    • Run dhcp snooping user-bind http { remotefilename filename host-ip ip-address [ port port-number ] | url url-string } [ username username password password ] [ write-delay delay-time ]

      The device is enabled to automatically back up DHCP snooping binding entries on the remote HTTP server.

      By default, the device is not enabled to automatically back up DHCP snooping binding entries on the remote HTTP server.

    • Run dhcp snooping user-bind https ssl-policy ssl-policy-name { remotefilename filename host-ip ip-address [ port port-number ] | url url-string } [ username username password password ] [ write-delay delay-time ]

      The device is enabled to automatically back up DHCP snooping binding entries on the remote HTTPS server.

      By default, the device is not enabled to automatically back up DHCP snooping binding entries on the remote HTTPS server.

    You can only use one of the preceding backup modes on a device.

    FTP, HTTP, and TFTP will bring risk to device security. The SFTP or HTTPS mode is recommended.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >