Switch Routing Interfaces DHCP Configuration
Dashboard Location: Switching > Configure > Routing and DHCP
DHCP Service Management for Layer 3 Interfaces
Section titled “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
Section titled “Diagram”Classes
Section titled “Classes”switch_routing_interfaces (meraki.domains.organizations.networks.devices)
Section titled “switch_routing_interfaces (meraki.domains.organizations.networks.devices)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| dhcp | Class | [dhcp] | No |
dhcp (meraki.domains.organizations.networks.devices.switch_routing_interfaces)
Section titled “dhcp (meraki.domains.organizations.networks.devices.switch_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.devices.switch_routing_interfaces.dhcp)
Section titled “dhcp_options (meraki.domains.organizations.networks.devices.switch_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.devices.switch_routing_interfaces.dhcp)
Section titled “reserved_ip_ranges (meraki.domains.organizations.networks.devices.switch_routing_interfaces.dhcp)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| start | IP | Yes | ||
| end | IP | Yes | ||
| comment | String | min: 1, max: 127 | Yes |
fixed_ip_assignments (meraki.domains.organizations.networks.devices.switch_routing_interfaces.dhcp)
Section titled “fixed_ip_assignments (meraki.domains.organizations.networks.devices.switch_routing_interfaces.dhcp)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | min: 1, max: 127 | Yes | |
| mac | MAC | Yes | ||
| ip | IP | Yes |
Examples
Section titled “Examples”Example-1: The example below demonstrates switch routing interfaces DHCP configuration.
This configuration enables DHCP services on Layer 3 switch routing interfaces for automated IP address management. The example includes DHCP pool definitions, lease settings, and DNS configurations for centralized network address assignment.
The device named dmz_switch_02 is configured with a routing interface called “VLAN 10” that acts as a DHCP server with a lease time of one day. It uses custom DNS nameservers, specifically 8.8.8.8, and includes boot options with a next-server IP of 1.1.1.65 and a boot file named “test”. The DHCP server is configured with option 150 to provide the IP address 1.1.1.60, reserves the IP range from 1.1.1.200 to 1.1.1.205 for specific uses, and assigns a fixed IP of 1.1.1.25 to the device with MAC address 00:11:22:33:44:55, labeled as “Network Infrastructure”.
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_relay_server_ips: # - "2.2.2.2" 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"