X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsystemd.netdev.xml;h=0a2cbab09398e355bb03d4b192898a7d00971063;hb=4e6029435111adcad71489aca2dd68bc65aeffd4;hp=5d033e77d39c5e24259895b8d2bf1a0691a0fde2;hpb=9e358851b470a1994287c8cb1d9eb78837faaf60;p=elogind.git
diff --git a/man/systemd.netdev.xml b/man/systemd.netdev.xml
index 5d033e77d..0a2cbab09 100644
--- a/man/systemd.netdev.xml
+++ b/man/systemd.netdev.xml
@@ -60,7 +60,10 @@
Virtual Network Device files must have the extension
.netdev; other extensions are ignored. Virtual
- network devices are created as soon as networkd is started.
+ network devices are created as soon as networkd is started. If a netdev
+ with the specified name already exists, networkd will use that as-is
+ rather than create its own. Note that the settings of the pre-existing
+ netdev will not be changed by networkd.
The .netdev files are read from the files located in the
system network directory /usr/lib/systemd/network,
@@ -163,7 +166,8 @@
macvlan, vxlan,
ipip, gre,
sit, vti,
- veth, and dummy
+ veth, tun,
+ tap and dummy
are supported. This option is compulsory.
@@ -339,6 +343,85 @@
+
+ [Tun] Section Options
+
+ The [Tun] section only applies for netdevs of kind
+ tun, and accepts the following keys:
+
+
+
+ OneQueue=
+ Takes a boolean argument. Configures whether
+ all packets are queued at the device (enabled), or a fixed number
+ of packets are queued at the device and the rest at the
+ qdisc. Defaults to no.
+
+
+
+ MultiQueue=
+ Takes a boolean argument. Configures whether to
+ use multiple file descriptors (queues) to parallelize packets
+ sending and receiving. Defaults to no.
+
+
+
+ PacketInfo=
+ Takes a boolean argument. Configures whether packets
+ should be prepened with four extra bytes (two flag bytes and two
+ protocol bytes). If disabled it indicates that the packets will be
+ pure IP packets. Defaults to no.
+
+
+
+ User=
+ User to grant access to the /dev/net/tun
+ device.
+
+
+
+ Group=
+ Group to grant access to the /dev/net/tun
+ device.
+
+
+
+
+
+
+
+
+ [Tap] Section Options
+
+ The [Tap] section only applies for netdevs of kind
+ tap, and accepts the same keys as the
+ [Tun] section.
+
+
+
+ [Bond] Section Options
+
+ The [Bond] section accepts the following
+ key:
+
+
+
+ Mode=
+
+ Specifies one of the bonding policies. The default is balance-rr (round robin).
+ balance-rr
+ active-backup
+ balance-xor
+ broadcast
+ 802.3ad
+ balance-tlb
+ balance-alb
+
+
+
+
+
+
Example
@@ -374,6 +457,15 @@ Local=192.168.223.238
Remote=192.169.224.239
TTL=64
+
+ /etc/systemd/network/tap.netdev
+ [NetDev]
+Name=tap-test
+Kind=tap
+
+[Tap]
+MultiQueue=true
+PacketInfo=true
/etc/systemd/network/sit.netdev