Configuring an MD5 password and authentication change hold time for an OSPFv2 interface

An MD5 password and authentication change hold time can be configured. This task sets an MD5 password and sets an authentication change hold time for an OSPFv2 Ethernet interface

About this task

Procedure

  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the interface command and specify an interface.
    device(config)# interface ethernet 1/1
  3. Enter the ip ospf md5-authentication command with the key-activation-wait-time parameter, and specify a time interval, to set the time that OSPFv2 waits before activating a new MD5 key.
    device(conf-if-eth-1/1)# ip ospf md5-authentication key-activation-wait-time 240
  4. Enter the ip ospf md5-authentication command with the key-id and key parameters to set the MD5 key ID and a password.
    device(conf-if-eth-1/1)# ip ospf md5-authentication key-id 22 key myospfpassword

Example

The following example sets the time that OSPFv2 waits before activating a new MD5 key to 240 seconds on an Ethernet interface, and sets the MD5 key ID to 22 and a password “myospfpassword” on an Ethernet interface.

device# configure terminal
device(config)# interface ethernet 1/1
device(conf-if-eth-1/1)# ip ospf md5-authentication key-activation-wait-time 240
device(conf-if-eth-1/1)# ip ospf md5-authentication key-id 22 key myospfpassword