Skip to content

Switch OSPF Routing Configuration

Dashboard Location: Switching > Configure > OSPF Routing

Dynamic Routing Protocol Management

Switch OSPF (Open Shortest Path First) routing configuration in Meraki networks provides administrators with the capability to implement dynamic routing protocols for intelligent path selection, network convergence, and scalable multi-area network topologies. This functionality enables automatic route discovery, load balancing across multiple paths, network redundancy, and simplified network management through link-state routing protocols. OSPF routing is essential for large-scale network deployments, multi-site connectivity, advanced traffic engineering, and maintaining optimal network performance through dynamic route computation.

Diagram

Diagram

Classes

switch (meraki.domains.organizations.networks)

NameTypeConstraintMandatoryDefault Value
routing_ospfClass[routing_ospf]No

routing_ospf (meraki.domains.organizations.networks.switch)

NameTypeConstraintMandatoryDefault Value
enabledBooleantrue, falseNo
hello_timer_in_secondsIntegermin: 1, max: 65535No
dead_timer_in_secondsIntegermin: 1, max: 65535No
areasList[areas]No
v3Class[v3]No
md5_authentication_keyClass[md5_authentication_key]No
md5_authenticationBooleantrue, falseNo

areas (meraki.domains.organizations.networks.switch.routing_ospf)

NameTypeConstraintMandatoryDefault Value
area_idAnyString[min: 1, max: 13] or IP or Integer[min: 1, max: 4294967295]Yes
area_nameStringmin: 1, max: 127Yes
area_typeChoicenormal, nssa, stubYes

v3 (meraki.domains.organizations.networks.switch.routing_ospf)

NameTypeConstraintMandatoryDefault Value
enabledBooleantrue, falseNo
hello_timer_in_secondsIntegermin: 1, max: 65535No
dead_timer_in_secondsIntegermin: 1, max: 65535No
areasList[areas]No

md5_authentication_key (meraki.domains.organizations.networks.switch.routing_ospf)

NameTypeConstraintMandatoryDefault Value
idIntegermin: 1, max: 1234No
passphraseStringmin: 1, max: 127No

areas (meraki.domains.organizations.networks.switch.routing_ospf.v3)

NameTypeConstraintMandatoryDefault Value
area_idAnyString[min: 1, max: 13] or IP or Integer[min: 1, max: 4294967295]Yes
area_nameStringmin: 1, max: 127Yes
area_typeChoicenormal, nssa, stubYes

Examples

Example-1: The example below demonstrates switch OSPF routing configuration using tested YAML configuration from pipeline fixtures.

meraki:
domains:
- name: "!env domain"
administrator:
name: "!env org_admin"
organizations:
- name: "!env org"
networks:
- name: "!env network_name"
product_types:
- appliance
- switch
- wireless
- camera
- sensor
- cellularGateway
switch:
routing_ospf:
enabled: true
hello_timer_in_seconds: 10
dead_timer_in_seconds: 30
areas:
- area_id: "0"
area_name: BACKBONE
area_type: normal
- area_id: "20"
area_name: branch1
area_type: normal
v3:
enabled: false
hello_timer_in_seconds: 30
dead_timer_in_seconds: 60
md5_authentication: true
md5_authentication_key:
id: 1
passphrase: "!env ospf_auth_key"

Configuration Parameters

ParameterTypeRequiredDescription
routing_ospfObjectNoOSPF routing configuration
routing_ospf.enabledBooleanYesEnable/disable OSPF routing
routing_ospf.hello_timer_in_secondsIntegerYesHello packet interval (1-255 seconds)
routing_ospf.dead_timer_in_secondsIntegerYesDead interval timer (1-65535 seconds)
routing_ospf.areasArrayYesOSPF area definitions
routing_ospf.areas[n].area_idStringYesOSPF area ID (0-4294967295 or dotted decimal)
routing_ospf.areas[n].area_nameStringYesDescriptive name for the area
routing_ospf.areas[n].area_typeStringYesArea type: “normal”, “stub”, “nssa”
routing_ospf.v3ObjectNoOSPFv3 (IPv6) configuration
routing_ospf.v3.enabledBooleanYesEnable/disable OSPFv3
routing_ospf.v3.hello_timer_in_secondsIntegerYesOSPFv3 hello interval (1-255 seconds)
routing_ospf.v3.dead_timer_in_secondsIntegerYesOSPFv3 dead interval (1-65535 seconds)
routing_ospf.md5_authenticationBooleanNoEnable MD5 authentication
routing_ospf.md5_authentication_keyObjectConditionalAuthentication key (required if authentication enabled)
routing_ospf.md5_authentication_key.idIntegerYesKey ID (1-255)
routing_ospf.md5_authentication_key.passphraseStringYesAuthentication passphrase