Pcornel
H3 · Practical network exams · Cisco IOS / IOS XE

OSPFv3 (Address Family) · Finals

Configuration first, verification second, theory third. Reference templates require task-specific adaptation.

Content version 1.1-draft

Keyboard shortcuts

/ Finals search · Ctrl K global command palette · Alt E Exam Mode · Alt G Golden Scripts · Alt T Exam Topics · Alt V Verify · Esc close dialog.

Case Skills Exam · Supporting reference, not an additional exam objective

Quick explanation

OSPFv3 Address Family carries IPv4 and IPv6 routes in separate address families using IPv6 link-local transport. This is the AF syntax, not the traditional IPv6-only configuration.

Configuration

Replace highlighted placeholders. Configure only the variants required by the task.

Prerequisites and dependency links
  • IPv6 must be enabled on each participating link, including IPv4 AF links.
  • Use unique router IDs, assign family-appropriate addresses and enable routing.
IPV4 unicast address family Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: ospfv3-af-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ipv6 unicast-routing
router ospfv3 [PROCESS-ID]
 router-id [ROUTER-ID]
 address-family ipv4 unicast
 exit-address-family
 exit
interface [INTERFACE]
 ipv6 enable
 ospfv3 [PROCESS-ID] ipv4 area [AREA-ID]
 exit
end
Command parameters
[PROCESS-ID]
Local routing process identifier.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[AREA-ID]
OSPF area number or dotted area ID.
Peer configuration — Adjacent router or L3 switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: AREA-ID

  • Use the peer's own addresses and interfaces. Process IDs are locally significant. Match area and compatible link parameters.
enable
configure terminal
ipv6 unicast-routing
router ospfv3 [PROCESS-ID]
 router-id [PEER-ROUTER-ID]
 address-family ipv4 unicast
 exit-address-family
 exit
interface [INTERFACE]
 ipv6 enable
 ospfv3 [PROCESS-ID] ipv4 area [AREA-ID]
 exit
end
IPV6 unicast address family Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: ospfv3-af-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ipv6 unicast-routing
router ospfv3 [PROCESS-ID]
 router-id [ROUTER-ID]
 address-family ipv6 unicast
 exit-address-family
 exit
interface [INTERFACE]
 ipv6 enable
 ospfv3 [PROCESS-ID] ipv6 area [AREA-ID]
 exit
end
Command parameters
[PROCESS-ID]
Local routing process identifier.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[AREA-ID]
OSPF area number or dotted area ID.
Peer configuration — Adjacent router or L3 switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: AREA-ID

  • Use the peer's own addresses and interfaces. Process IDs are locally significant. Match area and compatible link parameters.
enable
configure terminal
ipv6 unicast-routing
router ospfv3 [PROCESS-ID]
 router-id [PEER-ROUTER-ID]
 address-family ipv6 unicast
 exit-address-family
 exit
interface [INTERFACE]
 ipv6 enable
 ospfv3 [PROCESS-ID] ipv6 area [AREA-ID]
 exit
end
Both address families Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: ospfv3-af-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ipv6 unicast-routing
router ospfv3 [PROCESS-ID]
 router-id [ROUTER-ID]
 address-family ipv4 unicast
 exit-address-family
 address-family ipv6 unicast
 exit-address-family
 exit
interface [INTERFACE]
 ipv6 enable
 ospfv3 [PROCESS-ID] ipv4 area [AREA-ID]
 ospfv3 [PROCESS-ID] ipv6 area [AREA-ID]
 exit
end
Command parameters
[PROCESS-ID]
Local routing process identifier.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[AREA-ID]
OSPF area number or dotted area ID.
Peer configuration — Adjacent router or L3 switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: AREA-ID

  • Use the peer's own addresses and interfaces. Process IDs are locally significant. Match area and compatible link parameters.
enable
configure terminal
ipv6 unicast-routing
router ospfv3 [PROCESS-ID]
 router-id [PEER-ROUTER-ID]
 address-family ipv4 unicast
 exit-address-family
 address-family ipv6 unicast
 exit-address-family
 exit
interface [INTERFACE]
 ipv6 enable
 ospfv3 [PROCESS-ID] ipv4 area [AREA-ID]
 ospfv3 [PROCESS-ID] ipv6 area [AREA-ID]
 exit
end
IPV4 VRF address family Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: ospfv3-af-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Define the VRF with the required address families first. For IPv4 OSPFv3, IPv6 processing must also be available on the link.
  • On an L3 switch, enable ip routing and convert physical routed ports with no switchport before this block; do not use no switchport on router interfaces or SVIs.
  • For initial configuration or an intentional VRF move only: changing VRF membership can remove existing IP addresses. Record and restore all required IPv4/IPv6 addresses, including the other family on a dual-stack link. If the interface is already in the correct VRF, omit the VRF reassignment and retain existing addressing.
  • Use capability vrf-lite when required for the lab.
