Skip to content

OSPFv3

OSPFv3 is the IPv6-capable version of OSPF that provides link-state routing for IPv6 networks, supporting VRF-aware multi-instance deployments with per-VRF router ID, BFD, and area-based hierarchical design on NX-OS. It includes configurable area types (stub, NSSA) with translator role control, address-family-specific settings for IPv6 unicast including administrative distance, default metric, and ECMP path limits. OSPFv3 interface-level configuration controls process association, area membership, cost, network type, priority, and passive interface behavior across loopback, VLAN, Ethernet, and port-channel interfaces.

Diagram
NameTypeConstraintMandatoryDefault Value
ospfv3_processesList[ospfv3_processes]No

loopbacks (nxos.devices.configuration.interfaces)

Section titled “loopbacks (nxos.devices.configuration.interfaces)”
NameTypeConstraintMandatoryDefault Value
ospfv3Class[ospfv3]No

vlans (nxos.devices.configuration.interfaces)

Section titled “vlans (nxos.devices.configuration.interfaces)”
NameTypeConstraintMandatoryDefault Value
ospfv3Class[ospfv3]No

ethernets (nxos.devices.configuration.interfaces)

Section titled “ethernets (nxos.devices.configuration.interfaces)”
NameTypeConstraintMandatoryDefault Value
ospfv3Class[ospfv3]No

port_channels (nxos.devices.configuration.interfaces)

Section titled “port_channels (nxos.devices.configuration.interfaces)”
NameTypeConstraintMandatoryDefault Value
ospfv3Class[ospfv3]No

ospfv3_processes (nxos.devices.configuration.routing)

Section titled “ospfv3_processes (nxos.devices.configuration.routing)”
NameTypeConstraintMandatoryDefault Value
nameStringYes
flush_routesBooleantrue, falseNo
isolateBooleantrue, falseNo
shutdownBooleantrue, falseNo
auto_cost_reference_bandwidthIntegermin: 0, max: 4294967295No
auto_cost_reference_bandwidth_unitChoicembps, gbpsNo
router_idStringNo
bfdBooleantrue, falseNo
log_adjacency_changesChoicenone, brief, detailNo
discard_route_externalBooleantrue, falseNo
discard_route_internalBooleantrue, falseNo
name_lookupBooleantrue, falseNo
passive_interface_defaultBooleantrue, falseNo
areasList[areas]No
address_familiesList[address_families]No
vrfsList[vrfs]No

ospfv3 (nxos.devices.configuration.interfaces.loopbacks)

Section titled “ospfv3 (nxos.devices.configuration.interfaces.loopbacks)”
NameTypeConstraintMandatoryDefault Value
processStringYes
advertise_secondariesBooleantrue, falseNo
areaStringNo
bfdBooleantrue, falseNo
costIntegermin: 0, max: 65535No
dead_intervalIntegermin: 0, max: 65535No
hello_intervalIntegermin: 1, max: 65535No
networkChoicenone, p2p, bcastNo
passive_interfaceBooleantrue, falseNo
priorityIntegermin: 0, max: 255No
instance_idIntegermin: 0, max: 255No
mtu_ignoreBooleantrue, falseNo
retransmit_intervalIntegermin: 1, max: 65535No
transmit_delayIntegermin: 1, max: 450No

areas (nxos.devices.configuration.routing.ospfv3_processes)

Section titled “areas (nxos.devices.configuration.routing.ospfv3_processes)”
NameTypeConstraintMandatoryDefault Value
idStringYes
typeChoiceregular, stub, nssaNo
redistributeBooleantrue, falseNo
nssa_translate_type7Choicealways, candidate, neverNo
summaryBooleantrue, falseNo
nssa_translate_type7_suppress_faBooleantrue, falseNo

address_families (nxos.devices.configuration.routing.ospfv3_processes)

Section titled “address_families (nxos.devices.configuration.routing.ospfv3_processes)”
NameTypeConstraintMandatoryDefault Value
address_familyChoiceipv6-unicastYes
distanceIntegermin: 1, max: 255No
default_metricIntegermin: 0, max: 16777214No
default_route_nssa_abr_pbit_clearBooleantrue, falseNo
maximum_pathsIntegermin: 1, max: 64No

vrfs (nxos.devices.configuration.routing.ospfv3_processes)

Section titled “vrfs (nxos.devices.configuration.routing.ospfv3_processes)”
NameTypeConstraintMandatoryDefault Value
vrfStringYes
shutdownBooleantrue, falseNo
auto_cost_reference_bandwidthIntegermin: 0, max: 4294967295No
auto_cost_reference_bandwidth_unitChoicembps, gbpsNo
router_idStringNo
bfdBooleantrue, falseNo
log_adjacency_changesChoicenone, brief, detailNo
discard_route_externalBooleantrue, falseNo
discard_route_internalBooleantrue, falseNo
name_lookupBooleantrue, falseNo
passive_interface_defaultBooleantrue, falseNo
areasList[areas]No
address_familiesList[address_families]No

Example 1: Basic OSPFv3 underlay for IPv6 fabric routing

nxos:
devices:
- name: LEAF1
configuration:
routing:
ospfv3_processes:
- name: "1"
router_id: 10.1.100.3
bfd: true
log_adjacency_changes: detail
areas:
- id: 0.0.0.0
interfaces:
loopbacks:
- id: 0
ospfv3:
process: "1"
area: 0.0.0.0
ethernets:
- id: 1/1
ospfv3:
process: "1"
area: 0.0.0.0
network: p2p
- id: 1/2
ospfv3:
process: "1"
area: 0.0.0.0
network: p2p

Example 2: OSPFv3 with address-family settings, NSSA area, and tuned timers

nxos:
devices:
- name: BORDER-LEAF1
configuration:
routing:
ospfv3_processes:
- name: "1"
router_id: 10.1.100.3
log_adjacency_changes: brief
auto_cost_reference_bandwidth: 100
auto_cost_reference_bandwidth_unit: gbps
address_families:
- address_family: ipv6-unicast
maximum_paths: 8
default_metric: 100
areas:
- id: 0.0.0.0
- id: 0.0.0.10
type: nssa
nssa_translate_type7: always
interfaces:
ethernets:
- id: 1/1
ospfv3:
process: "1"
area: 0.0.0.0
network: p2p
hello_interval: 3
dead_interval: 12
- id: 1/10
ospfv3:
process: "1"
area: 0.0.0.10
cost: 100

Example 3: OSPFv3 in a tenant VRF with passive interfaces

nxos:
devices:
- name: LEAF2
configuration:
routing:
ospfv3_processes:
- name: "1"
router_id: 10.1.100.4
areas:
- id: 0.0.0.0
- name: "100"
vrfs:
- vrf: BLUE
router_id: 10.1.100.4
passive_interface_default: true
areas:
- id: 0.0.0.0
address_families:
- address_family: ipv6-unicast
maximum_paths: 4
interfaces:
vlans:
- id: 1010
vrf: BLUE
ospfv3:
process: "100"
area: 0.0.0.0
passive_interface: disabled