update_interface
Update pfSense interface settings by ID, adjusting IP configuration, gateway, and enabling options with optional immediate application.
Instructions
Update an existing interface by ID
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| descr | No | Interface description/friendly name | |
| enable | No | Whether the interface is enabled | |
| ipaddr | No | IPv4 address | |
| subnet | No | Subnet mask bits | |
| typev4 | No | IPv4 configuration type (static, dhcp, none) | |
| gateway | No | Gateway name | |
| blockpriv | No | Block private networks (RFC 1918) | |
| blockbogons | No | Block bogon networks | |
| interface_id | Yes | Interface ID, which the API keys by name: "wan", "lan", or "optN" (e.g. "opt16"). Take it from the "id" field returned by search_interface_configs, not from the row's position. | |
| apply_immediately | No | Whether to apply changes immediately |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||