Configuring MD5 authentication on an OSPFv2 interface

To configure MD5 authentication on an OSPFv2 interface, complete the following steps.
  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 ve 1
  3. Enter the ip ospf authentication md5 command with the required parameters. The following example enables MD5 authentication with key ID 10 and key string "mymd5passwordkey".
    device(config-vif-1)# ip ospf authentication md5 key-id 10 key mymd5passwordkey

The following example enables MD5 authentication using key ID 10 and key string "mymd5passwordkey" on the specified interface.

device# configure terminal
device(config)# interface ve 1
device(config-vif-1)# ip ospf authentication md5 key-id 10 key mymd5passwordkey