opnsense_dhcp_add_static
Reserve an IP address for a specific MAC address by adding a static DHCP mapping. 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mac": "<mac>",
"ipaddr": "<ipaddr>"
},
"name": "opnsense_dhcp_add_static"
}
}Input 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 |