Dashboard Location: Switching > Switch Stacks > [Stack Name] > Routing & DHCP
Switch Stack Layer 3 Interface Management Switch stack routing interfaces configuration in Meraki networks provides administrators with comprehensive Layer 3 connectivity and inter-VLAN routing capabilities for stacked switches, enabling VLAN interface creation, IP address assignment, DHCP service management, and OSPF routing integration. This functionality supports network segmentation, subnet routing, multicast forwarding, and centralized DHCP services across the switch stack. Stack routing interfaces are essential for creating routed networks, enabling inter-VLAN communication, providing DHCP services, and integrating with dynamic routing protocols in enterprise network architectures.
Diagram Classes switch_stacks (meraki.domains.organizations.networks) Name Type Constraint Mandatory Default Value routing_interfaces List [routing_interfaces]
No
routing_interfaces (meraki.domains.organizations.networks.switch_stacks) Name Type Constraint Mandatory Default Value name String min: 1
, max: 127
No subnet String Regex: ^((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 interface_ip IP No multicast_routing Choice IGMP snooping querier
, disabled
, enabled
No vlan_id Any Integer[min: 1
, max: 4094
] or String[matches: `(?:[1-9] [1-9][0-9] [1-9][0-9]2 default_gateway IP No ospf_settings Class [ospf_settings]
No ipv6 Class [ipv6]
No dhcp Class [dhcp]
No
ospf_settings (meraki.domains.organizations.networks.switch_stacks.routing_interfaces) Name Type Constraint Mandatory Default Value area Any String[min: 1
, max: 13
] or IP or Integer[min: 1
, max: 4294967295
] No cost Integer min: 1
, max: 65535
No is_passive Boolean true
, false
No
ipv6 (meraki.domains.organizations.networks.switch_stacks.routing_interfaces) Name Type Constraint Mandatory Default Value assignment_mode Choice eui-64
, static
No prefix String min: 1
, max: 1024
No address String min: 1
, max: 1024
No gateway IP No
dhcp (meraki.domains.organizations.networks.switch_stacks.routing_interfaces) Name Type Constraint Mandatory Default Value dhcp_mode Choice dhcpDisabled
, dhcpRelay
, dhcpServer
No dhcp_relay_server_ips List IP No dhcp_lease_time Choice 1 day
, 1 hour
, 1 week
, 12 hours
, 30 minutes
, 4 hours
No dns_nameservers_option Choice custom
, googlePublicDns
, openDns
No dns_custom_nameservers List IP No boot_next_server IP No boot_file_name String min: 1
, max: 127
No dhcp_options List [dhcp_options]
No reserved_ip_ranges List [reserved_ip_ranges]
No fixed_ip_assignments List [fixed_ip_assignments]
No boot_options Boolean true
, false
No
dhcp_options (meraki.domains.organizations.networks.switch_stacks.routing_interfaces.dhcp) Name Type Constraint Mandatory Default Value code String Regex: ^([2-9]|1[0-9][0-9]?|2[0-9]|2[0-5][0-4]|[3-9][0-9])$
Yes type Choice hex
, integer
, ip
, text
Yes value String min: 1
, max: 127
Yes
reserved_ip_ranges (meraki.domains.organizations.networks.switch_stacks.routing_interfaces.dhcp) Name Type Constraint Mandatory Default Value start IP Yes end IP Yes comment String min: 1
, max: 127
No
fixed_ip_assignments (meraki.domains.organizations.networks.switch_stacks.routing_interfaces.dhcp) Name Type Constraint Mandatory Default Value name String min: 1
, max: 127
Yes mac MAC Yes ip IP Yes
Examples Example-1: The example below demonstrates switch stack routing interfaces configuration using tested YAML configuration from pipeline fixtures.
- name : " !env network_name "
interface_ip : 100.65.10.1
multicast_routing : enabled
dhcp_lease_time : 30 minutes
dns_nameservers_option : googlePublicDns
interface_ip : 100.65.20.1
multicast_routing : enabled
Configuration Parameters Parameter Type Required Description routing_interfaces
array No List of Layer 3 routing interface configurations routing_interfaces[].name
string Yes Descriptive name for the routing interface routing_interfaces[].subnet
string Yes Subnet in CIDR notation (e.g., 192.168.1.0/24) routing_interfaces[].interface_ip
string Yes IP address of the switch interface within the subnet routing_interfaces[].vlan_id
integer Yes VLAN ID associated with this routing interface routing_interfaces[].multicast_routing
string No Enable/disable multicast routing (enabled/disabled) routing_interfaces[].default_gateway
string No Default gateway for this interface routing_interfaces[].ospf_settings
object No OSPF configuration for this interface routing_interfaces[].dhcp
array No DHCP configuration options routing_interfaces[].ipv6
object No IPv6 configuration (when supported)
OSPF Settings Parameters Parameter Type Required Description ospf_settings.area
string Yes OSPF area ID (e.g., “0”, “0.0.0.1”) ospf_settings.cost
integer No OSPF interface cost (1-65535) ospf_settings.is_passive
boolean No Configure interface as passive (true/false)
DHCP Configuration Parameters Parameter Type Required Description dhcp[].dhcp_mode
string Yes DHCP mode (dhcpServer/dhcpRelay/dhcpDisabled) dhcp[].dhcp_lease_time
string No Lease duration (“30 minutes”, “1 day”, “1 week”) dhcp[].dns_nameservers_option
string No DNS server option (googlePublicDns/openDns/custom) dhcp[].dns_custom_nameservers
array No Custom DNS servers (when using custom option) dhcp[].boot_options
boolean No Enable boot options for PXE (true/false)
Network Design Guidelines Interface Type Subnet Size Use Case DHCP Recommendation User Networks /24 (254 hosts) Employee access DHCP Server enabled Guest Networks /25 (126 hosts) Visitor access DHCP Server with short lease Server Networks /25-/27 Infrastructure DHCP Disabled (static) Point-to-Point /30 (2 hosts) WAN links DHCP Disabled Management /26 (62 hosts) Network devices DHCP Server or static
OSPF Area Planning Area Type Area ID Purpose Passive Interface Backbone 0 Core routing No Standard 1-65535 Department networks Yes (user networks) Stub Custom Limited routing Yes (default) NSSA Custom External routes Depends on design