Skip to content

Switch Stacks Routing Interfaces Configuration

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

Diagram

Classes

switch_stacks (meraki.domains.organizations.networks)

NameTypeConstraintMandatoryDefault Value
routing_interfacesList[routing_interfaces]No

routing_interfaces (meraki.domains.organizations.networks.switch_stacks)

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
interface_ipIPNo
multicast_routingChoiceIGMP snooping querier, disabled, enabledNo
vlan_idAnyInteger[min: 1, max: 4094] or String[matches: `(?:[1-9][1-9][0-9][1-9][0-9]2
default_gatewayIPNo
ospf_settingsClass[ospf_settings]No
ipv6Class[ipv6]No
dhcpClass[dhcp]No

ospf_settings (meraki.domains.organizations.networks.switch_stacks.routing_interfaces)

NameTypeConstraintMandatoryDefault Value
areaAnyString[min: 1, max: 13] or IP or Integer[min: 1, max: 4294967295]No
costIntegermin: 1, max: 65535No
is_passiveBooleantrue, falseNo

ipv6 (meraki.domains.organizations.networks.switch_stacks.routing_interfaces)

NameTypeConstraintMandatoryDefault Value
assignment_modeChoiceeui-64, staticNo
prefixStringmin: 1, max: 1024No
addressStringmin: 1, max: 1024No
gatewayIPNo

dhcp (meraki.domains.organizations.networks.switch_stacks.routing_interfaces)

NameTypeConstraintMandatoryDefault Value
dhcp_modeChoicedhcpDisabled, dhcpRelay, dhcpServerNo
dhcp_relay_server_ipsListIPNo
dhcp_lease_timeChoice1 day, 1 hour, 1 week, 12 hours, 30 minutes, 4 hoursNo
dns_nameservers_optionChoicecustom, googlePublicDns, openDnsNo
dns_custom_nameserversListIPNo
boot_next_serverIPNo
boot_file_nameStringmin: 1, max: 127No
dhcp_optionsList[dhcp_options]No
reserved_ip_rangesList[reserved_ip_ranges]No
fixed_ip_assignmentsList[fixed_ip_assignments]No
boot_optionsBooleantrue, falseNo

dhcp_options (meraki.domains.organizations.networks.switch_stacks.routing_interfaces.dhcp)

NameTypeConstraintMandatoryDefault Value
codeStringRegex: ^([2-9]|1[0-9][0-9]?|2[0-9]|2[0-5][0-4]|[3-9][0-9])$Yes
typeChoicehex, integer, ip, textYes
valueStringmin: 1, max: 127Yes

reserved_ip_ranges (meraki.domains.organizations.networks.switch_stacks.routing_interfaces.dhcp)

NameTypeConstraintMandatoryDefault Value
startIPYes
endIPYes
commentStringmin: 1, max: 127No

fixed_ip_assignments (meraki.domains.organizations.networks.switch_stacks.routing_interfaces.dhcp)

NameTypeConstraintMandatoryDefault Value
nameStringmin: 1, max: 127Yes
macMACYes
ipIPYes

Examples

Example-1: The example below demonstrates switch stack routing interfaces 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_stacks:
- name: DEV_CORE
routing_interfaces:
- name: CORP
subnet: 100.65.10.0/24
interface_ip: 100.65.10.1
multicast_routing: enabled
vlan_id: 10
ospf_settings:
area: "0"
cost: 1
is_passive: true
dhcp:
dhcp_mode: dhcpServer
dhcp_lease_time: 30 minutes
dns_nameservers_option: googlePublicDns
boot_options: false
- name: BMS
subnet: 100.65.20.0/24
interface_ip: 100.65.20.1
multicast_routing: enabled
vlan_id: 20
ospf_settings:
area: "0"
cost: 1
is_passive: true

Configuration Parameters

ParameterTypeRequiredDescription
routing_interfacesarrayNoList of Layer 3 routing interface configurations
routing_interfaces[].namestringYesDescriptive name for the routing interface
routing_interfaces[].subnetstringYesSubnet in CIDR notation (e.g., 192.168.1.0/24)
routing_interfaces[].interface_ipstringYesIP address of the switch interface within the subnet
routing_interfaces[].vlan_idintegerYesVLAN ID associated with this routing interface
routing_interfaces[].multicast_routingstringNoEnable/disable multicast routing (enabled/disabled)
routing_interfaces[].default_gatewaystringNoDefault gateway for this interface
routing_interfaces[].ospf_settingsobjectNoOSPF configuration for this interface
routing_interfaces[].dhcparrayNoDHCP configuration options
routing_interfaces[].ipv6objectNoIPv6 configuration (when supported)

OSPF Settings Parameters

ParameterTypeRequiredDescription
ospf_settings.areastringYesOSPF area ID (e.g., “0”, “0.0.0.1”)
ospf_settings.costintegerNoOSPF interface cost (1-65535)
ospf_settings.is_passivebooleanNoConfigure interface as passive (true/false)

DHCP Configuration Parameters

ParameterTypeRequiredDescription
dhcp[].dhcp_modestringYesDHCP mode (dhcpServer/dhcpRelay/dhcpDisabled)
dhcp[].dhcp_lease_timestringNoLease duration (“30 minutes”, “1 day”, “1 week”)
dhcp[].dns_nameservers_optionstringNoDNS server option (googlePublicDns/openDns/custom)
dhcp[].dns_custom_nameserversarrayNoCustom DNS servers (when using custom option)
dhcp[].boot_optionsbooleanNoEnable boot options for PXE (true/false)

Network Design Guidelines

Interface TypeSubnet SizeUse CaseDHCP Recommendation
User Networks/24 (254 hosts)Employee accessDHCP Server enabled
Guest Networks/25 (126 hosts)Visitor accessDHCP Server with short lease
Server Networks/25-/27InfrastructureDHCP Disabled (static)
Point-to-Point/30 (2 hosts)WAN linksDHCP Disabled
Management/26 (62 hosts)Network devicesDHCP Server or static

OSPF Area Planning

Area TypeArea IDPurposePassive Interface
Backbone0Core routingNo
Standard1-65535Department networksYes (user networks)
StubCustomLimited routingYes (default)
NSSACustomExternal routesDepends on design