< Home

dhcp snooping user-bind sftp

Function

The dhcp snooping user-bind sftp command enables the device to automatically back up DHCP snooping binding entries on the remote SFTP server.

The undo dhcp snooping user-bind sftp command disables the device from automatically backing up DHCP snooping binding entries on the remote SFTP server.

By default, the device is not enabled to automatically back up DHCP snooping binding entries on the remote SFTP server.

Format

dhcp snooping user-bind sftp remotefilename filename host-ip ip-address username username password password [ write-delay delay-time ]

undo dhcp snooping user-bind sftp

Parameters

Parameter Description Value
remotefilename filename

Specifies the name of the file where DHCP snooping binding entries will be backed up on the remote SFTP server.

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 case-sensitive characters without spaces.

password password

Specifies the password to connect to the SFTP 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.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the device restarts, to prevent loss of generated DHCP snooping binding entries on the device, run the dhcp snooping user-bind sftp command to enable the device to automatically back up DHCP snooping binding entries on the remote SFTP server.

Prerequisites

DHCP snooping has been enabled using the dhcp snooping enable command.

Precautions

The suffix of the file must be .tbl.

Example

# Enable the device to automatically back up DHCP snooping binding entries to the backup file on the 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 remotefilename backup host-ip 10.137.12.10 username huawei password Huawei@123
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >