Scroll to navigation

LIBVDEPLUG_SLIRP(1) General Commands Manual LIBVDEPLUG_SLIRP(1)

NAME

libvdeplug_slirp - slirp vdeplug module

SYNOPSIS

libvdeplug_slirp.so

DESCRIPTION

This is the libvdeplug module to join TCP-IP networks using the slirp emulator.

This module of libvdeplug4 can be used in any program supporting vde like vde_plug, vdens, kvm, qemu, user-mode-linux and virtualbox.

The vde_plug_url syntax of this module is the following: ``` slirp://[/OPTION][/OPTION]

OPTIONS

provide IPv4 or IPv6 service only. Both family of protocols are enabled if both v4 and v6 options are present of if neither of them have been specified.
Set the IPv4 address of slirp (default value 10.0.2.2/24).
Set the IPv6 address of slirp (default value fd00::2/64).
define the hostname (default value: slirp)
define the hostname of the dhcp server
define the path of the directory whose contents are available by the tftp service
define the path of the bootfile (for bootp)
set the lowest IP address assigned by dhcp
set the address of the IPv4 DNS proxy
set the address of the IPv6 DNS proxy
set the default domains for the neame resolution e.g. vdnssearch=foo.com,bar.org
set the domain name
define the MTU
define the MRU
disable loopback
forward TCP port(s).
forward UDP port(s).
forward TCP port(s) (from the virtual network) to PF_UNIX socket(s) (commonly used to forward ports to a X server) still unsupported by libslirp.
forward TCP port(s) (from the virtual network) to external command(s).
print a table of slirp service configuration.

EXAMPLES

This vde_plug_url enables both IPv4 and IPv6 (using the default configuration)

slirp://

Like the previous example but it prints the table of the configuration options

slirp:///verbose

When a program uses the following vde_plug_url:

slirp:///tcpfwd=8080:10.0.2.15:80

tcp connections to the host computer port 8080 (any interface) are forwarded to 10.0.2.15 port 80

slirp:///tcpfwd=8080:10.0.2.15:80/cmdfwd=10.0.2.5:6000:'socat STDIO UNIX:"/tmp/.X11-unix/X0"'

like the previous one plus this uses socat to forward all X-windows requests to 10.0.2.5:0 (port 6000) to the local server of the display :0.

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").

SEE ALSO

vde_plug(1)

AUTHOR

VirtualSquare. Project leader: Renzo Davoli

October 2020 VirtualSquare