The dhcp snooping user-bind http https command enables the device to automatically back up DHCP snooping binding entries on the remote HTTP or HTTPS server.
The undo dhcp snooping user-bind http https command disables the device from automatically backing up DHCP snooping binding entries on the remote HTTP or HTTPS server.
By default, the device is not enabled to automatically back up DHCP snooping binding entries on the remote HTTP or HTTPS server.
dhcp snooping user-bind http { remotefilename filename host-ip ip-address [ port port-number ] | url url-string } [ username username password password ] [ write-delay delay-time ]
dhcp snooping user-bind https ssl-policy ssl-policy-name { remotefilename filename host-ip ip-address [ port port-number ] | url url-string } [ username username password password ] [ write-delay delay-time ]
undo dhcp snooping user-bind { http | https }
Parameter | Description | Value |
---|---|---|
ssl-policy ssl-policy-name | Specifies the name of the SSL policy used by the HTTPS protocol. |
The value is a string of 1 to 23 case-insensitive characters without spaces. The value can contain digits, letters, and underscores (_). |
remotefilename filename | Specifies the name of the file where DHCP snooping binding entries will be backed up on the HTTP or HTTPS 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 HTTP or HTTPS server. |
The value is in dotted decimal notation. |
port port-number | Specifies the port number of the HTTP or HTTPS server. |
The value is an integer that ranges from 1 to 65535. |
url url-string | Specifies the URL of the HTTP or HTTPS server, in the format http://server_location/file_location, for example, http://10.1.1.1:70/32768snp.txt. |
The value is a string of 1 to 200 case-sensitive characters without spaces. |
username username | Specifies the user name to connect to the HTTP or HTTPS server. |
The value is a string of 1 to 64 case-sensitive characters without spaces. |
password password | Specifies the password to connect to the HTTP or HTTPS server. |
The value is a string of case-sensitive characters without spaces. It can be a ciphertext password of 48 characters or a plaintext password of 1 to 16 characters. NOTE:
For security purposes, it is recommended that the password contains at least two types of lowercase letters, uppercase 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 http https command to enable the device to automatically back up DHCP snooping binding entries on the remote HTTP or HTTPS server.
Prerequisites
DHCP snooping has been enabled using the dhcp snooping enable command.
Precautions
The HTTP protocol will bring risk to device security. The HTTPS protocol is recommended for file operations.
# Configure the device to automatically back up DHCP snooping binding entries to the backup file on the HTTP server at 10.1.1.1 with the HTTP user name huawei and password Huawei@123.
<HUAWEI> system-view [HUAWEI] dhcp snooping enable [HUAWEI] dhcp snooping user-bind http remotefilename backup host-ip 10.1.1.1 username huawei password Huawei@123
<HUAWEI> system-view [HUAWEI] dhcp snooping enable [HUAWEI] dhcp snooping user-bind https ssl-policy s1 remotefilename backup host-ip 10.1.1.1 username huawei password Huawei@123