If you're coming from an OSPFv2 world, you're used to typing in a simple {IP OSPF AUTHENTICATION-KEY} command. When you jump to IPv6 OSPFv3, you might look for the equivalent command and be surprised to find it's not there.
How does OSPFv3 secure its neighbour relationships and routing updates? The answer is a fundamental shift in design: OSPFv3 relies on IPsec authentication. OSPFv3 doesn't include any authentication capabilities of its own. The OSPFv3 authentication field has been removed from OSPFv3 packet headers. OSPFv3 requires the IPv6 authentication header (AH) or IPv6 ESP header to ensure the integrity, authentication, and confidentiality of routing exchanges.
What are the benefits?
This approach has several benefits:
- No more cleartext passwords
- Stronger crypto (SHA-256, AES)
- Leverages existing infrastructure
- Standardization
How does it work?
OSPFv3 supports two methods to implement IPsec.
1. Manual- this is the most straightforward and commonly used method, you manually configure a security policy index (SPI) and a pre-shared key on both routers.
The building blocks:
- SPI- a number that uniquely identifies the security policy to both routers. It must match on both sides.
- Authentication algorithm- the hashing algorithm to use ( SHA1, SHA256).
- Encryption key- the actual pre-shared password. It must match on both sides.
2. IPsec profile ( the scalable method)
- For larger networks, manually configuring keys on every interface becomes a management headache. This is where the IPsec profile comes in.
- An IPsec profile defines the security policy (algorithms, keys, etc) and is then applied to an OSPFv3 process. This applies the policy to all OSPFv3 interfaces, making it much more scalable.
- This method is complex to set up, but it is the recommended way for large-scale deployments.
- Configure the topology as per the diagram
- Configure the IPv6 addresses as per the topology
- Configure OSPFv3, and both routers are in area 0
- Configure OSPFv3 authentication on the interfaces
- erase the previous configuration
- Reconfigure OSPFv3 authentication for the entire OSPFv3 area 0
- Verify with show commands and messages.



