dhcp_server_set
View or change DHCP server settings, including enable/disable, pool start/end, lease time, gateway, and DNS, with validation and dry-run planning before applying.
Instructions
DHCP server: action=get shows settings; otherwise change enable / start / end (pool) / lease_minutes (1-2880) / gateway / dns1 / dns2. Validated against the LAN subnet, the router's own IP, active leases and reservations. Disabling DHCP or a gateway other than the router is CRITICAL.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "dhcp_server_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| dns1 | No | ||
| dns2 | No | ||
| apply | No | false (default) = dry run: show the plan, diff, warnings and risk, send nothing. true = send it. | |
| start | No | ||
| action | No | set | |
| enable | No | ||
| reveal | No | Show secrets (passwords/keys) unmasked. | |
| router | No | Which router (see router_status 'routers'); default main. | main |
| gateway | No | ||
| confirm_token | No | Required with apply=true for CRITICAL changes: the token from the dry run (valid 5 minutes, bound to the exact plan and current router state). | |
| lease_minutes | No |