The dhcp snooping database authentication-mode command configures the integrity check mode for a binding table file.
The undo dhcp snooping database authentication-mode command restores the integrity check mode of a binding table file to check.
By default, the integrity check mode of a binding table file is check.
Parameter | Description | Value |
---|---|---|
check |
Indicates the check mode. If the file is a historical version file that does not carry the file integrity check code, the data is directly restored. If the file is a new version file that carries the file integrity check code, the file integrity check is performed before the data is restored. |
- |
no-check |
Indicates the non-check mode. That is, file integrity check is not performed, and data is directly restored. |
- |
force-check |
Indicates the forcible check mode. If the file is a historical version file that does not carry the file integrity check code, the data is not restored. If the file is a new version file that carries the file integrity check code, the file integrity check is performed before the data is restored. |
- |
Usage Scenario
To prevent data loss caused by device faults, you can enable automatic backup of the DHCP snooping binding table. The system then generates a backup file. To prevent the backup file from being tampered with, an encrypted file integrity check code is added to the backup file. After the device restarts and before the system restores the binding table from the backup file, the system decrypts the file integrity check code and verifies the file integrity based on the decrypted file integrity check code. If the verification is successful, the data is restored. If the verification fails, the data is discarded and a log is recorded.
Prerequisites
DHCP snooping has been enabled globally using the dhcp snooping enable command.
Precautions