The dhcp snooping user-bind tftp command enables the device to automatically back up DHCP snooping binding entries on the remote TFTP server.
The undo dhcp snooping user-bind tftp command disables the device from automatically backing 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.
dhcp snooping user-bind tftp remotefilename filename host-ip ip-address [ write-delay delay-time ]
undo dhcp snooping user-bind tftp
Parameter | Description | Value |
---|---|---|
remotefilename filename | Specifies the name of the file where DHCP snooping binding entries will be backed up on the remote TFTP server. |
The value is a string of 1 to 64 case-sensitive characters without spaces. The string cannot contain the following characters: ~ * \ | : " ? < >. |
host-ip ip-address | Specifies the IP address of the TFTP server. |
The value is in dotted decimal notation. |
write-delay delay-time | Specifies the interval for automatically backing up DHCP snooping binding entries. If this parameter is not used, the default interval is used. |
The value is an integer that ranges from 300 to 4294967295, in seconds. By default, the interval for local automatic backup of the DHCP snooping binding table is 86400 seconds. |
Usage Scenario
When the device restarts, to prevent loss of generated DHCP snooping binding entries on the device, run the dhcp snooping user-bind tftp command to enable the device to automatically back up DHCP snooping binding entries on the remote TFTP server.
Prerequisites
DHCP snooping has been enabled using the dhcp snooping enable command.
Precautions
The TFTP protocol will bring risk to device security. The SFTP protocol configured using the dhcp snooping user-bind sftp command is recommended.
# Enable the device to automatically back up DHCP snooping binding entries to the backup file on the TFTP server at 10.137.12.10 at intervals of 5000s.
<HUAWEI> system-view [HUAWEI] dhcp snooping enable [HUAWEI] dhcp snooping user-bind tftp remotefilename backup host-ip 10.137.12.10 write-delay 5000