ip ospf message-digest-key

To enable Open Shortest Path First (OSPF) Message Digest 5 (MD5) authentication, use the ip ospf message-digest-key command. To remove an old MD5 key, use the no form of this command.

ip ospf message-digest-key key-id md5 [0 | 3 | 7] key

no ip ospf message-digest-key key-id

Syntax Description

key-id

Identifier in the range from 1 to 255.

0

(Optional) Specifies an unencrypted password to generate the md5 key.

3

(Optional) Specifies an encrypted 3DES password to generate the md5 key.

7

(Optional) Specifies a Cisco type 7 encrypted password to generate the md5 key.

key

Alphanumeric password of up to 16 bytes.


Command Default

Unencrypted

Command Modes

Interface configuration mode

Command History

Release
Modification

5.0(3)N1(1)

This command was introduced.


Usage Guidelines

Use the ip ospf message-digest-key command when you configure the MD5 digest authentication mode. All neighbor routers must have the same key value on the network.

This command requires the LAN Base Services license.

Examples

This example shows how to set key 19 with the password 8ry4222:

switch(config)# interface ethernet 1/2
switch(config-if)# no switchport
switch(config-if)# ip ospf message-digest-key 19 md5 8ry4222
switch(config-if)#

Related Commands

Command
Description

area authentication

Enables authentication for an OSPF area.

copy running-config startup-config

Saves the configuration changes to the startup configuration file.

ip ospf authentication

Specifies the authentication type for an interface.

show ip ospf

Displays OSPF information.