The authentication-mode command configures an authentication mode and a password for an OSPFv3 process.
The undo authentication-mode command deletes the authentication mode and password configured for an OSPFv3 process.
By default, authentication is not configured for an OSPFv3 process. Configuring authentication is recommended to ensure system security.
Parameter | Description | Value |
---|---|---|
hmac-sha256 |
Configures HMAC-SHA256 authentication. |
- |
hmac-sm3 |
Sets the HMAC-SM3 authentication mode. |
- |
key-id KeyId |
Specifies a key ID for authentication, which must be the same as the one configured at the other end. |
The value is an integer ranging from 1 to 65535. |
plain PlainText |
Specifies simple authentication. You can only type in simple passwords, and the passwords are displayed in simple mode in the configuration file.
|
The value is a string of 1 to 255 characters. A password cannot contain a question mark (?), but can contain spaces if surrounded by double quotation marks (""). In this case, the double quotation marks are part of the password. |
cipher CipherText |
Specifies the cipher authentication. You can type in simpletext or ciphertext passwords, and the passwords are displayed in ciphertext in the configuration file. |
The value can be a string of 1 to 255 characters for a simpletext and 20 to 432 characters for a ciphertext. A password cannot contain a question mark (?), but can contain spaces if surrounded by double quotation marks (""). In this case, the double quotation marks are part of the password. |
Usage Scenario
Due to inherent defects and flawed implementation of the TCP/IP protocol suite, there are an increasing number of attacks, which poses greater threats on TCP/IP networks than ever before. The attacks on network devices may lead to network failures. To configure an authentication mode and a password for an OSPFv3 process or area to improve OSPFv3 network security, run the authentication-mode command.
Precautions
To configure OSPFv3 interface authentication, run the ospfv3 authentication-mode command.