Skip to main content

Static Routes

Location in Dashboard: Switching >> Configure >> Routing and DHCP

Diagram

Classes

devices (meraki.domains.organizations.networks)

NameTypeConstraintMandatoryDefault Value
switch_routing_static_routesList[switch_routing_static_routes]No

switch_routing_static_routes (meraki.domains.organizations.networks.devices)

NameTypeConstraintMandatoryDefault Value
nameStringmin: 1, max: 127No
subnetStringRegex: ^((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\/([1-9]|[12][0-9]|3[0-2])$No
next_hop_ipIPNo
advertise_via_ospfBooleantrue, falseNo
prefer_over_ospf_routesBooleantrue, falseNo
management_next_hopIPNo

Config Sample

meraki:
domains:
- name: EMEA
administrator:
name: Foo Bar
organizations:
- name: Dev
networks:
- name: Dev-main-cx-provider
product_types:
- appliance
- camera
- switch
- wireless
devices:
- name: L3 Switch 01
switch_routing_static_routes:
- name: Route 1
subnet: "2.2.2.0/24"
next_hop_ip: 1.1.1.254
advertise_via_ospf: true
prefer_over_ospf_routes: true