create_interface
Set up a network interface by selecting a physical port and defining IPv4 address, subnet, gateway, and blocking options, then apply the configuration.
Instructions
Create (assign) a network 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 | |||