The dhcp snooping user-bind ftp command enables the device to automatically back up DHCP snooping binding entries on the remote FTP server.
The undo dhcp snooping user-bind ftp command disables the device from automatically backing 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.
dhcp snooping user-bind ftp remotefilename filename host-ip ip-address username username password password [ write-delay delay-time ]
undo dhcp snooping user-bind ftp
Parameter | Description | Value |
---|---|---|
remotefilename filename | Specifies the name of the file where DHCP snooping binding entries will be backed up on the remote FTP 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 remote FTP server. |
The value is in dotted decimal notation. |
username username | Specifies the user name to connect to the FTP server. |
The value is a string of 1 to 64 case-sensitive characters without spaces. |
password password | Specifies the password to connect to the FTP server. |
The value is a string of case-sensitive characters without spaces. It can be a cipher-text password of 48 characters or a plain-text password of 1 to 16 characters. NOTE:
To improve security, it is recommended that the password contains at least two types of lower-case letters, upper-case letters, numerals, and special characters, and contains at least 6 characters. |
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 system backs up DHCP snooping binding entries every two days. |
Usage Scenario
When the device restarts, to prevent loss of generated DHCP snooping binding entries on the device, run the dhcp snooping user-bind ftp command to enable the device to automatically back up DHCP snooping binding entries on the remote FTP server.
Prerequisites
DHCP snooping has been enabled using the dhcp snooping enable command.
Precautions
The FTP 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 FTP server at 10.137.12.10 with the FTP user name huawei and password Huawei@123.
<HUAWEI> system-view [HUAWEI] dhcp snooping enable [HUAWEI] dhcp snooping user-bind ftp remotefilename backup host-ip 10.137.12.10 username huawei password Huawei@123