OSPF (Open Shortest Path First) is a standards-based link-state interior gateway protocol that uses Dijkstra’s shortest path first algorithm to calculate optimal routes within an autonomous system, supporting VRF-aware multi-instance deployments on NX-OS. It provides hierarchical network design through area-based segmentation with configurable area types (stub, NSSA), route summarization, max-metric advertisement for graceful maintenance, and advanced features like BFD integration for fast failure detection. OSPF interface-level configuration controls process association, area membership, cost, network type, priority, authentication, and passive interface behavior across loopback, VLAN, Ethernet, and port-channel interfaces.
Name Type Constraint Mandatory Default Value ospf_processes List [ospf_processes]No
Name Type Constraint Mandatory Default Value ospf Class [ospf]No
Name Type Constraint Mandatory Default Value ospf Class [ospf]No
Name Type Constraint Mandatory Default Value ospf Class [ospf]No
Name Type Constraint Mandatory Default Value ospf Class [ospf]No
Name Type Constraint Mandatory Default Value name String Yes shutdown Boolean true, falseNo falseauto_cost_reference_bandwidth Integer min: 0, max: 4294967295 No auto_cost_reference_bandwidth_unit Choice mbps, gbpsNo bfd Boolean true, falseNo capability_vrf_lite Choice unspecified, l3vpn, evpnNo default_metric Integer min: 0, max: 16777214 No passive_interface_default Boolean true, falseNo default_route_nssa_abr_pbit_clear Boolean true, falseNo discard_route_external Boolean true, falseNo discard_route_internal Boolean true, falseNo distance Integer min: 1, max: 255 No down_bit_ignore Boolean true, falseNo log_adjacency_changes Choice none, brief, detailNo maximum_paths Integer min: 1, max: 64 No name_lookup Boolean true, falseNo name_lookup_use_vrf String No rfc1583compatibility Boolean true, falseNo router_id String No max_metric_router_lsa Class [max_metric_router_lsa]No areas List [areas]No vrfs List [vrfs]No
Name Type Constraint Mandatory Default Value process String Yes advertise_secondaries Boolean true, falseNo trueadvertise_subnet Boolean true, falseNo area String No bfd Boolean true, falseNo cost Integer min: 0, max: 65535 No dead_interval Integer min: 0, max: 65535 No hello_interval Integer min: 0, max: 65535 No mtu_ignore Boolean true, falseNo network Choice unspecified, p2p, bcastNo prefix_attribute_n_flag Choice unspecified, clearNo passive_interface Boolean true, falseNo priority Integer min: 0, max: 255 No retransmit_interval Integer min: 1, max: 65535 No transmit_delay Integer min: 1, max: 450 No authentication_key String No message_digest_key_id Integer min: 0, max: 255 No authentication_key_secure_mode Boolean true, falseNo authentication_key_chain String No message_digest_key String No message_digest_key_secure_mode Boolean true, falseNo authentication Choice unspecified, simple, md5, noneNo
Name Type Constraint Mandatory Default Value on_startup_wait_for_bgp String No external_lsa Boolean true, falseNo external_lsa_max_metric Integer min: 0, max: 16777215 No include_stub Boolean true, falseNo summary_lsa Boolean true, falseNo summary_lsa_max_metric Integer min: 0, max: 16777215 No on_startup Boolean true, falseNo on_startup_timeout Integer min: 0, max: 4294967295 No
Name Type Constraint Mandatory Default Value id String Yes authentication Choice unspecified, simple, md5, noneNo default_cost Integer min: 0, max: 16777215 No nssa_no_redistribution Boolean true, falseNo no_summary Boolean true, falseNo nssa_translate_type7 Choice always, candidate, neverNo segment_routing_mpls Boolean true, falseNo nssa_translate_type7_suppress_fa Boolean true, falseNo type Choice regular, stub, nssaNo
Name Type Constraint Mandatory Default Value vrf String Yes shutdown Boolean true, falseNo falseauto_cost_reference_bandwidth Integer min: 0, max: 4294967295 No auto_cost_reference_bandwidth_unit Choice mbps, gbpsNo bfd Boolean true, falseNo capability_vrf_lite Choice unspecified, l3vpn, evpnNo default_metric Integer min: 0, max: 16777214 No passive_interface_default Boolean true, falseNo default_route_nssa_abr_pbit_clear Boolean true, falseNo discard_route_external Boolean true, falseNo discard_route_internal Boolean true, falseNo distance Integer min: 1, max: 255 No down_bit_ignore Boolean true, falseNo log_adjacency_changes Choice none, brief, detailNo maximum_paths Integer min: 1, max: 64 No name_lookup Boolean true, falseNo name_lookup_use_vrf String No rfc1583compatibility Boolean true, falseNo router_id String No max_metric_router_lsa Class [max_metric_router_lsa]No areas List [areas]No
Example 1: Basic OSPF underlay for spine-leaf fabric with loopback and P2P links
Example 2: OSPF with BFD, tuned timers, and passive interfaces
log_adjacency_changes : detail
Example 3: Multi-area OSPF with stub area and max-metric for maintenance
log_adjacency_changes : brief
rfc1583compatibility : false
Example 4: OSPF in a VRF with passive-interface default and interface overrides
passive_interface_default : true
auto_cost_reference_bandwidth : 100
auto_cost_reference_bandwidth_unit : gbps
passive_interface : disabled