OSPFv2 and OSPFv3 comparison

The following table examines details of the OSPF routing protocol by comparing OSPFv2 and OSPFv3:

OSPFv2OSPFv3
OSPFv2 supports only IPv4Supports both IPv4 and IPv6
Header size 24 bytes.Header size of 16 bytes.
Uses seven types of LSAsUses nine types of LSAs
Only one instance of OSPF can function per linkOSPFv3 instance IDs allow for multiple OSPF instances per link, as well as multiple address families
No link-local flooding scopeAddition of a link-local flooding scope for IPv6
Operates on subnets rather than linksOperates on links rather than subnets
Needs network mask for adjacency formationDoesn’t need network mask for adjacency formation
MD5 Hashing is used for AuthenticationIPSec is used for Authentication
Nodes from different subnets can’t communicateNodes from different subnets can communicate
The network command is used to specify participating subnets and interfacesInterface commands are used to enable routing and neighbor adjacencies

https://networklessons.com/ipv6/ospfv2-vs-ospfv3