Key chains are sequences of keys (shared secrets). Users can configure key chains and can use keys with features that secure communications with other devices by using key-based authentication and optionally perform periodic key rotations within the chain. For OSPFv2 the new authentication feature can be applied on an interface and a virtual link.
Configuring OSPFv2 Authentication feature:
device# configure terminal
device(config-router-ospf)# area 0
device(config-router-ospf)# area 1
device(config)# interface ethernet 1/1 device(config)# enable device(config)# ip ospf authentication key-chain keychain2 device(config)# ip address 53.54.43.54/24 device(config)# geg-default neg-off
device(config-router-ospf)# area 1 virtual-link 3.3.3.3 device(config-router-ospf)# area 1 virtual-link 3.3.3.3 authentication key-chain keychain1