Skip to main content

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

FieldTypeLabelDescriptionDefault Value
InputString
OutputString
Interface NameStringName of the TAP interface to be created (e.g., tap0).tap0
IpStringIP address to assign to the TAP interface.10.0.0.1
NetmaskStringOptionalSubnet mask to configure for the TAP interface.255.255.255.0
Is Default RouteBoolOptionalWhether to set the TAP interface as the system's default network route.false
MtuUint32OptionalMaximum Transmission Unit (MTU) to configure for the TAP interface.1280