opnsense_dhcp_add_static
Add a static DHCP mapping to reserve an IP address for a specific MAC address in OPNsense. Supports both Kea and ISC DHCP backends with automatic detection.
Instructions
Add a static DHCP mapping (MAC-to-IP reservation). Supports both Kea DHCP and ISC DHCP (legacy) backends — auto-detected. Requires DHCP service restart to take effect.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mac | Yes | MAC address (format: AA:BB:CC:DD:EE:FF) | |
| ipaddr | Yes | IP address to assign | |
| hostname | No | Optional hostname for the mapping | |
| description | No | Optional description |