ip ospf authentication-key

Syntax

ip ospf authentication-key {ciphertext | plaintext} <PASSWORD>

no ip ospf authentication-key

Description

Sets the authentication password used for simple-text authentication. If the password is given in ciphertext it will be decrypted and applied to the protocol.

The no form of this command deletes the authentication password used for simple-text authentication.

Command context

config-if

Parameters

ciphertext

Specifies providing the password in encrypted format.

plaintext

Specifies providing the password in simple-text format.

<PASSWORD>

Specifies the password for simple-text authentication.

Authority

Administrators

Examples

Setting OSPF simple-text authentication password on the interface:

switch(config)# interface 1/1/1
switch(config-if)# ip ospf authentication-key ciphertext ADbchgs
switch(config-if)# ip ospf authentication-key plaintext secure

Deleting OSPF simple-text authentication password on the interface:

switch(config)# interface 1/1/1
switch(config-if)# no ip ospf authentication-key