Use it to run one routing protocol for both IPv4 and IPv6, or when reading address-family style configuration.
Address Families
OSPFv3 address families let one OSPFv3 process carry IPv6 and, optionally, IPv4 routes: router ospfv3 <process> with address-family ipv6 unicast and/or address-family ipv4 unicast. Each family runs as its own instance.
1. show running-config | section ospfv3 — which families are configured?
2. show ospfv3 neighbor — FULL in each family?
3. IPv4 family not forming → IPv6 not enabled on the interface.
4. Interface in one family only → add it to the other.
5. Routes per family installed?
router ospfv3 with the needed address families → IPv6 enabled on interfaces → interfaces joined per family → adjacencies per family → routes installed per family
Verify OSPFv3 AF configuration, database and then show ipv6 route ospf or the relevant IPv4 RIB.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
router ospfv3 <process-id>Primary Commands
Configuration and operational commands for this Topic.
Show Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational verification and known-good state Verify boundary
show ospfv3
show ospfv3 interface brief
show ospfv3 neighbor
show ip route ospfv3
show ospfv3 prints a block per address family with router ID and areas. The interface and neighbour views are likewise grouped by family, which shows at once where a family is missing. The last command shows the IPv4 routes that OSPFv3 installed.
Known-good: each intended family is configured in the process, enabled on the intended interfaces on both ends, has Full neighbours, and has its routes in the corresponding routing table.
Step 2 Verification & troubleshooting Narrow the fault
1. show ospfv3 → the address families configured in the process.
2. show ospfv3 interface brief → which interfaces are enabled, listed per family.
3. show ospfv3 neighbor → neighbours per family.
4. show ip route ospfv3 and show ipv6 route ospf → the routes of each family.
5. If one family lacks routes, check that family's interface command on both ends of the link.
Step 3 Failure signatures and troubleshooting branches Narrow the fault
- IPv6 routes are present, IPv4 routes are missing. The IPv4 family is not configured in the process or not enabled on the interface.
- The IPv4 family will not enable on an interface. The interface has no IPv6 link-local address.
- A neighbour appears for one family only. The other router runs just that family on the link.
- A router running classic OSPFv3 does not peer for IPv4. It has no IPv4 family to peer with.
- IPv4 routes are looked for under
show ip route ospf. That lists OSPFv2; OSPFv3's IPv4 routes are underospfv3.
Step 4 When the problem is really fixed Narrow the fault
- Each intended family is present in
show ospfv3. - Interfaces and neighbours are listed under every family that should run on them.
- The routes of each family are in the matching routing table.
- Both ends of each link run the same families.
Step 5 Common mistakes Narrow the fault
- Expecting the old
ipv6 router ospfand the address-familyrouter ospfv3styles to mix on one interface. - Forgetting to activate the IPv4 address family when using OSPFv3 for IPv4.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Even for IPv4, OSPFv3 forms adjacencies over IPv6 link-local addresses — IPv6 must be enabled on the interfaces. Interfaces join per family: ospfv3 <process> ipv4 area <area> / ospfv3 <process> ipv6 area <area>. Show commands are per family.
show ospfv3 neighbor— neighbours per address family.show ospfv3 interface brief— interfaces per address family.show ip route ospfv3andshow ipv6 route ospf— routes per family.show running-config | section ospfv3— families configured.
ReferenceWhat it is1 section · depth on demand
What it is
OSPFv3 address families let one OSPFv3 process carry routes for more than one address family — IPv6 unicast and, in addition, IPv4 unicast. Each family has its own database, its own neighbours and its own routes, all transported over IPv6 link-local addresses.
ReferenceWhy it matters1 section · depth on demand
Why it matters
Address families make it possible to run a single protocol for IPv4 and IPv6. The price is that "OSPFv3 is up" no longer says which family is up. A neighbour can be Full for IPv6 while IPv4 routes are missing, simply because the IPv4 family was not enabled on that interface.
ReferenceImportant terms & boundaries4 sections · depth on demand
Key points
- Configure under
router ospfv3 <id>:address-family ipv6 unicastandaddress-family ipv4 unicast. - Enable per interface and per family:
ospfv3 <id> ipv6 area <area>andospfv3 <id> ipv4 area <area>. - The IPv4 family also runs over IPv6: the interface needs an IPv6 link-local address even to carry IPv4 routes.
- Each family forms its own neighbour relationship and keeps its own database.
- Families use different instance IDs on the wire, so they never mix.
- IPv4 routes learned this way appear in
show ip routeas OSPF routes; IPv6 routes inshow ipv6 route. - Both ends of a link must run the same families.
In depth
OSPFv3 address families: IPv4 and IPv6 in one OSPF process
The Catalyst 9000 OSPF guide states that OSPFv3 is address-family independent and can now carry IPv4 routing information too, so one OSPFv3 instance can route both IPv4 and IPv6. On IOS XE, this is configured with router ospfv3 and an address-family section per protocol.
R1(config)# ipv6 unicast-routing
R1(config)# router ospfv3 1
R1(config-router)# router-id 10.0.0.1
R1(config-router)# address-family ipv6 unicast
R1(config-router-af)# passive-interface default
R1(config-router-af)# no passive-interface TenGigabitEthernet1/1/1
R1(config-router-af)# exit-address-family
R1(config-router)# address-family ipv4 unicast
R1(config-router-af)# passive-interface default
R1(config-router-af)# no passive-interface TenGigabitEthernet1/1/1
R1(config-router-af)# exit-address-family
R1(config)# interface TenGigabitEthernet1/1/1
R1(config-if)# ip address 10.255.0.1 255.255.255.252
R1(config-if)# ipv6 address 2001:db8:ff::1/127
R1(config-if)# ospfv3 1 ipv6 area 0
R1(config-if)# ospfv3 1 ipv4 area 0
R1# show ospfv3 neighbor
OSPFv3 1 address-family ipv4 (router-id 10.0.0.1)
Neighbor ID Pri State Dead Time Interface ID Interface
10.0.0.2 0 FULL/ - 00:00:36 17 TenGigabitEthernet1/1/1
OSPFv3 1 address-family ipv6 (router-id 10.0.0.1)
Neighbor ID Pri State Dead Time Interface ID Interface
10.0.0.2 0 FULL/ - 00:00:35 17 TenGigabitEthernet1/1/1
Each address family forms its own adjacency. Both run over IPv6 link-local addresses, so the interface needs IPv6 enabled even for the IPv4 family.
How it works
RFC 5340's instance ID allows several OSPFv3 instances on one link. The address-family extension (RFC 5838) assigns separate instance ID ranges to IPv6 and IPv4, so the two families don't mix.
Single protocol versus OSPFv2 + OSPFv3
| OSPFv3 with both families | OSPFv2 + OSPFv3 | |
|---|---|---|
| Configuration style | One router ospfv3 with two families | Two processes |
| Transport | IPv6 for both families | IPv4 for v2, IPv6 for v3 |
| Requirement | IPv6 on every OSPF interface | None for IPv4-only links |
| Interoperability | All routers must support OSPFv3 address families | Widely supported |
Verification
Use show ospfv3 commands, which show each address family separately. show ip route ospfv3 lists IPv4 routes learned through the IPv4 family.
Documented example, not captured output.
Quick reference
OSPFv3 address families let one OSPFv3 process carry both IPv6 and IPv4 routing (RFC 5838), each with its own neighbors, LSDB and routes, using instance IDs to keep them apart.
router ospfv3 1
address-family ipv6 unicast
address-family ipv4 unicast
interface Gi0/1
ospfv3 1 ipv6 area 0
ospfv3 1 ipv4 area 0
show ospfv3 ipv4 neighbor
Documented example, not captured output.
For IPv4 address family the interface still needs an IPv4 address, while adjacencies run over IPv6 link-local addresses.
Mechanics and state ownership
Classic OSPFv3 carried IPv6 only. With address families, the same process runs a separate instance for each family. On the wire they are kept apart by the instance ID in the OSPFv3 header, each family having its own range, so an IPv4-family Hello is only ever accepted by an IPv4-family instance.
Everything is duplicated per family: the Hello exchange, the adjacency, the link-state database and the SPF run. Losing or misconfiguring one family leaves the other untouched.
The transport is IPv6 in both cases. That is why an interface must have IPv6 enabled before it can carry IPv4 routes through OSPFv3, and why the next hop of such an IPv4 route is still resolved from what the neighbour advertised in its Link LSA for that family.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Routing → OSPF → OSPFv3 → Address Families. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc5340.html · confidence 94%Quick lookup tables
Address Families operational reference
Topic-specific bounded interpretation: known-good protocol state, suspicious signatures and the next technical proof boundary.
| Boundary | Known-good for Address Families | Suspicious signature | Next proof |
|---|---|---|---|
| Intent | Matches OSPFv3 address-family separation for IPv6 and, on supporting platforms, IPv4 unicast while sharing protocol infrastructure without merging each family route state design | Policy, area, family or metric input differs | Compare effective configuration |
| Protocol state | Stable expected adjacency/database/topology decision | one address family working while another is absent, commands interpreted without family context, prefixes activated under the wrong family, a shared neighbor being treated as proof of both IPv4 and IPv6 route exchange, or route troubleshooting mixing the IPv6 link-local adjacency with the wrong family RIB | Inspect peer/LSDB/topology detail |
| Route/forwarding | Expected RIB/FIB next hop or multipath set | Protocol state exists but route/path disagrees | RIB/FIB/CEF and next-hop proof |
| Closure | Original test passes for explained reason | Symptom moved, was bypassed or state was forced | Regression test |