For IPsec to work, the IPsec configuration must be the same on all the routers to which an interface connects.
Note
Ensure that OSPFv3 areas are assigned. All device interfaces must be assigned to one of the defined areas on an OSPFv3 router. When an interface is assigned to an area, all corresponding subnets on that interface are automatically included in the assignment.device# configure terminal
device(config)# interface ethernet 1/1
device(conf-if-eth-1/1)# ipv6 ospf area 0
device(conf-if-eth-1/1)# ipv6 ospf authentication spi 512 esp null hmac-sha1 key abcef12345678901234fedcba098765432109876
The following example enables ESP and SHA-1 on a specified OSPFv3 Ethernet interface.
device# configure terminal device(config)# interface ethernet 1/1 device(conf-if-eth-1/1)# ipv6 ospf area 0 device(conf-if-eth-1/1)# ipv6 ospf authentication spi 512 esp null hmac-sha1 key abcef12345678901234fedcba098765432109876