Octet

How is OSPFv3 different from OSPFv2?

Show the answer

Say this first

Same SPF engine, areas, LSA flooding and neighbor states. The differences: OSPFv3 runs per link rather than per subnet, uses link-local addresses for hellos and next hops, and sends to ff02::5 and ff02::6. The router ID is still a 32-bit number and must be set by hand on a router with no IPv4 address. Authentication is no longer in the protocol: it uses IPsec or the authentication trailer. Prefixes moved out of the router and network LSAs into new Link and Intra-Area-Prefix LSAs. Address families let it carry IPv4 too.

Go deeper

Side by side

OSPFv2OSPFv3
CarriesIPv4IPv6, and IPv4 with address families (RFC 5838)
Runs ona subneta link; several instances per link with Instance ID
Neighbor source addressinterface IPv4link-local
Multicast224.0.0.5, 224.0.0.6ff02::5, ff02::6
Router ID32-bit, can be taken from an IPv4 address32-bit, set by hand if no IPv4 exists
Authenticationin the packet headerIPsec AH or ESP (RFC 4552), or authentication trailer (RFC 7166)
Prefixes carried inrouter (1) and network (2) LSAsIntra-Area-Prefix LSA
Must match on the linksubnet and mask, area, timers, autharea, timers, Instance ID; no subnet check

New LSAs

LSAFunction codeRole
Router0x2001topology only
Network0x2002topology only
Inter-Area-Prefix0x2003replaces type 3
Inter-Area-Router0x2004replaces type 4
AS-External0x4005type 5
NSSA0x2007type 7
Link0x0008link-local scope: the router's link-local address and prefixes on the link
Intra-Area-Prefix0x2009prefixes of routers and transit links

Separating topology from prefixes means a prefix change does not force a full SPF run.

Config on IOS-XE

Cisco IOS
ipv6 unicast-routing
!
router ospfv3 1
 router-id 1.1.1.1
 address-family ipv6 unicast
  passive-interface GigabitEthernet0/0/0
 exit-address-family
!
interface GigabitEthernet0/0/1
 ospfv3 1 ipv6 area 0

The older form ipv6 router ospf 1 with ipv6 ospf 1 area 0 on the interface still works.

Traps

  • Saying OSPFv3 router IDs are 128-bit.
  • Forgetting to set a router ID on an IPv6-only router. The process will not start.
How did you do?Book 3.4 RoutingBook 4.2 IP Version 6