opnsense_if_configure
Configure IPv4/IPv6 on an already assigned OPNsense interface slot via SSH. Supports static, DHCP, DHCP6, track6, or 'none'.
Instructions
Configure IPv4/IPv6 on an already-assigned optN slot via SSH. Supports static, dhcp, dhcp6, track6, and 'none'. Requires OPNSENSE_SSH_ENABLED=true and the opnsense-helpers/if_configure.php script installed on the target host.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | Yes | Target slot (must already be assigned, e.g. 'opt1') | |
| ipv4 | No | IPv4 address (e.g. '10.10.10.1'), or 'none' / 'dhcp'. Omit to leave IPv4 unchanged. | |
| subnet | No | IPv4 CIDR prefix length (0..32). Required when ipv4 is a literal address. | |
| ipv6 | No | IPv6 address, or 'none' / 'dhcp6' / 'track6'. Omit to leave IPv6 unchanged. | |
| subnetv6 | No | IPv6 CIDR prefix length (0..128). Required when ipv6 is a literal address. | |
| track6_interface | No | Parent interface for track6 (e.g. 'wan'). Required when ipv6=track6. | |
| track6_prefix_id | No | Numeric prefix ID for track6 (optional) | |
| descr | No | Optional friendly description (max 120 chars) | |
| no_filter_reload | No | Skip filter_configure() after applying (default false). Useful when batching multiple configures. |