Configuring MD5 Authentication on an OSPFv2 Virtual Link

To configure MD5 authentication on an OSPFv2 virtual link, complete the following steps.
  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the ip router-id command to specify the required router.
    device(config)# ip router-id 10.1.1.1
  3. Enter the router ospf command to enter OSPFv2 configuration mode and enable OSPFv2 on the device.
    device(config)# router ospf
  4. Enter the area area-ID virtual-link virtual-link-address authentication md5 command, with the required parameters. The following example enables MD5 authentication with key ID 10 and key string "mymd5passwordkey".
    device(config-ospf-router)# area 1 virtual-link 20.1.1.1 authentication md5 key-id 10 key mymd5passwordkey

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

device# configure terminal
device(config)# ip router-id 10.1.1.1
device(config)# router ospf
device(config-ospf-router)# area 1 virtual-link 20.1.1.1 authentication md5 key-id 10 key mymd5passwordkey