create_interface
Assign and configure a pfSense network interface, including IPv4 settings and network blocking options, to set up LAN, WAN, or DMZ segments.
Instructions
Create (assign) a network interface
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": {
"interface_port": "<interface_port>"
},
"name": "create_interface"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| descr | No | Interface description/friendly name (e.g., LAN2, DMZ) | |
| enable | No | Whether the interface is enabled | |
| ipaddr | No | IPv4 address (required if typev4 is static) | |
| subnet | No | Subnet mask bits (e.g., 24 for /24, required if typev4 is static) | |
| typev4 | No | IPv4 configuration type (static, dhcp, none) | static |
| gateway | No | Gateway name for this interface | |
| blockpriv | No | Block private networks (RFC 1918) | |
| blockbogons | No | Block bogon networks | |
| interface_port | Yes | Physical port name (e.g., igb0, em0, vtnet0) | |
| apply_immediately | No | Whether to apply changes immediately |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||