OSPFv3 — IPv6 routing alongside OSPFv2
- IPv6
- Intermediate
- 12 min
- 3 steps
- Cisco IOS-style
Two routers on a dual-stack /30 + /64 link. Configure OSPFv3 to exchange IPv6 routes alongside OSPFv2's IPv4 routes. Each protocol runs independently — same SPF math, separate LSDBs.
Open this lab in your browser →
Free · no install · no account
Scenario
OSPFv3 (RFC 5340) is OSPF for IPv6: - Same SPF (Dijkstra), same Hello/DBD/LSU mechanics. - Separate LSDB from OSPFv2 — they don't share LSAs. - Configured per-interface with ipv6 ospf <pid> area <area> (vs OSPFv2's network statements at the process level). - Router-id is *manually configured* in OSPFv3 — there's no auto-pick from interface IPs (because IPv6 addresses don't fit the 32-bit router-id field). In this lab two routers run dual-stack on the same physical link. OSPFv2 carries the IPv4 routing; OSPFv3 carries IPv6. Both converge independently.
Topology
2 × router · Cisco IOS-style
R1— routerR2— router
What you will do
On R1, run
show ip route ospf. Confirm2.2.2.2/32(R2's loopback) is learnt asOvia OSPFv2.Now:
show ipv6 route ospf. Confirm2001:db8:99::2/128is learnt asOvia OSPFv3.show ipv6 ospf neighboron R1 — confirm R2 is a Full neighbour.
Open this lab in your browser →
More labs on this topic
- IPv6 dual-stack: addresses + a static routeIntermediate · 14 min
- IPv6 static route — egress-interface formIntermediate · 7 min
This lab in other languages
OSPFv3 — IPv6-Routing parallel zu OSPFv2OSPFv3 — enrutamiento IPv6 junto a OSPFv2OSPFv3 — roteamento IPv6 ao lado do OSPFv2OSPFv3 — routage IPv6 en parallèle d'OSPFv2OSPFv3 — OSPFv2 के साथ IPv6 routingOSPFv3 — 与 OSPFv2 并行的 IPv6 路由OSPFv3 — routing IPv6 affiancato a OSPFv2OSPFv3 — OSPFv2 と並走する IPv6 ルーティングOSPFv3 — OSPFv2와 함께 동작하는 IPv6 라우팅OSPFv3 — IPv6-маршрутизация рядом с OSPFv2OSPFv3 — OSPFv2 ile birlikte çalışan IPv6 yönlendirmeOSPFv3 — định tuyến IPv6 chạy song song với OSPFv2