The dhcpv6 relay database authentication-mode command configures the integrity authentication mode for a binding table file.
The undo dhcpv6 relay database authentication-mode command restores the integrity authentication mode of a binding table file to check.
By default, the file integrity authentication mode is check.
Parameter | Description | Value |
---|---|---|
check |
Indicates that the authentication mode is check. If the file is an old version file that does not carry the file integrity authentication code, the data is directly restored. If the file is a new version file that carries the file integrity authentication code, the file integrity authentication is performed before the data is restored. |
- |
no-check |
Indicates that the file integrity authentication is not performed and data is directly restored. |
- |
force-check |
Indicates that the authentication mode is force-check. If the file is an old version file that does not carry the file integrity authentication code, the data is not restored. If the file is a new version file that carries the file integrity authentication code, the file integrity authentication is performed before the data is restored. |
- |
Usage Scenario
To prevent data loss caused by device faults, you can enable automatic backup of prefix routing information so that the system can generate backup files. 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 prefix routing information from the backup file, the system decrypts the file integrity authentication code and verifies the file integrity based on the decrypted file integrity authentication code. If the verification is successful, the data is restored. If the verification fails, the data is discarded and a log is recorded.
Precautions