area virtual-link authentication (OSPFv2)

Configures MD5, HMAC-SHA-1 or HMAC-SHA-256 authentication for an Open Shortest Path First version 2 (OSPFv2) area virtual link.
Syntax
area { ip-addr | decimal } virtual-link E.F.G.H authentication { md5 | hmac-sha-1 | hmac-sha-256} key-id key-id-val key key-string
no area { ip-addr | decimal } virtual-link E.F.G.H authentication
Command Default

MD5, HMAC-SHA-1 or HMAC-SHA-256 authentication is disabled by default.

Parameters
ip-addr
Area address in IP address format.
decimal
Area address in decimal format.
E.F.G.H
ID of the OSPF router at the remote end of the virtual link.
md5
Specifies MD5 authentication.
hmac-sha-1
Specifies HMAC-SHA-1 authentication.
hmac-sha-256
Specifies HMAC-SHA-256 authentication.
key-id key-id-val
Identifies the number of the MD5, HMAC-SHA-1 or HMAC-SHA-256 algorithm. The number can be from 1 through 255.
key key-string
Sets the corresponding key string to be used with the MD5, HMAC-SHA-1 or HMAC-SHA-256 algorithm. The recommended key string length is 1 through 63 characters.
Modes

OSPF router configuration mode

OSPF router VRF configuration mode

Usage Guidelines

Use this command to set or reset the MD5, HMAC-SHA-1 or HMAC-SHA-256 authentication configuration on the OSPFv2 area virtual link.

The no form of the command removes MD5, HMAC-SHA-1 or HMAC-SHA-256 authentication configuration from the OSPFv2 area virtual link.

Examples

The following example enables HMAC-SHA-1 authentication using the key ID 10 and key string "mypasswordkey" on the specified area virtual link.

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 hmac-sha-1 key-id 10 key mypasswordkey
History
Release version Command history
08.0.70 This command was introduced.