enable
configure terminal
ipv6 unicast-routing
router ospfv3 [PROCESS-ID]
 router-id [ROUTER-ID]
 address-family ipv4 unicast vrf [VRF-NAME]
  capability vrf-lite
 exit-address-family
 exit
interface [INTERFACE]
 vrf forwarding [VRF-NAME]
 ip address [IP-ADDRESS] [SUBNET-MASK]
 ipv6 enable
 ospfv3 [PROCESS-ID] ipv4 area [AREA-ID]
 no shutdown
 exit
end
Command parameters
[PROCESS-ID]
Local routing process identifier.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[VRF-NAME]
Local VRF name; align it with the task.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[IP-ADDRESS]
Local IPv4 interface address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
[AREA-ID]
OSPF area number or dotted area ID.
Peer configuration — Adjacent router or L3 switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: AREA-ID, SUBNET-MASK

  • Use the peer's own addresses and interfaces. Process IDs are locally significant. Match area and compatible link parameters.
  • Define the VRF with the required address families first. For IPv4 OSPFv3, IPv6 processing must also be available on the link.
  • On an L3 switch, enable ip routing and convert physical routed ports with no switchport before this block; do not use no switchport on router interfaces or SVIs.
  • For initial configuration or an intentional VRF move only: changing VRF membership can remove existing IP addresses. Record and restore all required IPv4/IPv6 addresses, including the other family on a dual-stack link. If the interface is already in the correct VRF, omit the VRF reassignment and retain existing addressing.
  • Use capability vrf-lite when required for the lab.
enable
configure terminal
ipv6 unicast-routing
router ospfv3 [PROCESS-ID]
 router-id [PEER-ROUTER-ID]
 address-family ipv4 unicast vrf [VRF-NAME]
  capability vrf-lite
 exit-address-family
 exit
interface [INTERFACE]
 vrf forwarding [VRF-NAME]
 ip address [REMOTE-IP-ADDRESS] [SUBNET-MASK]
 ipv6 enable
 ospfv3 [PROCESS-ID] ipv4 area [AREA-ID]
 no shutdown
 exit
end
IPV6 VRF address family Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: ospfv3-af-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Define the VRF with the required address families first. For IPv4 OSPFv3, IPv6 processing must also be available on the link.
  • On an L3 switch, enable ip routing and convert physical routed ports with no switchport before this block; do not use no switchport on router interfaces or SVIs.
  • For initial configuration or an intentional VRF move only: changing VRF membership can remove existing IP addresses. Record and restore all required IPv4/IPv6 addresses, including the other family on a dual-stack link. If the interface is already in the correct VRF, omit the VRF reassignment and retain existing addressing.
  • Use capability vrf-lite when required for the lab.
enable
configure terminal
ipv6 unicast-routing
router ospfv3 [PROCESS-ID]
 router-id [ROUTER-ID]
 address-family ipv6 unicast vrf [VRF-NAME]
  capability vrf-lite
 exit-address-family
 exit
interface [INTERFACE]
 vrf forwarding [VRF-NAME]
 ipv6 address [IPV6-ADDRESS]/[PREFIX-LENGTH]
 ipv6 enable
 ospfv3 [PROCESS-ID] ipv6 area [AREA-ID]
 no shutdown
 exit
end
Command parameters
[PROCESS-ID]
Local routing process identifier.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[VRF-NAME]
Local VRF name; align it with the task.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[IPV6-ADDRESS]
Local IPv6 interface address without the prefix length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
[AREA-ID]
OSPF area number or dotted area ID.
Peer configuration — Adjacent router or L3 switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: AREA-ID, PREFIX-LENGTH

  • Use the peer's own addresses and interfaces. Process IDs are locally significant. Match area and compatible link parameters.
  • Define the VRF with the required address families first. For IPv4 OSPFv3, IPv6 processing must also be available on the link.
  • On an L3 switch, enable ip routing and convert physical routed ports with no switchport before this block; do not use no switchport on router interfaces or SVIs.
  • For initial configuration or an intentional VRF move only: changing VRF membership can remove existing IP addresses. Record and restore all required IPv4/IPv6 addresses, including the other family on a dual-stack link. If the interface is already in the correct VRF, omit the VRF reassignment and retain existing addressing.
  • Use capability vrf-lite when required for the lab.
