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

FieldTypeOptionalDescriptionDefault Value
InputStringNo
OutputStringNo
Interface NameStringNoName of the TAP interface to be created (e.g., tap0).tap0
IpStringNoIP address to assign to the TAP interface.10.0.0.1
NetmaskStringYesSubnet mask to configure for the TAP interface.255.255.255.0
Is Default RouteBoolYesWhether to set the TAP interface as the system's default network route.false
MtuUint32YesMaximum Transmission Unit (MTU) to configure for the TAP interface.1280