Pcornel
Networking · Routing › OSPF

OSPFv3

Cheat sheet · https://pcornel.dk/topic.php?topic=636

Back to the Topic

Answer

OSPFv3 is OSPF for IPv6. It works like OSPFv2 but runs per link, using link-local addresses for adjacencies and next hops; prefixes are carried in their own LSAs. It still uses a 32-bit router ID.

Remember

ipv6 unicast-routing must be on. Enable it per interface: ipv6 ospf <process> area <area> (classic) or ospfv3 <process> ipv6 area <area> (address-family mode). A router with no IPv4 address needs router-id configured by hand. Next hops in the routing table are link-local.

First checks

  • show ospfv3 neighbor (or show ipv6 ospf neighbor) — neighbours and state.
  • show ospfv3 interface brief (or show ipv6 ospf interface brief) — OSPFv3 interfaces and areas.
  • show ospfv3 database — the LSAs.
  • show ipv6 route ospf — the routes installed.
  • show ipv6 interface brief — link-local addresses, which OSPFv3 uses for adjacencies.

Commands

show ipv6 ospf neighbor
Inspect OSPFv3 neighbor state.
router-id <router-id>
Set the router ID of the routing process; changes take effect after a process restart.
router ospfv3 <process-id>
Start an OSPFv3 process.
address-family ipv6 unicast
Enter the IPv6 unicast address family under an OSPFv3 process.
address-family ipv4 unicast
Enter the IPv4 unicast address family under an OSPFv3 process.
ospfv3 <process-id> ipv6 area <area>
Enable OSPFv3 for IPv6 on the interface.
ospfv3 <process-id> ipv4 area <area>
Enable OSPFv3 for the IPv4 address family on the interface.
show ospfv3
Display OSPFv3 process information.
show ospfv3 neighbor
Display OSPFv3 neighbors.
show ospfv3 database
Display the OSPFv3 link-state database.
show ospfv3 interface
Display OSPFv3 interface settings.
show ipv6 route ospf
Display OSPFv3 routes in the IPv6 routing table.
ip routing
show ipv6 ospf [interface]
show ipv6 route <prefix>
show ipv6 cef <destination>

Verify in this order

ipv6 unicast-routing on → router ID set → interfaces enabled in the right area → link-local hellos match → FULL → LSAs exchanged → IPv6 routes installed with link-local next hops

Where it usually breaks

missing link-local/activation → area/instance/timer or authentication mismatch → exchange/MTU → absent AF prefix → route/forwarding/return

OSPFv3 · operational reference

OSPFv3 elementReference meaning
Router ID32-bit protocol identity
Link-local addressNormal neighbor/control next-hop identity
Address familyDetermines IPv4/IPv6 route content carried
FULL neighborDatabase exchange established
AF route tableProves installed routes for that family

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=636

Confirmation

Confirm action

Continue?