Manage IP Address
manage_ip_addressAdd, update, or remove an IP address on a MikroTik router interface. Use dry-run to preview changes before applying.
Instructions
Add, update, or remove an IP address on a MikroTik router interface. Performs idempotency checks for add operations and supports dry-run mode for all actions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routerId | Yes | Target router identifier from the router registry | |
| action | Yes | Action to perform: add, update, or remove an IP address | |
| address | Yes | IP address with optional prefix length in CIDR notation (e.g., 192.168.1.1/24). Defaults to /32 if prefix is omitted. | |
| interface | Yes | Interface to assign the IP address to | |
| network | No | Network address (auto-calculated from address if omitted) | |
| comment | No | Optional comment for the IP address entry | |
| disabled | No | Whether the IP address should be disabled | |
| dryRun | No | If true, validate and return planned changes without applying | |
| confirmationToken | No | Token from a prior APPROVAL_REQUIRED response. Re-submit the identical call with this token to confirm the destructive action. |