enable
configure terminal
ipv6 unicast-routing
router ospfv3 [PROCESS-ID]
 router-id [PEER-ROUTER-ID]
 address-family ipv6 unicast vrf [VRF-NAME]
  capability vrf-lite
 exit-address-family
 exit
interface [INTERFACE]
 vrf forwarding [VRF-NAME]
 ipv6 address [PEER-IPV6-ADDRESS]/[PREFIX-LENGTH]
 ipv6 enable
 ospfv3 [PROCESS-ID] ipv6 area [AREA-ID]
 no shutdown
 exit
end

Show / Verify

Primary verification Section link
show ospfv3 neighbor
Example output
OSPFv3 1 address-family ipv4 (router-id 1.1.1.1)
2.2.2.2  1  FULL/DR

Check the correct address-family adjacency.

Detailed verification Section link
show ospfv3 interface
Example output
OSPFv3 1 address-family ipv6

Verify the intended process and AF on each interface.

Detailed verification Section link
show ip route ospfv3
Example output
O    198.51.100.0/24 [110/2] via 192.0.2.2

Check IPv4 routes from OSPFv3.

Detailed verification Section link
show ipv6 route ospf
Example output
O   2001:DB8:2::/64 [110/2]
     via FE80::2, GigabitEthernet0/0

Check IPv6 routes.

Detailed verification Section link
show vrf
Example output
Name   Default RD   Protocols   Interfaces
CustomerA  <not set>  ipv4,ipv6  Gi0/0

Verify the OSPF interface belongs to the intended VRF, not the global table.

Detailed verification Section link
show ip route vrf [VRF-NAME]
Example output
Routing Table: CustomerA
O    198.51.100.0/24 [110/2] via 192.0.2.2

Confirm IPv4 OSPF routes are installed in the selected VRF.

Detailed verification Section link
show ipv6 route vrf [VRF-NAME]
Example output
IPv6 Routing Table - CustomerA
O   2001:DB8:2::/64 [110/2]
     via FE80::2, GigabitEthernet0/0

Confirm IPv6 OSPF routes are installed in the selected VRF.

Connectivity verification

IPv4 reachability

Check success rate; use source or VRF context if required.

ping [DESTINATION-IP]
IPv6 reachability

Check IPv6 path and return routing.

ping ipv6 [DESTINATION-IPV6]
Source-specific IPv4

Verify from the intended source network.

ping [DESTINATION-IP] source [SOURCE-IP]
IPv4 path

Inspect hop sequence; missing responses alone do not prove forwarding failure.

traceroute [DESTINATION-IP]
IPv6 path

Inspect IPv6 hop sequence.

traceroute ipv6 [DESTINATION-IPV6]
VRF IPv4

Test in the correct routing instance.

ping vrf [VRF-NAME] [DESTINATION-IP]
traceroute vrf [VRF-NAME] [DESTINATION-IP]
VRF IPv6

Use the VRF-aware ping with an IPv6 destination; select the source if needed. Confirm support on the device.

ping vrf [VRF-NAME] [DESTINATION-IPV6]

Common mistakes

  • IPv6 link-local transport not enabled.
  • Wrong address family or VRF.
  • Confusing legacy and AF syntax.

Quick reference and default values

Routing table codes
CodeMeaning
CConnected
LLocal host route
SStatic
OOSPF
O IAOSPF inter-area
O E1 / E2OSPF external
BBGP
*Candidate default
IPv6 address types
PrefixMeaning
FE80::/10Link-local
2000::/3Global unicast
FC00::/7Unique local
FF00::/8Multicast
::/128Unspecified
::1/128Loopback
::/0Default route
OSPF neighbor states
StateMeaning
DownNo recent hello
InitHello received; not bidirectional yet
2-WayBidirectional hello; normal between DROTHERs
ExStart / ExchangeDatabase description negotiation/exchange
LoadingRequesting missing LSAs
FullDatabases synchronized with adjacent peer

Configuration comparison

OSPFv3 legacy vs AF — Legacy uses ipv6 router ospf and ipv6 ospf; AF uses router ospfv3 and ospfv3 with explicit IPv4/IPv6 family.

Remove configuration — separate, potentially disruptive actions

Remove IPv4 AF from interface

Stops IPv4 AF participation on the link.

enable
configure terminal
interface [INTERFACE]
 no ospfv3 [PROCESS-ID] ipv4 area [AREA-ID]
 exit
end

Related reference

Networking technical reference · Interface types · Connectivity verification
Documentation references consulted

Reset checklist?

Command block

Back to Top

Confirmation

Confirm action

Continue?