ip-tuntap
creates and manages TUN/TAP virtual network interfaces
TLDR
SYNOPSIS
ip tuntap [command] [options]
DESCRIPTION
ip tuntap creates and manages TUN/TAP virtual network interfaces. TUN devices operate at layer 3 (IP packets) while TAP devices operate at layer 2 (Ethernet frames).
These virtual interfaces are commonly used by VPN software, virtualization (QEMU/KVM), and network testing tools. Setting user/group ownership allows non-root processes to use the device.
PARAMETERS
add dev NAME mode MODE
Create a TUN or TAP devicedelete dev NAME mode MODE
Remove a TUN or TAP devicemode tun|tap
Device mode: tun (layer 3) or tap (layer 2)user USERNAME
Set device owner by username or UIDgroup GROUPNAME
Set device group by name or GIDmulti_queue
Enable multi-queue mode
CAVEATS
Requires root privileges to create devices. Devices persist until deleted or reboot. Applications using the device must be configured to match the device name. Mode must match between add and delete operations.
HISTORY
TUN/TAP support has been in the Linux kernel since version 2.4. The ip tuntap command provides a modern interface for managing these devices, replacing older methods using openvpn or tunctl.

