Switch OSPF Routing Configuration
Dashboard Location: Switching > Configure > OSPF Routing
Dynamic Routing Protocol Management
Section titled “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
Section titled “Diagram”Classes
Section titled “Classes”switch (meraki.domains.organizations.networks)
Section titled “switch (meraki.domains.organizations.networks)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| routing_ospf | Class | [routing_ospf] | No |
routing_ospf (meraki.domains.organizations.networks.switch)
Section titled “routing_ospf (meraki.domains.organizations.networks.switch)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| enabled | Boolean | true, false | No | |
| hello_timer_in_seconds | Integer | min: 1, max: 65535 | No | |
| dead_timer_in_seconds | Integer | min: 1, max: 65535 | No | |
| areas | List | [areas] | No | |
| v3 | Class | [v3] | No | |
| md5_authentication_key | Class | [md5_authentication_key] | No | |
| md5_authentication | Boolean | true, false | No |
areas (meraki.domains.organizations.networks.switch.routing_ospf)
Section titled “areas (meraki.domains.organizations.networks.switch.routing_ospf)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| area_id | Any | String[min: 1, max: 13] or IP or Integer[min: 1, max: 4294967295] | Yes | |
| area_name | String | min: 1, max: 127 | Yes | |
| area_type | Choice | normal, nssa, stub | Yes |
v3 (meraki.domains.organizations.networks.switch.routing_ospf)
Section titled “v3 (meraki.domains.organizations.networks.switch.routing_ospf)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| enabled | Boolean | true, false | No | |
| hello_timer_in_seconds | Integer | min: 1, max: 65535 | No | |
| dead_timer_in_seconds | Integer | min: 1, max: 65535 | No | |
| areas | List | [areas] | No |
md5_authentication_key (meraki.domains.organizations.networks.switch.routing_ospf)
Section titled “md5_authentication_key (meraki.domains.organizations.networks.switch.routing_ospf)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| id | Integer | min: 1, max: 1234 | No | |
| passphrase | String | min: 1, max: 127 | No |
Examples
Section titled “Examples”Example-1: The example below demonstrates switch routing OSPF configuration.
This configuration enables Open Shortest Path First (OSPF) routing protocol on Layer 3 switches for dynamic route discovery and convergence. The example includes area assignments, authentication settings, and routing parameters for enterprise network connectivity.
This configuration activates OSPF routing using “enabled: true”, “hello_timer_in_seconds: 10” and “dead_timer_in_seconds: 30” for neighbor discovery timing, and “areas” array defining OSPF areas with “area_id” (0, 20), “area_name” (BACKBONE, branch1), and “area_type: normal” specifications. The configuration includes “v3” settings for OSPFv3 with separate timers, “md5_authentication: true” for secure neighbor authentication, and “md5_authentication_key” with “id: 1” and environment variable “passphrase” for cryptographic authentication between OSPF routers.
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