Interface authentication is used among neighboring routers to set the authentication mode and password. Interface authentication takes precedence over area authentication.
By default, authentication is not configured for OSPF interface. Configuring authentication is recommended to ensure system security.
The system view is displayed.
The OSPF interface view is displayed.
Run ospf authentication-mode simple [ plain plain-text | [ cipher ] cipher-text ]
Simple authentication is configured for the OSPF interface.
When configuring an authentication password, select the ciphertext mode because the password is saved in configuration files in simpletext if you select simpletext mode, which has a high risk. To ensure device security, change the password periodically.
Run ospf authentication-mode { md5 | hmac-md5 | hmac-sha256 } [ key-id { plain plain-text | [ cipher ] cipher-text } ]
Cipher-text authentication is configured for the OSPF interface.
For the sake of security, using the HMAC-SHA256 algorithm rather than the MD5 and HMAC-MD5 algorithm is recommended.
Run ospf authentication-mode keychain keychain-name
The Keychain authentication is configured for the OSPF interface.
Before using the Keychain authentication, you must run the keychain command to create a keychain. Then, run the key-id, key-string, and algorithm commands to configure a key ID, a password, and an authentication algorithm for this keychain. Otherwise, the OSPF authentication will fail.
Run ospf authentication-mode null
The OSPF interface does not perform authentication.
The configuration is committed.