Study guide
9.3 OSPFv3 for IPv4 and IPv6 Address Families
CCNP Enterprise ENCOR 350-401
Track your progress as you read
Finished sections get a check mark.
1 Chapter 1: Enterprise Architecture & Hierarchical Design
1.1 Enterprise Network Design Models & Hierarchical Campus Architecture 1.2 On-Premises, Cloud & Hybrid Infrastructure Deployment Models 1.3 Hardware Switching Architecture & Packet Forwarding
2 Chapter 2: Enterprise Quality of Service (QoS)
2.1 QoS Components: Classification, Marking & Trust Boundaries 2.2 QoS Policy: Queuing, Shaping, Policing & Interpreting MQC Output
3 Chapter 3: Software-Defined WAN (Catalyst SD-WAN)
3.1 Cisco Catalyst SD-WAN Architecture & Orchestration 3.2 SD-WAN Policies, Traffic Engineering & Application-Aware Routing
4 Chapter 4: Software-Defined Access (Catalyst SD-Access)
4.1 Catalyst SD-Access Fabric Architecture & Plane Separation 4.2 Cisco TrustSec, Security Group Tags (SGT), SXP & MACsec
5 Chapter 5: Device & Data Path Virtualization
5.1 Server & Network Device Virtualization 5.2 VRF-Lite & Virtual Routing Multi-Tenancy 5.3 GRE & IPsec Tunnel Virtualization Mechanics
6 Chapter 6: Network Virtualization & Overlay Technologies
6.1 LISP Architecture & EID-to-RLOC Mapping Mechanics 6.2 VXLAN & EVPN Overlay Architecture
7 Chapter 7: Layer 2 Infrastructure & Switching
7.1 VLANs, 802.1Q Trunking & VTPv3 7.2 Spanning Tree Protocol Mechanics 7.3 Advanced STP Protection Mechanisms 7.4 EtherChannel Link Aggregation
8 Chapter 8: Layer 3 Routing Foundations & EIGRP
8.1 IP Routing Foundations & Administrative Distance 8.2 Enhanced Interior Gateway Routing Protocol (EIGRP)
9 Chapter 9: OSPFv2 & OSPFv3 Operations
9.1 OSPFv2 Architecture & Neighbor State Machine 9.2 OSPF LSA Types & Multi-Area Design 9.3 OSPFv3 for IPv4 and IPv6 Address Families
10 Chapter 10: Border Gateway Protocol (BGP)
10.1 BGP Architecture, Neighbor States & Peering 10.2 BGP Path Attributes & Best Path Selection Algorithm
11 Chapter 11: Policy-Based Routing & Route Redistribution
11.1 Policy-Based Routing (PBR) & Route Maps 11.2 Route Redistribution & Loop Prevention
12 Chapter 12: IP Services & High Availability
12.1 First Hop Redundancy Protocols (HSRP, VRRP & GLBP) 12.2 Network Time Protocol (NTPv4) & Precision Time Protocol (PTP) 12.3 Network Address Translation (NAT/PAT) & VRF-Aware NAT
13 Chapter 13: IP Multicast Operations
13.1 IP Multicast Addressing, Group Management (IGMPv1/v2/v3) & IGMP Snooping 13.2 Protocol Independent Multicast (PIM-SM, PIM-SSM & Bidir-PIM) 13.3 Rendezvous Point (RP) Distribution Mechanisms
14 Chapter 14: Network Assurance & Monitoring
14.1 Diagnostic Utilities, Conditional Debugging & Path MTU Discovery 14.2 Syslog Architecture, Logging Facilities & Severity Levels 14.3 SNMPv1/v2c/v3 Security & Flexible NetFlow (FNF) Architecture 14.4 Switched Port Analyzer (SPAN, RSPAN, ERSPAN) & IP SLA Object Tracking
15 Chapter 15: Catalyst Center Assurance & Controller Operations
15.1 Cisco Catalyst Center (DNA Center) Assurance & AI Network Analytics 15.2 Cisco Catalyst Center Device Onboarding & Software Image Management (SWIM)
16 Chapter 16: Enterprise Security & Access Control
16.1 Device Hardening, AAA Architecture & RADIUS/TACACS+ 16.2 Access Control Lists (ACLs) for Infrastructure Security 16.3 Control Plane Policing (CoPP) & Control Plane Protection (CPPr) 16.4 Layer 2 Infrastructure Security Features 16.5 IEEE 802.1X Port-Based Authentication & MAB
17 Chapter 17: Threat Defense & API Security
17.1 Enterprise VPN Technologies (DMVPN Phase 1/2/3 & FlexVPN) 17.2 Next-Generation Threat Defense & Secure Access Service Edge (SASE)
18 Chapter 18: Network Automation, Programmability & Data Modeling
18.1 Python Fundamentals for Network Engineers & Cisco Libraries 18.2 YANG Data Modeling Language (RFC 6020/7950) & Model Types 18.3 REST API Architecture, HTTP Verbs, Security & Cisco Controller APIs 18.4 Model-Driven Telemetry (MDT) & NETCONF/RESTCONF Operations
19 Chapter 19: Orchestration, EEM & AI Operations
19.1 Configuration Management & Infrastructure as Code (Ansible & Terraform) 19.2 Cisco Embedded Event Manager (EEM) & Intent-Based Networking
9.3 OSPFv3 for IPv4 and IPv6 Address Families
Key Takeaways Explain This Topic AI
OSPFv3 (RFC 5340) runs directly over IPv6, fundamentally decoupling topology structure from addressing by transitioning from per-subnet to per-link processing.
OSPFv3 neighbors form adjacencies and compute next-hop forwarding exclusively using IPv6 Link-Local addresses ( fe80::/10 ), requiring no global unicast addresses for control plane operation.
OSPFv3 protocol packets are transmitted over IPv6 link-local multicast groups FF02::5 (AllSPF Routers) and FF02::6 (AllDRouters), utilizing a 32-bit Router ID that must be explicitly assigned if no IPv4 address exists.
OSPFv3 re-architects LSA structures by removing prefix information from Type 1 (Router) and Type 2 (Network) LSAs, delegating prefix advertisement to Type 8 (Link LSA) and Type 9 (Intra-Area-Prefix LSA).
Address Family (AF) mode (RFC 5838) enables a single unified OSPFv3 process to independently route both IPv4 and IPv6 traffic via dedicated instance IDs and address family hierarchies.
Last updated: August 2026
9.3 OSPFv3 for IPv4 and IPv6 Address Families
OSPF version 3 (OSPFv3, defined in RFC 5340 with Address Family extensions in RFC 5838) redesignates OSPF to support IPv6 and multi-protocol network routing. While OSPFv3 retains the core link-state mechanics of OSPFv2—including the Dijkstra SPF algorithm, two-tier area hierarchy, packet types, and 8-state neighbor state machine—it introduces major architectural enhancements that decouple link topology from network addressing. +-----------------------------------------------------------------------------------+
- | ARCHITECTURAL COMPARISON: OSPFv2 VS. OSPFv3 |
- +-----------------------------------------------------------------------------------+
- | FEATURE | OSPFv2 (RFC 2328) | OSPFv3 (RFC 5340 / 5838) |
- | ------------------------+-----------------------------+------------------------- |
- | Routed Protocols | IPv4 Only | IPv6 & IPv4 (via AF) |
- | Processing Model | Per-Subnet | Per-Link |
- | Neighbor Adjacency IP | IPv4 Interface Subnet IP | IPv6 Link-Local (fe80::) |
- | Next-Hop in RIB | IPv4 Interface IP | IPv6 Link-Local Address |
- | Multicast Addresses | 224.0.0.5 / 224.0.0.6 | FF02::5 / FF02::6 |
- | Router ID Format | 32-bit dotted-decimal | 32-bit dotted-decimal |
- | Topology / Prefix LSAs | Combined in Type 1 & 2 LSAs | Separated (Types 8 & 9) |
- | Security/Authentication | Fields in OSPF Header | Native IPsec / Trailer |
- +-----------------------------------------------------------------------------------+
- 1. Key Protocol Differences Between OSPFv2 and OSPFv3
- 1. Per-Link vs. Per-Subnet Processing
OSPFv2 (Per-Subnet): Neighbors must be configured on the same IPv4 subnet mask to form an adjacency. The network topology is strictly tied to subnet configuration.
OSPFv3 (Per-Link): The term "subnet" is replaced with "link" . Multiple IP subnets (both IPv4 and IPv6) can reside on the same physical link, and two routers can form an adjacency even if they do not share any common global unicast subnet prefixes.
2. Link-Local Addressing for Adjacencies and Next-Hops
OSPFv3 packets (Hellos, DBDs, LSRs, LSUs, LSAcks) are sourced exclusively from the interface's IPv6 Link-Local Address ( fe80::/10 ) .
When OSPFv3 installs routes into the routing table (RIB/FIB), the next-hop IP is always the neighbor's link-local address , accompanied by the outgoing interface identifier.
Routers can establish adjacencies and route traffic across links that have no Global Unicast Addresses (GUAs) configured.
3. Multicast Transport Addresses
OSPFv3 utilizes link-local IPv6 multicast scopes:
FF02::5 (AllSPF Routers): Replaces 224.0.0.5 . Listened to by all OSPFv3 routers on the link.
FF02::6 (AllDRouters): Replaces 224.0.0.6 . Listened to exclusively by the DR and BDR.
Mapped at Layer 2 to Ethernet multicast MAC addresses 33:33:00:00:00:05 and 33:33:00:00:00:06 .
4. Router ID Configuration Requirements
OSPFv3 retains a 32-bit dotted-decimal integer (e.g., 1.1.1.1 ) for its Router ID.
Unlike OSPFv2, an IPv6-only router running OSPFv3 has no IPv4 interfaces to automatically derive an RID. If no IPv4 address exists on the router, OSPFv3 will fail to initialize until a Router ID is manually configured ( router-id x.x.x.x ).
5. Authentication Architecture
OSPFv2 included dedicated authentication fields in the OSPF common packet header.
OSPFv3 removed authentication fields from the protocol header, delegating cryptographic security to native IPv6 IPsec (Authentication Header [AH] / Encapsulating Security Payload [ESP]) or the standardized OSPFv3 Cryptographic Authentication Trailer (RFC 7166).
Loading diagram... OSPFv3 Link-Local Adjacency and LSA Decoupling
2. Redesigned OSPFv3 LSA Types & Scoping Mechanics
In OSPFv2, Type 1 and Type 2 LSAs contained both topological information (neighbor connections) and prefix addressing. Consequently, whenever an IP address or subnet was added, modified, or flapped, every router in the area was forced to execute a full Dijkstra SPF calculation.
OSPFv3 fundamentally redesigns LSAs by stripping prefix information from Type 1 and Type 2 LSAs . They now carry only topological router IDs and interface links. Network prefixes are advertised separately in new Type 8 and Type 9 LSAs. As a result, subnet changes only trigger a lightweight Partial Route Calculation (PRC) rather than an expensive full SPF tree rebuild. +-----------------------------------------------------------------------------------+
- | OSPFv3 LSA SCOPING ENCODING |
- +-----------------------------------------------------------------------------------+
- | 16-bit LSA Type Field: [ U | S2 | S1 | 13-bit LSA Function Code ] |
- | |
- | Flooding Scope Bits (S2 / S1): |
- | - 0 0 : Link-Local Scope (0x0000) -> Flooded only on the local link (e.g., LSA 8)|
- | - 0 1 : Area Scope (0x2000) -> Flooded throughout the area (e.g., LSA 1,2,9)|
- | - 1 0 : AS Scope (0x4000) -> Flooded domain-wide (e.g., LSA 5) |
- +-----------------------------------------------------------------------------------+
- Comprehensive OSPFv3 LSA Type Catalog
Type 1: Router LSA ( 0x2001 , Area Scope):
Describes the router's topological connections and interface costs. Contains zero IPv6/IPv4 prefix information.
Type 2: Network LSA ( 0x2002 , Area Scope):
Generated by the DR on a transit link; lists adjacent Router IDs. Contains zero prefix information.
Type 3: Inter-Area-Prefix LSA ( 0x2003 , Area Scope):
Replaces OSPFv2 Type 3 Summary LSA; advertises inter-area IPv6/IPv4 prefixes originated from other areas.
Type 4: Inter-Area-Router LSA ( 0x2004 , Area Scope):
Replaces OSPFv2 Type 4 ASBR Summary LSA; advertises reachability to an ASBR in another area.
Type 5: AS-External LSA ( 0x4005 , AS Scope):
Redistributed external routes from foreign autonomous systems.
Type 7: NSSA LSA ( 0x2007 , Area Scope):
External routes originated within an NSSA.
Type 8: Link LSA ( 0x0008 , Link-Local Scope):
Generated by each router for each attached link and never flooded beyond that local link.
Advertises the router's IPv6 Link-Local address ( fe80:: ) to direct neighbors and lists all IPv6 Global Unicast prefixes configured on that interface.
Type 9: Intra-Area-Prefix LSA ( 0x2009 , Area Scope):
Advertises IPv6/IPv4 prefixes associated with the router itself (stub links, loopbacks) or associated with a Type 2 transit network (referencing the DR's Network LSA).
OSPFv2 vs. OSPFv3 LSA Comparison Matrix
- LSA Purpose OSPFv2 LSA OSPFv3 LSA OSPFv3 Code Flooding Scope
- Router Topology Type 1 Router LSA Type 1 Router LSA 0x2001 Area Scope
- Transit Network Type 2 Network LSA Type 2 Network LSA 0x2002 Area Scope
- Inter-Area Prefixes Type 3 Summary LSA Type 3 Inter-Area-Prefix 0x2003 Area Scope
- ASBR Reachability Type 4 ASBR Summary Type 4 Inter-Area-Router 0x2004 Area Scope
- External Routes Type 5 AS-External Type 5 AS-External 0x4005 AS Scope
- NSSA External Type 7 NSSA External Type 7 NSSA LSA 0x2007 Area Scope
- Link-Local / Prefixes None Type 8 Link LSA 0x0008 Link-Local Scope
- Intra-Area Prefixes Embedded in Type 1/2 Type 9 Intra-Area-Prefix 0x2009 Area Scope
3. OSPFv3 Address Families (RFC 5838)
Traditionally, running both IPv4 and IPv6 required managing two separate routing processes: OSPFv2 for IPv4 and classic OSPFv3 for IPv6. This doubled protocol overhead, memory footprint, and administrative configuration.
RFC 5838 extends OSPFv3 with Address Family (AF) support, enabling a single OSPFv3 routing process to concurrently route both IPv4 Unicast and IPv6 Unicast traffic. +-----------------------------------------------------------------------------------+
- | OSPFv3 UNIFIED ADDRESS FAMILY ARCHITECTURE |
- +-----------------------------------------------------------------------------------+
- | |
- | +----------------------------+ |
- | | OSPFv3 Process 100 | |
- | | (Router ID: 1.1.1.1) | |
- | +----------------------------+ |
- | / \ |
- | / \ |
- | +---------------------------+ +---------------------------+ |
- | | address-family ipv4 uni | | address-family ipv6 uni | |
- | | - Instance ID: 64-95 | | - Instance ID: 0-31 | |
- | | - IPv4 Topology / LSDB | | - IPv6 Topology / LSDB | |
- | | - Routes IPv4 Prefixes | | - Routes IPv6 Prefixes | |
- | +---------------------------+ +---------------------------+ |
- | \ / |
- | v v |
- | [ Single Routed Physical Link / Interface ] |
- | - Uses IPv6 Link-Local (fe80::) for Transport |
- +-----------------------------------------------------------------------------------+
- Instance ID & Topology Separation
OSPFv3 includes an 8-bit Instance ID in the packet header to separate different logical routing topologies on the same physical link.
Standard Address Family assignments:
- IPv6 Unicast: Instance IDs 0 through 31 (Default: 0 )
- IPv4 Unicast: Instance IDs 64 through 95 (Default: 64 )
Even when routing IPv4 traffic, OSPFv3 AF mode continues to use IPv6 Link-Local addresses for transport and neighbor discovery across the shared interface.
4. Cisco IOS-XE Configuration: Classic vs. Address Family Mode
Cisco IOS-XE supports both legacy "Classic" OSPFv3 interface mode and the modern, recommended Address Family (AF) configuration mode.
- 1. Classic OSPFv3 Configuration (IPv6 Only) ! Enable IPv6 routing globally
- Router(config)# ipv6 unicast-routing
- ! Configure the classic OSPFv3 process
- Router(config)# ipv6 router ospf 10
- Router(config-rtr)# router-id 1.1.1.1
- Router(config-rtr)# auto-cost reference-bandwidth 100000
- ! Enable OSPFv3 directly on physical interfaces
- Router(config)# interface GigabitEthernet0/0/1
- Router(config-if)# ipv6 address 2001:db8:acad:1::1/64
- Router(config-if)# ospfv3 10 ipv6 area 0
2. Unified OSPFv3 Address Family Mode (Dual-Stack IPv4 & IPv6) ! Enable unicast routing for both address families
- Router(config)# ip routing
- Router(config)# ipv6 unicast-routing
- ! Enter unified OSPFv3 router configuration mode
- Router(config)# router ospfv3 100
- Router(config-router)# router-id 1.1.1.1
- ! Configure IPv4 Unicast Address Family
- Router(config-router)# address-family ipv4 unicast
- Router(config-router-af)# auto-cost reference-bandwidth 100000
- Router(config-router-af)# exit-address-family
- ! Configure IPv6 Unicast Address Family
- Router(config-router)# address-family ipv6 unicast
- Router(config-router-af)# auto-cost reference-bandwidth 100000
- Router(config-router-af)# exit-address-family
- ! Enable both address families under the interface
- Router(config)# interface GigabitEthernet0/0/1
- Router(config-if)# ip address 10.1.1.1 255.255.255.0
- Router(config-if)# ipv6 address 2001:db8:acad:1::1/64
- Router(config-if)# ospfv3 100 ipv4 area 0
- Router(config-if)# ospfv3 100 ipv6 area 0
- 3. Verification Commands & Output ! Verify OSPFv3 neighbors for IPv4 and IPv6 address families
- Router# show ospfv3 neighbor
- OSPFv3 100 address-family ipv4 (router-id 1.1.1.1)
- Neighbor ID Pri State Dead Time Interface Instance ID
- 2.2.2.2 1 FULL/BDR 00:00:34 GigabitEthernet0/0/1 64
- OSPFv3 100 address-family ipv6 (router-id 1.1.1.1)
- Neighbor ID Pri State Dead Time Interface Instance ID
- 2.2.2.2 1 FULL/BDR 00:00:36 GigabitEthernet0/0/1 0
- ! Inspect Link LSA (Type 8) and Intra-Area-Prefix LSA (Type 9) in LSDB
- Router# show ospfv3 ipv6 database
OSPFv3 100 address-family ipv6 (router-id 1.1.1.1)
- Router Link States (Area 0)
- ADV Router Age Seq# Fragment ID Link count Bits
- 1.1.1.1 324 0x80000002 0 1 None
- 2.2.2.2 340 0x80000002 0 1 None
- Intra Area Prefix Link States (Area 0)
- ADV Router Age Seq# Link ID Ref-lstype Ref-LSID
- 1.1.1.1 324 0x80000001 1 0x2001 0
- Link (Type-8) Link States (Interface GigabitEthernet0/0/1)
- ADV Router Age Seq# Link ID Interface
- 1.1.1.1 328 0x80000001 2 Gi0/0/1
- 2.2.2.2 342 0x80000001 2 Gi0/0/1