ip ospf message-digest-key

Last Updated : Oct 26, 2015 |

Specifies the message-digest key for the interface. This command enables OSPF MD5 authentication. Use no ip ospf message-digest-key to remove an old MD5 key.

Syntax

ip ospf message-digest-key key_id algorithm key

no ip ospf message-digest-key key_id

Parameters

Parameter

Description

Possible Values

Default Value

key_id

The OSPF key ID

1-255

10

algorithm

The authentication algorithm

md5

key

The OSPF password

User level

read-write

Context

interface:FastEthernet (L2-L3, L3, PPP L2-L3, PPP L3), VLAN (L2-L3, L3), Loopback (L2-L3, L3), Tunnel (L2-L3, L3), Dialer (L2-L3, L3)

Example

To specify the message-digest key to be 3 with password mypwd:

Gxxx-001(if:FastEthernet )# ip ospf message-digest-key 3 md5 mypwd