Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Address Families

Direct answer

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.

When to use this

Use it to run one routing protocol for both IPv4 and IPv6, or when reading address-family style configuration.

First 30 seconds

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?

Operational verification

router ospfv3 with the needed address families → IPv6 enabled on interfaces → interfaces joined per family → adjacencies per family → routes installed per family

Evidence · next step

Verify OSPFv3 AF configuration, database and then show ipv6 route ospf or the relevant IPv4 RIB.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · IOS/IOS XE · Cisco IOS / IOS XE
Key commandrouter ospfv3 <process-id>
Scope / prerequisiteUse it to run one routing protocol for both IPv4 and IPv6, or when reading address-family style configuration.
Show · 1Reference · 1
What next?3 suggested next steps
Catalog command links2
Evidence1
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 under ospfv3.
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 ospf and the address-family router ospfv3 styles to mix on one interface.
  • Forgetting to activate the IPv4 address family when using OSPFv3 for IPv4.
Evidence references

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.

state · 1
Command lookup Jump straight to Cisco syntax
Key points

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.

Key checks
  • show ospfv3 neighbor — neighbours per address family.
  • show ospfv3 interface brief — interfaces per address family.
  • show ip route ospfv3 and show 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 unicast and address-family ipv4 unicast.
  • Enable per interface and per family: ospfv3 <id> ipv6 area <area> and ospfv3 <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 route as OSPF routes; IPv6 routes in show 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 familiesOSPFv2 + OSPFv3
Configuration styleOne router ospfv3 with two familiesTwo processes
TransportIPv6 for both familiesIPv4 for v2, IPv6 for v3
RequirementIPv6 on every OSPF interfaceNone for IPv4-only links
InteroperabilityAll routers must support OSPFv3 address familiesWidely 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 5340

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%
Embedded reference data

Quick lookup tables

Address Families operational reference

Topic-specific bounded interpretation: known-good protocol state, suspicious signatures and the next technical proof boundary.

BoundaryKnown-good for Address FamiliesSuspicious signatureNext proof
IntentMatches OSPFv3 address-family separation for IPv6 and, on supporting platforms, IPv4 unicast while sharing protocol infrastructure without merging each family route state designPolicy, area, family or metric input differsCompare effective configuration
Protocol stateStable expected adjacency/database/topology decisionone 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 RIBInspect peer/LSDB/topology detail
Route/forwardingExpected RIB/FIB next hop or multipath setProtocol state exists but route/path disagreesRIB/FIB/CEF and next-hop proof
ClosureOriginal test passes for explained reasonSymptom moved, was bypassed or state was forcedRegression test
Confirmation

Confirm action

Continue?