area virtual-link authentication (OSPFv3)

Enables HMAC-SHA-1 or HMAC-SHA-256 authentication for virtual links in an OSPFv3 area.
Syntax
area { ip-addr | decimal } virtual-link E.F.G.H authentication { 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

Authentication is not enabled on a virtual-link.

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.
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 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 HMAC-SHA-1 or HMAC-SHA-256 algorithm. The recommended key string length is 1 through 63 characters.
Modes

OSPFv3 router configuration mode

OSPFv3 router VRF configuration mode

Usage Guidelines

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

The no form of the command removes HMAC-SHA-1 or HMAC-SHA-256 authentication configuration from the OSPFv3 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)# ipv6 router ospf
device(config-ospf6-router)# area 1 virtual-link 20.1.1.1 authentication hmac-sha-1 key-id 10 key mypasswordkey