Note
When IPsec is configured for an area, the security policy is applied to all the interfaces in the area.device# configure terminal
device(config)# ip router-id 10.11.12.13
device(config)# ipv6 router ospf
device(config-ipv6-router-ospf-vrf-default-vrf)# area 0 authentication spi 600 ah hmac-md5 key abcef12345678901234fedcba098765432109876
Note
MD5 passwords cannot have ASCII character 32 ('SPACE') as a part of the password string.The following example enables AH and MD5 authentication for the OSPFv3 area, setting an SPI value of 600.
device# configure terminal device(config)# ip router-id 10.11.12.13 device(config)# ipv6 router ospf device(config-ipv6-router-ospf-vrf-default-vrf)# area 0 authentication spi 600 ah hmac-md5 key abcef12345678901234fedcba098765432109876