ip ospf authentication-key

Configures simple password-based authentication for OSPF.

Syntax

ip ospf authentication-key password
no ip ospf authentication-key

Command Default

Authentication is disabled.

Parameters

password
OSPF processes password as a plain text password.

Modes

Interface subtype configuration mode

Usage Guidelines

Use this command to set or reset simple password-based authentication on the OSPFv2 interface to which you are connected. The no form of the command disables OSPFv2 authentication.

Examples

The following example configures an authentication key for an OSPF virtual Ethernet (VE) interface.

device# configure terminal
device(config)# interface ve 1
device(config-if-Ve-1)# ip ospf authentication-key morningadmin