Skip to content

Switch Routing Interfaces DHCP Configuration

Dashboard Location: Switching > Configure > Routing and DHCP

DHCP Service Management for Layer 3 Interfaces

Switch routing interfaces DHCP configuration in Meraki networks provides administrators with the capability to implement comprehensive DHCP services directly on Layer 3 switch interfaces, enabling distributed IP address management, network boot services, and advanced DHCP options. This functionality supports automated IP allocation, DNS configuration, DHCP relay services, PXE boot environments, custom DHCP options, and centralized address reservation management. Switch interface DHCP services are essential for distributed network architectures, reducing DHCP server dependencies, providing network redundancy, and supporting specialized network services like VoIP and network boot scenarios.

Diagram

Diagram

Classes

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

NameTypeConstraintMandatoryDefault Value
dhcpClass[dhcp]No

dhcp (meraki.domains.organizations.networks.devices.switch_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.devices.switch_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.devices.switch_routing_interfaces.dhcp)

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

fixed_ip_assignments (meraki.domains.organizations.networks.devices.switch_routing_interfaces.dhcp)

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

Examples

Example-1: The example below demonstrates switch routing interface DHCP 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
devices:
- name: "!env dmz_switch_02"
switch_routing_interfaces:
- name: VLAN 10
dhcp:
dhcp_mode: "dhcpServer"
dhcp_lease_time: "1 day"
dns_nameservers_option: "custom"
dns_custom_nameservers:
- 8.8.8.8
boot_options: true
boot_next_server: "1.1.1.65"
boot_file_name: "test"
dhcp_options:
- code: "150"
type: "ip"
value: "1.1.1.60"
reserved_ip_ranges:
- start: "1.1.1.200"
end: "1.1.1.205"
comment: "test"
fixed_ip_assignments:
- name: "test"
mac: "00:11:22:33:44:55"
ip: "1.1.1.25"
comment: "Network Infrastructure"