Open
Description
Module Description
This module can be used to configure the settings available in the ui under Services
-> DHCPv4
-> [$interfacename]
Minimum Viable Product (MVP)
module: services_dhcpv4
short_description: Configure DHCP server for specific Interface.
description:
- Module to configure general system settings
options:
interface:
description: "The Interface the DHCP server should be configured on"
type: str
required: true
enable:
description: Wheter the Server is enabled or not
type: bool
default: true
required: false
range_from:
description: Start of the IP Pool
type: str
required: false
range_to:
description: End of the IP Pool
type: str
required: false
Examples
---
- name: Enable DHCP Server on LAN interface
puzzle.opnsense.services_dhcpv4:
interface: LAN
- name: Enable DHCP Server on guestwifi interface
puzzle.opnsense.services_dhcpv4:
interface: guestwifi
enable: true
range_from: 192.168.10.100
range_to: 192.168.10.254
Additional Notes (Optional)
- Starting with Opnsense 24.1 there are 2 DHCP Servers ISC (old) and Kea (new), what's described above references the old ISC Server