set_static_lease
Reserve a fixed IP for a MAC address as a static DHCP lease and save the router config. Use when you know the device's MAC and need a stable IP, after checking for conflicts.
Instructions
Reserve a fixed IP for a MAC address (static DHCP lease) and save the router config. Use when you already know the MAC (e.g. a device that is offline); for a connected device prefer pin_device, which looks up the MAC for you and checks for IP conflicts. This tool does NOT check conflicts — call find_free_ip or list_static_leases first. Re-running with the same values is harmless. The optional name is only the dhcp-host label; to change the display name in the web UI use rename_device. Takes effect when the device next renews its lease (reconnect it to apply immediately).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | IPv4 address to reserve, inside the LAN subnet (e.g. 192.168.1.120). | |
| mac | Yes | Device MAC address, e.g. aa:bb:cc:dd:ee:ff (case-insensitive). | |
| name | No | Optional internal label for the dhcp-host entry (not the web-UI display name). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |