Tap
Creates and configures a TAP (network TAP) interface on the host system. A TAP interface operates at the data link layer (Layer 2) of the OSI model and emulates an Ethernet device. It is commonly used in applications where we want to capture and transmit directly with raw Ethernet frames, making it suitable for scenarios such as packet capture, tunneling, or network simulation. The TAP interface allows reading and writing of Ethernet frames into the pipeline, enabling seamless integration into virtualized networking environments or network routing/bridging logic. Note, see also the TUN component for Layer 3 IP packet handling.
Tags: NETWORKING
, IO
, INGRESS
Field | Type | Optional | Description | Default Value |
---|---|---|---|---|
Input | String | No | ||
Output | String | No | ||
Interface Name | String | No | Name of the TAP interface to be created (e.g., tap0). | tap0 |
Ip | String | No | IP address to assign to the TAP interface. | 10.0.0.1 |
Netmask | String | Yes | Subnet mask to configure for the TAP interface. | 255.255.255.0 |
Is Default Route | Bool | Yes | Whether to set the TAP interface as the system's default network route. | false |
Mtu | Uint32 | Yes | Maximum Transmission Unit (MTU) to configure for the TAP interface. | 1280 |