107
a DHCP snooping entry change to update the backup file. To change the waiting period, use the
dhcp snooping binding database update interval command. If no DHCP snooping entry changes,
the backup file is not updated.
As a best practice, back up the DHCP snooping entries to a remote file. If you use the local storage
medium, the frequent erasing and writing might damage the medium and then cause the DHCP
snooping device to malfunction.
When the 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 following format: ftp://server address:port/file
path, where the port number is optional.
• If the file is on a TFTP server, enter URL in the following format: 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 DHCP snooping device to back up DHCP snooping entries to file database.dhcp.
<Sysname> system-view
[Sysname] dhcp snooping binding database filename database.dhcp
# Configure the DHCP snooping device to back up DHCP snooping entries to file database.dhcp in
the working directory of the FTP server at 10.1.1.1.
<Sysname> system-view
[Sysname] dhcp snooping binding database filename url ftp://10.1.1.1/database.dhcp
username 1 password simple 1
# Configure the DHCP snooping device to back up DHCP snooping entries to file database.dhcp in
the working directory of the TFTP server at 10.1.1.1.
<Sysname> system-view
[Sysname] dhcp snooping binding database filename tftp://10.1.1.1/database.dhcp
Related commands
dhcp snooping binding database update interval
dhcp snooping binding database update interval
Use dhcp snooping binding database update interval to set the waiting time for the DHCP
snooping device to update the backup file after a DHCP snooping entry change.
Use undo dhcp snooping binding database update interval to restore the default.
Syntax
dhcp snooping binding database update interval interval
undo dhcp snooping binding database update interval
Default
The DHCP snooping device waits 300 seconds to update the backup file after a DHCP snooping
entry change. If no DHCP snooping entry changes, the backup file is not updated.