The dhcp snooping user-bind sftp load command configures the device to obtain and restore backup DHCP snooping binding entries on the remote SFTP server.
dhcp snooping user-bind sftp load remotefilename filename host-ip ip-address username username password password
Parameter | Description | Value |
---|---|---|
remotefilename filename | Specifies the name of the file from which the device obtains DHCP snooping binding entries. |
The value is a string of 1 to 64 characters without spaces. The string cannot contain the following characters: ~ * \ | : " ? < >. |
host-ip ip-address | Specifies the IP address of the remote SFTP server. |
The value is in dotted decimal notation. |
username username | Specifies the user name to connect to the SFTP server. |
The value is a string of 1 to 64 characters without spaces. |
password password | Specifies the password to connect to the SFTP server. |
The value is a string of 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. |
Usage Scenario
After running the dhcp snooping user-bind sftp command to enable the device to automatically back up DHCP snooping binding entries on the remote SFTP server, you can run the dhcp snooping user-bind sftp load command to configure the device to obtain and restore backup DHCP snooping binding entries on the remote SFTP server.
Prerequisites
DHCP snooping has been enabled using the dhcp snooping enable command.
# Configure the device to obtain and restore backup DHCP snooping binding entries from the backup file on the remote SFTP server at 10.137.12.10 with the SFTP user name huawei and password Huawei@123.
<HUAWEI> system-view [HUAWEI] dhcp snooping enable [HUAWEI] dhcp snooping user-bind sftp load remotefilename backup host-ip 10.137.12.10 username huawei password Huawei@123 Info: Downloading the file from the remote SFTP server. Please wait...done. Total number of dynamic binding table in remote file: 30 Recovering dynamic binding table, please wait for a moment.... 10 successful, 20 failed. Binding Collisions : 20 Exceeds max limits : 0 Invalid interfaces : 0 Invalid vlans : 0 Invalid snp configurations : 0 Expired leases : 0 Parse failures : 0
Item |
Description |
---|---|
Total number of dynamic binding table in remote file | Number of DHCP snooping binding entries stored on the remote server. |
m successful, n failed | m DHCP snooping binding entries are recovered successfully, and n DHCP snooping binding entries fail to be recovered. |
Binding Collisions | Number of DHCP snooping binding entries that cannot be restored because of collision between local entries and remote entries. |
Exceeds max limits | Number of DHCP snooping binding entries that cannot be restored because the number of local entries reaches the upper limit. |
Invalid interfaces | Number of DHCP snooping binding entries that cannot be restored because the local interface becomes invalid, for example, Down. |
Invalid vlans | Number of DHCP snooping binding entries that cannot be restored because the VLAN on local device becomes invalid, for example, unavailable VLAN. |
Invalid snp configurations | Number of DHCP snooping binding entries that cannot be restored because the DHCP snooping function is not enabled. |
Expired leases | Number of DHCP snooping binding entries that cannot be restored because the lease of DHCP snooping binding table expires. |
Parse failures | Number of DHCP snooping binding entries that cannot be restored because the device fails to parse the binding table file. |