VDETAPLIB(1)
π VDETAPLIB(1) β vdetaplib, the tap-emulation bestie π
okay so bestie, this is the General Commands Manual page for vdetaplib, and itβs giving tap-emulation library main character energy. Weβre going in. π
β¨ NAME β¨
vdetaplib - Virtual Distributed Ethernet tap emulation library. Periodt. π
π¦ SYNOPSIS π¦
No synopsis.
Like, literally no synopsis. Thatβs the vibe. π
πΈ DESCRIPTION πΈ
okay so vdetaplib is a library that emulates tap β a tuntap level2 interface, see in kernel sources Documentation/networking/tun.c β and connects tap virtual interfaces to vde networks. Itβs iconic, itβs niche, iykyk. π¦
To use it, the libvdetab.so library must be preloaded. Hereβs the syntax for sh, ksh or bash:
export LD_PRELOAD=/usr/lib/vde2/libvdetap.so
And for csh, tcsh syntax:
setenv LD_PRELOAD /usr/lib/vde2/libvdetap.so
bestie, yes: the library line sayslibvdetab.so, and the preload example sayslibvdetap.so. Keep the strings exactly as written. π
π one vde_switch to rule all the taps
If you want to divert all tap requests to a single vde_switch, set the variable VDEALLTAP to the vde socket. Hereβs the sh, ksh or bash syntax:
export VDEALLTAP=/tmp/vde.ctl
And the csh, tcsh syntax:
setenv VDEALLTAP /tmp/vde.ctl
π¦ per-interface switch glow-up
It is possible to set each single interface to different vde_switches by setting the environment variable with the same name of the interface. sh, ksh or bash syntax:
export tap0=/tmp/vde.ctl
export tap1=/tmp/myvde.ctl
export ppc=/tmp/ppc.ctl
csh, tcsh syntax:
setenv tap0 /tmp/vde.ctl
setenv tap1 /tmp/myvde.ctl
setenv ppc /tmp/ppc.ctl
π₯ port, group, mode
It is also possible to specify port, group or mode for a given interface by setting environment variables as in the following example. sh, ksh or bash syntax:
export tap0_port=5
export tap0_group=vde-net
export tap0_mode=0660
csh, tcsh syntax:
setenv tap0_port 5
setenv tap0_group vde-net
setenv tap0_mode 0660
π fallback vibe check
The variable to set the specific interface is checked first, then VDEALLTAP. VDEALLTAP thus works as a default choice for the vde switch to be used. If VDEALLTAP is not set and there is no specific environment variable (and for tun -- IFF_TUN interfaces) the kernel provided interface is used. In this latter case access to /dev/net/tun is required, generally root access.
heads up, bestie: that /dev/net/tun access is the whole plot twist β generally root access, no cap. π
π¨ NOTICE π¨
Virtual Distributed Ethernet is not related in any way with www.vde.com ("Verband der Elektrotechnik, Elektronik und Informationstechnik" i.e. the German "Association for Electrical, Electronic & Information Technologies"). Not the vibe, not the same thing, periodt. π
π SEE ALSO π
Go peek at those, bestie. Theyβre in the group chat too. π«Ά
π AUTHOR π
VDE is a project by Renzo Davoli <renzo@cs.unibo.it>. Slay, Renzo. π«Ά
xoxo, Virtual Distributed Ethernet π December 6, 2006 π β thatβs the source/version and date sign-off, bestie. π
π¦ where this page comes from
- alpine 3.24: vde2-doc 2.3.3-r7 Β· GPL
- arch rolling: vde2 2.3.3-10 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms