The dhcp snooping user-bind tftp load command configures the device to obtain and restore backup DHCP snooping binding entries on the remote TFTP server.
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 TFTP server. |
The value is in dotted decimal notation. |
Usage Scenario
After running the dhcp snooping user-bind tftp command to enable the device to automatically back up DHCP snooping binding entries on the remote TFTP server, you can run the dhcp snooping user-bind tftp load command to configure the device to obtain and restore backup 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 load command is recommended.
# Configure the device to obtain and restore backup DHCP snooping binding entries from the backup file on the remote TFTP server at 10.137.12.10.
<HUAWEI> system-view [HUAWEI] dhcp snooping enable [HUAWEI] dhcp snooping user-bind tftp load remotefilename backup host-ip 10.137.12.10 Info: Transfer file in binary mode. Downloading the file from the remote TFTP server. Please wait... 100% TFTP: Downloading the file successfully. 656 byte(s) received in 1 second(s). Total number of dynamic binding table in remote file: 20 Recovering dynamic binding table, please wait for a moment.... 10 successful, 10 failed. Binding Collisions : 10 Exceeds max limit : 0 Invalid interfaces : 0 Invalid vlan : 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. |
Binding Collisions | Number of DHCP snooping binding entries that cannot be restored because of collision between local entries and remote entries. |
Exceeds max limit | 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 vlan | 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. |