set_ip_settings
Configure the switch management IP address via DHCP or static settings, including IP, netmask, and gateway, to control how the device is reached on the network.
Instructions
Change the switch management IP configuration.
WARNING: This may make the switch unreachable if misconfigured.
Args: dhcp: True for DHCP (auto), False for static IP. ip: Static IP address (only used when dhcp=False). netmask: Subnet mask (only used when dhcp=False). gateway: Default gateway (only used when dhcp=False).
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": {
"dhcp": "<dhcp>"
},
"name": "set_ip_settings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | ||
| dhcp | Yes | ||
| gateway | No | ||
| netmask | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |