dhcp snooping bind-table autosave

Function

The dhcp snooping bind-table autosave command enables the automatic backup function for the DHCP snooping binding table.

The undo dhcp snooping bind-table autosave command disables the automatic backup function for the DHCP snooping binding table.

By default, the automatic backup function is disabled for the DHCP snooping binding table.

Format

dhcp snooping bind-table autosave filename

undo dhcp snooping bind-table autosave

Parameters

Parameter Description Value
filename

Specifies the path and name of the backup file.

The value is a string of 1 to 56 characters. The backup file directory and name must be recognizable for the device, and the file name suffix must be .tbl, for example, cfcard:/dhcp/*.tbl.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

After DHCP snooping is enabled globally, binding entries are generated. To restart a device with binding entries not lost, configure the automatic backup function for the DHCP snooping binding table.

The file name extension of the specified file must be .tbl, the file must be saved in the DHCP directory.

The file name contains only numerals, letters, and underlines (_).

The sum length of the file name and absolute path cannot exceed 56 characters.

Prerequisites

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

Example

# Configure the system to automatically back up the DHCP snooping binding table to the backup.tbl file in the DHCP directory on the hard disk.
<HUAWEI> system-view
[~HUAWEI] dhcp snooping enable
[*HUAWEI] dhcp snooping bind-table autosave cfcard:/dhcp/backup.tbl
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >