Configure authentication on the interface. Only one method of authentication can be active on an interface at a time. If one method is already configured on an interface, configuring an alternative method on the same interface automatically overwrites the first method used.
Prerequisites
You must be in the interface configuration context, as indicated by theswitch(config-if)#
prompt.
Procedure
- Set the authentication type that will be used for authentication with the neighbor router using the following command. For command details, see# guid - 1 - ca352c3 - 0619 - 4 - d3c - 8 a97 facc23b65c08.
ip ospfauthentication {message-digest | simple-text | null | keychain}
For example, the following command sets the authentication type to simple-text.
switch(config-if)#ip ospfauthentication simple-text
- For simple-text authentication, set the password using the following command. For command details, see
ip ospfauthentication-key
.
ip ospfauthentication-key
For example:
switch(config-if)#ip ospfauthentication-key secure
- For MD5 authentication, set the password using the following command. For command details, see
ip ospfmessage-digest-key md5
.
ip ospfmessage-digest-key {Key ID} md5 {ciphertext | plaintext}
For example:
switch(config-if)#ip ospfmessage-digest-key 1 md5 ciphertext 100