< Home

dhcp snooping user-bind autosave

Function

The dhcp snooping user-bind autosave command enables local automatic backup of the DHCP snooping binding table.

The undo dhcp snooping user-bind autosave command disables local automatic backup of the DHCP snooping binding table.

By default, local automatic backup of the DHCP snooping binding table is disabled.

Format

dhcp snooping user-bind autosave file-name [ write-delay delay-time ]

undo dhcp snooping user-bind autosave

Parameters

Parameter Description Value

file-name

Specifies the path for storing the file that backs up the binding table and the file name. The file path and name supported by the device must be both entered.

The value is a string of 1 to 51 case-insensitive characters without spaces.

write-delay delay-time

Specifies the interval for local automatic backup of the DHCP snooping binding table.

If this parameter is not specified, the backup interval is the default value.

The value is an integer that ranges from 60 to 4294967295, in seconds. By default, the interval for local automatic backup of the DHCP snooping binding table is 86400 seconds.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The dhcp snooping user-bind autosave command can retain the configured DHCP snooping binding entries after the device restarts. After a DHCP snooping binding table is generated, you can run the dhcp snooping user-bind autosave command to enable local automatic backup of the DHCP snooping binding table.

Prerequisites

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

Precautions

This prevents data loss in the DHCP snooping binding table. The suffix of the file must be .tbl.

If the system restarts within one day after the system time is changed, immediately run the dhcp snooping user-bind autosave command again to back up the latest dynamic binding entries because it is not the time to update the binding table. If you do not run this command, the lease will be inconsistent with the current system time after the dynamic binding table is restored.

If a device where the DHCP snooping binding table is backed up is powered off and then restarted after the lease of DHCP snooping binding table expires, the DHCP snooping entries cannot be restored.

Example

# Configure the device to back up the DHCP snooping binding table to the file backup.tbl in the flash every 5000 seconds.

<HUAWEI> system-view
[HUAWEI] dhcp enable
[HUAWEI] dhcp snooping enable
[HUAWEI] dhcp snooping user-bind autosave flash:/backup.tbl write-delay 5000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >