]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd.netdev.xml
Merge pull request #30844 from keszybz/rename-uid-alloc-range
[thirdparty/systemd.git] / man / systemd.netdev.xml
CommitLineData
eac684ef 1<?xml version='1.0'?> <!--*-nxml-*-->
3a54a157 2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
eea10b26 3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
db9ecf05 4<!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
eac684ef 5
8c66ab20
YW
6<refentry id="systemd.netdev" conditional='ENABLE_NETWORKD'
7 xmlns:xi="http://www.w3.org/2001/XInclude">
eac684ef 8
798d3a52
ZJS
9 <refentryinfo>
10 <title>systemd.network</title>
11 <productname>systemd</productname>
798d3a52
ZJS
12 </refentryinfo>
13
14 <refmeta>
15 <refentrytitle>systemd.netdev</refentrytitle>
16 <manvolnum>5</manvolnum>
17 </refmeta>
18
19 <refnamediv>
20 <refname>systemd.netdev</refname>
21 <refpurpose>Virtual Network Device configuration</refpurpose>
22 </refnamediv>
23
24 <refsynopsisdiv>
25 <para><filename><replaceable>netdev</replaceable>.netdev</filename></para>
26 </refsynopsisdiv>
27
28 <refsect1>
29 <title>Description</title>
30
d4de2b2a 31 <para>A plain ini-style text file that encodes configuration about a virtual network device, used by
798d3a52 32 <citerefentry><refentrytitle>systemd-networkd</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
675fa6ea 33 See <citerefentry><refentrytitle>systemd.syntax</refentrytitle><manvolnum>7</manvolnum></citerefentry>
d4de2b2a 34 for a general description of the syntax.</para>
798d3a52 35
bac150e9
ZJS
36 <para>The main Virtual Network Device file must have the extension <filename>.netdev</filename>;
37 other extensions are ignored. Virtual network devices are created as soon as networkd is
38 started. If a netdev with the specified name already exists, networkd will use that as-is rather
39 than create its own. Note that the settings of the pre-existing netdev will not be changed by
798d3a52
ZJS
40 networkd.</para>
41
cc9b6bdc
YW
42 <para>The <filename>.netdev</filename> files are read from the files located in the system network
43 directory <filename>/usr/lib/systemd/network</filename> and
44 <filename>/usr/local/lib/systemd/network</filename>, the volatile runtime network directory
45 <filename>/run/systemd/network</filename> and the local administration network directory
46 <filename>/etc/systemd/network</filename>. All configuration files are collectively sorted and
47 processed in alphanumeric order, regardless of the directories in which they live. However, files
48 with identical filenames replace each other. It is recommended that each filename is prefixed with
2c453485
YW
49 a number smaller than <literal>70</literal> (e.g. <filename>10-vlan.netdev</filename>). Otherwise,
50 <filename>.netdev</filename> files generated by
cc9b6bdc
YW
51 <citerefentry><refentrytitle>systemd-network-generator.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
52 may take precedence over user configured files. Files in <filename>/etc/</filename> have the
53 highest priority, files in <filename>/run/</filename> take precedence over files with the same name
54 in <filename>/usr/lib/</filename>. This can be used to override a system-supplied configuration
55 file with a local file if needed. As a special case, an empty file (file size 0) or symlink with
56 the same name pointing to <filename>/dev/null</filename> disables the configuration file entirely
57 (it is "masked").</para>
bac150e9
ZJS
58
59 <para>Along with the netdev file <filename>foo.netdev</filename>, a "drop-in" directory
60 <filename>foo.netdev.d/</filename> may exist. All files with the suffix <literal>.conf</literal>
e6655fbe
YW
61 from this directory will be merged in the alphanumeric order and parsed after the main file itself
62 has been parsed. This is useful to alter or add configuration settings, without having to modify
63 the main configuration file. Each drop-in file must have appropriate section headers.</para>
bac150e9
ZJS
64
65 <para>In addition to <filename>/etc/systemd/network</filename>, drop-in <literal>.d</literal>
66 directories can be placed in <filename>/usr/lib/systemd/network</filename> or
67 <filename>/run/systemd/network</filename> directories. Drop-in files in
3b121157
ZJS
68 <filename>/etc/</filename> take precedence over those in <filename>/run/</filename> which in turn
69 take precedence over those in <filename>/usr/lib/</filename>. Drop-in files under any of these
bac150e9 70 directories take precedence over the main netdev file wherever located. (Of course, since
3b121157 71 <filename>/run/</filename> is temporary and <filename>/usr/lib/</filename> is for vendors, it is
bac150e9 72 unlikely drop-ins should be used in either of those places.)</para>
798d3a52
ZJS
73 </refsect1>
74
75 <refsect1>
76 <title>Supported netdev kinds</title>
77
78 <para>The following kinds of virtual network devices may be
79 configured in <filename>.netdev</filename> files:</para>
80
81 <table>
82 <title>Supported kinds of virtual network devices</title>
83
84 <tgroup cols='2'>
85 <colspec colname='kind' />
86 <colspec colname='explanation' />
87 <thead><row>
88 <entry>Kind</entry>
89 <entry>Description</entry>
90 </row></thead>
91 <tbody>
92 <row><entry><varname>bond</varname></entry>
0e685823 93 <entry>A bond device is an aggregation of all its slave devices. See <ulink url="https://docs.kernel.org/networking/bonding.html">Linux Ethernet Bonding Driver HOWTO</ulink> for details.</entry></row>
798d3a52
ZJS
94
95 <row><entry><varname>bridge</varname></entry>
a8eaaee7 96 <entry>A bridge device is a software switch, and each of its slave devices and the bridge itself are ports of the switch.</entry></row>
798d3a52
ZJS
97
98 <row><entry><varname>dummy</varname></entry>
99 <entry>A dummy device drops all packets sent to it.</entry></row>
100
101 <row><entry><varname>gre</varname></entry>
11cc2a56 102 <entry>A Level 3 GRE tunnel over IPv4. See <ulink url="https://tools.ietf.org/html/rfc2784">RFC 2784</ulink> for details. Name <literal>gre0</literal> should not be used, as the kernel creates a device with this name when the corresponding kernel module is loaded.</entry></row>
798d3a52
ZJS
103
104 <row><entry><varname>gretap</varname></entry>
11cc2a56 105 <entry>A Level 2 GRE tunnel over IPv4. Name <literal>gretap0</literal> should not be used, as the kernel creates a device with this name when the corresponding kernel module is loaded.</entry></row>
798d3a52 106
2266864b 107 <row><entry><varname>erspan</varname></entry>
11cc2a56 108 <entry>ERSPAN mirrors traffic on one or more source ports and delivers the mirrored traffic to one or more destination ports on another switch. The traffic is encapsulated in generic routing encapsulation (GRE) and is therefore routable across a layer 3 network between the source switch and the destination switch. Name <literal>erspan0</literal> should not be used, as the kernel creates a device with this name when the corresponding kernel module is loaded.</entry></row>
2266864b 109
798d3a52
ZJS
110 <row><entry><varname>ip6gre</varname></entry>
111 <entry>A Level 3 GRE tunnel over IPv6.</entry></row>
112
113 <row><entry><varname>ip6tnl</varname></entry>
114 <entry>An IPv4 or IPv6 tunnel over IPv6</entry></row>
115
116 <row><entry><varname>ip6gretap</varname></entry>
037a3ded 117 <entry>A Level 2 GRE tunnel over IPv6.</entry></row>
798d3a52
ZJS
118
119 <row><entry><varname>ipip</varname></entry>
120 <entry>An IPv4 over IPv4 tunnel.</entry></row>
121
122 <row><entry><varname>ipvlan</varname></entry>
e9dd6984 123 <entry>An IPVLAN device is a stacked device which receives packets from its underlying device based on IP address filtering.</entry></row>
798d3a52 124
69c317a0 125 <row><entry><varname>ipvtap</varname></entry>
e9dd6984 126 <entry>An IPVTAP device is a stacked device which receives packets from its underlying device based on IP address filtering and can be accessed using the tap user space interface.</entry></row>
69c317a0 127
798d3a52
ZJS
128 <row><entry><varname>macvlan</varname></entry>
129 <entry>A macvlan device is a stacked device which receives packets from its underlying device based on MAC address filtering.</entry></row>
130
0371f2df
SS
131 <row><entry><varname>macvtap</varname></entry>
132 <entry>A macvtap device is a stacked device which receives packets from its underlying device based on MAC address filtering.</entry></row>
133
798d3a52
ZJS
134 <row><entry><varname>sit</varname></entry>
135 <entry>An IPv6 over IPv4 tunnel.</entry></row>
136
137 <row><entry><varname>tap</varname></entry>
138 <entry>A persistent Level 2 tunnel between a network device and a device node.</entry></row>
139
140 <row><entry><varname>tun</varname></entry>
141 <entry>A persistent Level 3 tunnel between a network device and a device node.</entry></row>
142
143 <row><entry><varname>veth</varname></entry>
a8eaaee7 144 <entry>An Ethernet tunnel between a pair of network devices.</entry></row>
798d3a52
ZJS
145
146 <row><entry><varname>vlan</varname></entry>
147 <entry>A VLAN is a stacked device which receives packets from its underlying device based on VLAN tagging. See <ulink url="http://www.ieee802.org/1/pages/802.1Q.html">IEEE 802.1Q</ulink> for details.</entry></row>
148
149 <row><entry><varname>vti</varname></entry>
150 <entry>An IPv4 over IPSec tunnel.</entry></row>
151
5cc0748e
SS
152 <row><entry><varname>vti6</varname></entry>
153 <entry>An IPv6 over IPSec tunnel.</entry></row>
154
798d3a52
ZJS
155 <row><entry><varname>vxlan</varname></entry>
156 <entry>A virtual extensible LAN (vxlan), for connecting Cloud computing deployments.</entry></row>
20897a0d 157
6598e046
SS
158 <row><entry><varname>geneve</varname></entry>
159 <entry>A GEneric NEtwork Virtualization Encapsulation (GENEVE) netdev driver.</entry></row>
160
3a56e697
SS
161 <row><entry><varname>l2tp</varname></entry>
162 <entry>A Layer 2 Tunneling Protocol (L2TP) is a tunneling protocol used to support virtual private networks (VPNs) or as part of the delivery of services by ISPs. It does not provide any encryption or confidentiality by itself</entry></row>
163
81962db7
SS
164 <row><entry><varname>macsec</varname></entry>
165 <entry>Media Access Control Security (MACsec) is an 802.1AE IEEE industry-standard security technology that provides secure communication for all traffic on Ethernet links. MACsec provides point-to-point security on Ethernet links between directly connected nodes and is capable of identifying and preventing most security threats.</entry></row>
166
20897a0d 167 <row><entry><varname>vrf</varname></entry>
0e685823 168 <entry>A Virtual Routing and Forwarding (<ulink url="https://docs.kernel.org/networking/vrf.html">VRF</ulink>) interface to create separate routing and forwarding domains.</entry></row>
92c918b0
SS
169
170 <row><entry><varname>vcan</varname></entry>
ba9fa3bc 171 <entry>The virtual CAN driver (vcan). Similar to the network loopback devices, vcan offers a virtual local CAN interface.</entry></row>
20897a0d 172
d6df583c
SS
173 <row><entry><varname>vxcan</varname></entry>
174 <entry>The virtual CAN tunnel driver (vxcan). Similar to the virtual ethernet driver veth, vxcan implements a local CAN traffic tunnel between two virtual CAN network devices. When creating a vxcan, two vxcan devices are created as pair. When one end receives the packet it appears on its pair and vice versa. The vxcan can be used for cross namespace communication.
175 </entry></row>
176
e5719363
JT
177 <row><entry><varname>wireguard</varname></entry>
178 <entry>WireGuard Secure Network Tunnel.</entry></row>
179
d61e4c5b
YW
180 <row><entry><varname>nlmon</varname></entry>
181 <entry>A Netlink monitor device. Use an nlmon device when you want to monitor system Netlink messages.</entry></row>
53cb501a
SS
182
183 <row><entry><varname>fou</varname></entry>
184 <entry>Foo-over-UDP tunneling.</entry></row>
185
98d20a17 186 <row><entry><varname>xfrm</varname></entry>
187 <entry>A virtual tunnel interface like vti/vti6 but with several advantages.</entry></row>
188
3295a461 189 <row><entry><varname>ifb</varname></entry>
d5630d27 190 <entry>The Intermediate Functional Block (ifb) pseudo network interface acts as a QoS concentrator for multiple different sources of traffic.</entry></row>
3295a461 191
e6980c72 192 <row><entry><varname>bareudp</varname></entry>
5bc9ea07 193 <entry>Bare UDP tunnels provide a generic L3 encapsulation support for tunnelling different L3 protocols like MPLS, IP etc. inside of a UDP tunnel.</entry></row>
c0267a59
AW
194
195 <row><entry><varname>batadv</varname></entry>
d5630d27 196 <entry><ulink url="https://www.open-mesh.org/projects/open-mesh/wiki">B.A.T.M.A.N. Advanced</ulink> is a routing protocol for multi-hop mobile ad-hoc networks which operates on layer 2.</entry></row>
b90d0f83
YW
197
198 <row><entry><varname>ipoib</varname></entry>
199 <entry>An IP over Infiniband subinterface.</entry></row>
dedf2d00 200
ec4954d9
YW
201 <row><entry><varname>wlan</varname></entry>
202 <entry>A virtual wireless network (WLAN) interface.</entry></row>
798d3a52
ZJS
203 </tbody>
204 </tgroup>
205 </table>
206
207 </refsect1>
208
209 <refsect1>
210 <title>[Match] Section Options</title>
211
8c66ab20
YW
212 <para>A virtual network device is only created if the [Match] section matches the current
213 environment, or if the section is empty. The following keys are accepted:</para>
798d3a52
ZJS
214
215 <variablelist class='network-directives'>
8c66ab20
YW
216 <xi:include href="systemd.link.xml" xpointer="host" />
217 <xi:include href="systemd.link.xml" xpointer="virtualization" />
218 <xi:include href="systemd.link.xml" xpointer="kernel-command-line" />
219 <xi:include href="systemd.link.xml" xpointer="kernel-version" />
4f80cfca 220 <xi:include href="systemd.link.xml" xpointer="credential" />
8c66ab20
YW
221 <xi:include href="systemd.link.xml" xpointer="architecture" />
222 <xi:include href="systemd.link.xml" xpointer="firmware" />
798d3a52 223 </variablelist>
798d3a52
ZJS
224 </refsect1>
225
226 <refsect1>
227 <title>[NetDev] Section Options</title>
228
bdac5608 229 <para>The [NetDev] section accepts the
488d0ba1
YW
230 following keys:</para>
231
232 <variablelist class='network-directives'>
233 <varlistentry>
234 <term><varname>Description=</varname></term>
235 <listitem>
236 <para>A free-form description of the netdev.</para>
ec07c3c8
AK
237
238 <xi:include href="version-info.xml" xpointer="v215"/>
488d0ba1
YW
239 </listitem>
240 </varlistentry>
241 <varlistentry>
242 <term><varname>Name=</varname></term>
243 <listitem>
244 <para>The interface name used when creating the netdev.
e9dd6984 245 This setting is compulsory.</para>
aefdc112
AK
246
247 <xi:include href="version-info.xml" xpointer="v211"/>
488d0ba1
YW
248 </listitem>
249 </varlistentry>
250 <varlistentry>
251 <term><varname>Kind=</varname></term>
252 <listitem>
e9dd6984 253 <para>The netdev kind. This setting is compulsory. See the
488d0ba1
YW
254 <literal>Supported netdev kinds</literal> section for the
255 valid keys.</para>
aefdc112
AK
256
257 <xi:include href="version-info.xml" xpointer="v211"/>
488d0ba1
YW
258 </listitem>
259 </varlistentry>
260 <varlistentry>
261 <term><varname>MTUBytes=</varname></term>
262 <listitem>
e9dd6984 263 <para>The maximum transmission unit in bytes to set for the device. The usual suffixes K, M, G
488d0ba1
YW
264 are supported and are understood to the base of 1024. For <literal>tun</literal> or
265 <literal>tap</literal> devices, <varname>MTUBytes=</varname> setting is not currently supported in
bdac5608 266 [NetDev] section. Please specify it in [Link] section of
488d0ba1
YW
267 corresponding
268 <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>
269 files.</para>
ec07c3c8
AK
270
271 <xi:include href="version-info.xml" xpointer="v215"/>
488d0ba1
YW
272 </listitem>
273 </varlistentry>
274 <varlistentry>
275 <term><varname>MACAddress=</varname></term>
276 <listitem>
aaa5ca57
YW
277 <para>Specifies the MAC address to use for the device, or takes the special value
278 <literal>none</literal>. When <literal>none</literal>, <command>systemd-networkd</command>
279 does not request the MAC address for the device, and the kernel will assign a random MAC
280 address. For <literal>tun</literal>, <literal>tap</literal>, or <literal>l2tp</literal>
281 devices, the <varname>MACAddress=</varname> setting in the [NetDev] section is not
282 supported and will be ignored. Please specify it in the [Link] section of the corresponding
488d0ba1 283 <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>
5b8bdd20
YW
284 file. If this option is not set, <literal>vlan</literal> device inherits the MAC address of
285 the master interface. For other kind of netdevs, if this option is not set, then the MAC
286 address is generated based on the interface name and the
488d0ba1
YW
287 <citerefentry><refentrytitle>machine-id</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
288 </para>
aaa5ca57
YW
289 <para>Note, even if <literal>none</literal> is specified, <command>systemd-udevd</command>
290 will assign the persistent MAC address for the device, as <filename>99-default.link</filename>
291 has <varname>MACAddressPolicy=persistent</varname>. So, it is also necessary to create a
292 custom .link file for the device, if the MAC address assignment is not desired.</para>
ec07c3c8
AK
293
294 <xi:include href="version-info.xml" xpointer="v215"/>
488d0ba1
YW
295 </listitem>
296 </varlistentry>
297 </variablelist>
798d3a52
ZJS
298 </refsect1>
299
488d0ba1 300 <refsect1>
3428fe07
SS
301 <title>[Bridge] Section Options</title>
302
bdac5608 303 <para>The [Bridge] section only applies for
488d0ba1
YW
304 netdevs of kind <literal>bridge</literal>, and accepts the
305 following keys:</para>
306
307 <variablelist class='network-directives'>
308 <varlistentry>
309 <term><varname>HelloTimeSec=</varname></term>
310 <listitem>
311 <para>HelloTimeSec specifies the number of seconds between two hello packets
312 sent out by the root bridge and the designated bridges. Hello packets are
313 used to communicate information about the topology throughout the entire
314 bridged local area network.</para>
ec07c3c8
AK
315
316 <xi:include href="version-info.xml" xpointer="v227"/>
488d0ba1
YW
317 </listitem>
318 </varlistentry>
319 <varlistentry>
320 <term><varname>MaxAgeSec=</varname></term>
321 <listitem>
322 <para>MaxAgeSec specifies the number of seconds of maximum message age.
323 If the last seen (received) hello packet is more than this number of
324 seconds old, the bridge in question will start the takeover procedure
325 in attempt to become the Root Bridge itself.</para>
ec07c3c8
AK
326
327 <xi:include href="version-info.xml" xpointer="v227"/>
488d0ba1
YW
328 </listitem>
329 </varlistentry>
330 <varlistentry>
331 <term><varname>ForwardDelaySec=</varname></term>
332 <listitem>
333 <para>ForwardDelaySec specifies the number of seconds spent in each
334 of the Listening and Learning states before the Forwarding state is entered.</para>
ec07c3c8
AK
335
336 <xi:include href="version-info.xml" xpointer="v227"/>
488d0ba1
YW
337 </listitem>
338 </varlistentry>
339 <varlistentry>
340 <term><varname>AgeingTimeSec=</varname></term>
341 <listitem>
342 <para>This specifies the number of seconds a MAC Address will be kept in
343 the forwarding database after having a packet received from this MAC Address.</para>
ec07c3c8
AK
344
345 <xi:include href="version-info.xml" xpointer="v232"/>
488d0ba1
YW
346 </listitem>
347 </varlistentry>
348 <varlistentry>
349 <term><varname>Priority=</varname></term>
350 <listitem>
351 <para>The priority of the bridge. An integer between 0 and 65535. A lower value
352 means higher priority. The bridge having the lowest priority will be elected as root bridge.</para>
ec07c3c8
AK
353
354 <xi:include href="version-info.xml" xpointer="v232"/>
488d0ba1
YW
355 </listitem>
356 </varlistentry>
357 <varlistentry>
358 <term><varname>GroupForwardMask=</varname></term>
359 <listitem>
360 <para>A 16-bit bitmask represented as an integer which allows forwarding of link
361 local frames with 802.1D reserved addresses (01:80:C2:00:00:0X). A logical AND
362 is performed between the specified bitmask and the exponentiation of 2^X, the
363 lower nibble of the last octet of the MAC address. For example, a value of 8
364 would allow forwarding of frames addressed to 01:80:C2:00:00:03 (802.1X PAE).</para>
ec07c3c8
AK
365
366 <xi:include href="version-info.xml" xpointer="v235"/>
488d0ba1
YW
367 </listitem>
368 </varlistentry>
369 <varlistentry>
370 <term><varname>DefaultPVID=</varname></term>
371 <listitem>
372 <para>This specifies the default port VLAN ID of a newly attached bridge port.
be0d27ee 373 Set this to an integer in the range 1…4094 or <literal>none</literal> to disable the PVID.</para>
ec07c3c8
AK
374
375 <xi:include href="version-info.xml" xpointer="v232"/>
488d0ba1
YW
376 </listitem>
377 </varlistentry>
378 <varlistentry>
379 <term><varname>MulticastQuerier=</varname></term>
380 <listitem>
381 <para>Takes a boolean. This setting controls the IFLA_BR_MCAST_QUERIER option in the kernel.
382 If enabled, the kernel will send general ICMP queries from a zero source address.
383 This feature should allow faster convergence on startup, but it causes some
384 multicast-aware switches to misbehave and disrupt forwarding of multicast packets.
385 When unset, the kernel's default will be used.
386 </para>
ec07c3c8
AK
387
388 <xi:include href="version-info.xml" xpointer="v230"/>
488d0ba1
YW
389 </listitem>
390 </varlistentry>
391 <varlistentry>
392 <term><varname>MulticastSnooping=</varname></term>
393 <listitem>
394 <para>Takes a boolean. This setting controls the IFLA_BR_MCAST_SNOOPING option in the kernel.
395 If enabled, IGMP snooping monitors the Internet Group Management Protocol (IGMP) traffic
396 between hosts and multicast routers. When unset, the kernel's default will be used.
397 </para>
ec07c3c8
AK
398
399 <xi:include href="version-info.xml" xpointer="v230"/>
488d0ba1
YW
400 </listitem>
401 </varlistentry>
402 <varlistentry>
403 <term><varname>VLANFiltering=</varname></term>
404 <listitem>
405 <para>Takes a boolean. This setting controls the IFLA_BR_VLAN_FILTERING option in the kernel.
406 If enabled, the bridge will be started in VLAN-filtering mode. When unset, the kernel's default will be used.
407 </para>
ec07c3c8
AK
408
409 <xi:include href="version-info.xml" xpointer="v231"/>
488d0ba1
YW
410 </listitem>
411 </varlistentry>
4df4df5b
RF
412 <varlistentry>
413 <term><varname>VLANProtocol=</varname></term>
414 <listitem>
415 <para>Allows setting the protocol used for VLAN filtering. Takes
416 <option>802.1q</option> or,
417 <option>802.1ad</option>, and defaults to unset and kernel's default is used.
418 </para>
ec07c3c8
AK
419
420 <xi:include href="version-info.xml" xpointer="v246"/>
4df4df5b
RF
421 </listitem>
422 </varlistentry>
488d0ba1
YW
423 <varlistentry>
424 <term><varname>STP=</varname></term>
425 <listitem>
426 <para>Takes a boolean. This enables the bridge's Spanning Tree Protocol (STP).
427 When unset, the kernel's default will be used.
afa51e2d 428 </para>
ec07c3c8
AK
429
430 <xi:include href="version-info.xml" xpointer="v232"/>
afa51e2d
SS
431 </listitem>
432 </varlistentry>
433 <varlistentry>
e8489008 434 <term><varname>MulticastIGMPVersion=</varname></term>
afa51e2d 435 <listitem>
11fcfc53
FS
436 <para>Allows changing bridge's multicast Internet Group Management Protocol (IGMP) version.
437 Takes an integer 2 or 3. When unset, the kernel's default will be used.
488d0ba1 438 </para>
ec07c3c8
AK
439
440 <xi:include href="version-info.xml" xpointer="v243"/>
488d0ba1
YW
441 </listitem>
442 </varlistentry>
443 </variablelist>
3428fe07
SS
444 </refsect1>
445
798d3a52
ZJS
446 <refsect1>
447 <title>[VLAN] Section Options</title>
448
bdac5608 449 <para>The [VLAN] section only applies for
488d0ba1
YW
450 netdevs of kind <literal>vlan</literal>, and accepts the
451 following key:</para>
452
453 <variablelist class='network-directives'>
454 <varlistentry>
455 <term><varname>Id=</varname></term>
456 <listitem>
be0d27ee 457 <para>The VLAN ID to use. An integer in the range 0…4094.
e9dd6984 458 This setting is compulsory.</para>
aefdc112
AK
459
460 <xi:include href="version-info.xml" xpointer="v211"/>
488d0ba1
YW
461 </listitem>
462 </varlistentry>
2d453f35 463 <varlistentry>
464 <term><varname>Protocol=</varname></term>
465 <listitem>
466 <para>Allows setting the protocol used for the VLAN interface. Takes <literal>802.1q</literal> or,
467 <literal>802.1ad</literal>, and defaults to unset and kernel's default is used.</para>
ec07c3c8
AK
468
469 <xi:include href="version-info.xml" xpointer="v248"/>
2d453f35 470 </listitem>
471 </varlistentry>
488d0ba1
YW
472 <varlistentry>
473 <term><varname>GVRP=</varname></term>
474 <listitem>
475 <para>Takes a boolean. The Generic VLAN Registration Protocol (GVRP) is a protocol that
476 allows automatic learning of VLANs on a network.
477 When unset, the kernel's default will be used.
478 </para>
ec07c3c8
AK
479
480 <xi:include href="version-info.xml" xpointer="v234"/>
488d0ba1
YW
481 </listitem>
482 </varlistentry>
483 <varlistentry>
484 <term><varname>MVRP=</varname></term>
485 <listitem>
486 <para>Takes a boolean. Multiple VLAN Registration Protocol (MVRP) formerly known as GARP VLAN
487 Registration Protocol (GVRP) is a standards-based Layer 2 network protocol,
488 for automatic configuration of VLAN information on switches. It was defined
489 in the 802.1ak amendment to 802.1Q-2005. When unset, the kernel's default will be used.
490 </para>
ec07c3c8
AK
491
492 <xi:include href="version-info.xml" xpointer="v234"/>
488d0ba1
YW
493 </listitem>
494 </varlistentry>
495 <varlistentry>
496 <term><varname>LooseBinding=</varname></term>
497 <listitem>
498 <para>Takes a boolean. The VLAN loose binding mode, in which only the operational state is passed
499 from the parent to the associated VLANs, but the VLAN device state is not changed.
500 When unset, the kernel's default will be used.</para>
ec07c3c8
AK
501
502 <xi:include href="version-info.xml" xpointer="v234"/>
488d0ba1
YW
503 </listitem>
504 </varlistentry>
505 <varlistentry>
506 <term><varname>ReorderHeader=</varname></term>
507 <listitem>
e9dd6984
ZJS
508 <para>Takes a boolean. When enabled, the VLAN reorder header is used and VLAN interfaces behave
509 like physical interfaces. When unset, the kernel's default will be used.</para>
ec07c3c8
AK
510
511 <xi:include href="version-info.xml" xpointer="v234"/>
488d0ba1
YW
512 </listitem>
513 </varlistentry>
0d9b8913
SS
514 <varlistentry>
515 <term><varname>EgressQOSMaps=</varname></term>
ea070862
SS
516 <term><varname>IngressQOSMaps=</varname></term>
517 <listitem>
ee44b32f
YW
518 <para>Defines a mapping of Linux internal packet priority (<constant>SO_PRIORITY</constant>)
519 to VLAN header PCP field for outgoing and incoming frames, respectively. Takes a
520 whitespace-separated list of integer pairs, where each integer must be in the range
521 1…4294967294, in the format <literal>from</literal>-<literal>to</literal>, e.g.,
522 <literal>21-7 45-5</literal>. Note that <literal>from</literal> must be greater than or equal
523 to <literal>to</literal>. When unset, the kernel's default will be used.</para>
aefdc112
AK
524
525 <xi:include href="version-info.xml" xpointer="v248"/>
ea070862
SS
526 </listitem>
527 </varlistentry>
488d0ba1 528 </variablelist>
798d3a52
ZJS
529 </refsect1>
530
531 <refsect1>
532 <title>[MACVLAN] Section Options</title>
533
bdac5608 534 <para>The [MACVLAN] section only applies for
798d3a52
ZJS
535 netdevs of kind <literal>macvlan</literal>, and accepts the
536 following key:</para>
537
538 <variablelist class='network-directives'>
539 <varlistentry>
540 <term><varname>Mode=</varname></term>
541 <listitem>
542 <para>The MACVLAN mode to use. The supported options are
543 <literal>private</literal>,
544 <literal>vepa</literal>,
0d0de133
545 <literal>bridge</literal>,
546 <literal>passthru</literal>, and
547 <literal>source</literal>.
798d3a52 548 </para>
aefdc112
AK
549
550 <xi:include href="version-info.xml" xpointer="v211"/>
798d3a52
ZJS
551 </listitem>
552 </varlistentry>
0d0de133
553 <varlistentry>
554 <term><varname>SourceMACAddress=</varname></term>
555 <listitem>
556 <para>A whitespace-separated list of remote hardware addresses allowed on the MACVLAN. This
48c19082 557 option only has an effect in source mode. Use full colon-, hyphen- or dot-delimited
0d0de133
558 hexadecimal. This option may appear more than once, in which case the lists are merged. If
559 the empty string is assigned to this option, the list of hardware addresses defined prior
560 to this is reset. Defaults to unset.</para>
ec07c3c8
AK
561
562 <xi:include href="version-info.xml" xpointer="v246"/>
dca0a4e1
SS
563 </listitem>
564 </varlistentry>
565 <varlistentry>
566 <term><varname>BroadcastMulticastQueueLength=</varname></term>
567 <listitem>
568 <para>Specifies the length of the receive queue for broadcast/multicast packets. An unsigned
1d3a473b 569 integer in the range 0…4294967294. Defaults to unset.</para>
ec07c3c8
AK
570
571 <xi:include href="version-info.xml" xpointer="v248"/>
0d0de133
572 </listitem>
573 </varlistentry>
798d3a52 574 </variablelist>
798d3a52
ZJS
575 </refsect1>
576
488d0ba1 577 <refsect1>
0371f2df
SS
578 <title>[MACVTAP] Section Options</title>
579
885a4e6c
ZJS
580 <para>The [MACVTAP] section applies for netdevs of kind <literal>macvtap</literal> and accepts the same
581 keys as [MACVLAN].</para>
488d0ba1 582 </refsect1>
0371f2df 583
798d3a52
ZJS
584 <refsect1>
585 <title>[IPVLAN] Section Options</title>
586
bdac5608 587 <para>The [IPVLAN] section only applies for
798d3a52
ZJS
588 netdevs of kind <literal>ipvlan</literal>, and accepts the
589 following key:</para>
590
591 <variablelist class='network-directives'>
592 <varlistentry>
593 <term><varname>Mode=</varname></term>
488d0ba1
YW
594 <listitem>
595 <para>The IPVLAN mode to use. The supported options are
596 <literal>L2</literal>,<literal>L3</literal> and <literal>L3S</literal>.
597 </para>
ec07c3c8
AK
598
599 <xi:include href="version-info.xml" xpointer="v219"/>
488d0ba1 600 </listitem>
d384826f 601 </varlistentry>
488d0ba1 602 <varlistentry>
d384826f 603 <term><varname>Flags=</varname></term>
488d0ba1
YW
604 <listitem>
605 <para>The IPVLAN flags to use. The supported options are
606 <literal>bridge</literal>,<literal>private</literal> and <literal>vepa</literal>.
607 </para>
ec07c3c8
AK
608
609 <xi:include href="version-info.xml" xpointer="v237"/>
488d0ba1 610 </listitem>
798d3a52
ZJS
611 </varlistentry>
612 </variablelist>
798d3a52
ZJS
613 </refsect1>
614
69c317a0
SS
615 <refsect1>
616 <title>[IPVTAP] Section Options</title>
617
885a4e6c
ZJS
618 <para>The [IPVTAP] section only applies for netdevs of kind <literal>ipvtap</literal> and accepts the
619 same keys as [IPVLAN].</para>
69c317a0
SS
620 </refsect1>
621
798d3a52
ZJS
622 <refsect1>
623 <title>[VXLAN] Section Options</title>
488d0ba1 624
bdac5608 625 <para>The [VXLAN] section only applies for
798d3a52
ZJS
626 netdevs of kind <literal>vxlan</literal>, and accepts the
627 following keys:</para>
628
629 <variablelist class='network-directives'>
630 <varlistentry>
6f213e4a 631 <term><varname>VNI=</varname></term>
798d3a52 632 <listitem>
1d3a473b 633 <para>The VXLAN Network Identifier (or VXLAN Segment ID). Takes a number in the range 1…16777215.</para>
ec07c3c8
AK
634
635 <xi:include href="version-info.xml" xpointer="v243"/>
798d3a52
ZJS
636 </listitem>
637 </varlistentry>
638 <varlistentry>
d35e5d37 639 <term><varname>Remote=</varname></term>
798d3a52 640 <listitem>
bf443be9 641 <para>Configures destination IP address.</para>
ec07c3c8
AK
642
643 <xi:include href="version-info.xml" xpointer="v233"/>
798d3a52
ZJS
644 </listitem>
645 </varlistentry>
646 <varlistentry>
d35e5d37
SS
647 <term><varname>Local=</varname></term>
648 <listitem>
b886649c
YW
649 <para>Configures local IP address. It must be an address on the underlying interface of the
650 VXLAN interface, or one of the special values <literal>ipv4_link_local</literal>,
651 <literal>ipv6_link_local</literal>, <literal>dhcp4</literal>, <literal>dhcp6</literal>, and
652 <literal>slaac</literal>. If one of the special values is specified, an address which matches
653 the corresponding type on the underlying interface will be used. Defaults to unset.</para>
ec07c3c8
AK
654
655 <xi:include href="version-info.xml" xpointer="v233"/>
d35e5d37 656 </listitem>
83cb24ac
SS
657 </varlistentry>
658 <varlistentry>
659 <term><varname>Group=</varname></term>
660 <listitem>
e9dd6984
ZJS
661 <para>Configures VXLAN multicast group IP address. All members of a VXLAN must use the same
662 multicast group address.</para>
ec07c3c8
AK
663
664 <xi:include href="version-info.xml" xpointer="v243"/>
83cb24ac 665 </listitem>
d35e5d37 666 </varlistentry>
488d0ba1 667 <varlistentry>
798d3a52
ZJS
668 <term><varname>TOS=</varname></term>
669 <listitem>
670 <para>The Type Of Service byte value for a vxlan interface.</para>
ec07c3c8
AK
671
672 <xi:include href="version-info.xml" xpointer="v215"/>
798d3a52
ZJS
673 </listitem>
674 </varlistentry>
675 <varlistentry>
676 <term><varname>TTL=</varname></term>
677 <listitem>
f4a8ca32 678 <para>A fixed Time To Live N on Virtual eXtensible Local Area Network packets.
be0d27ee 679 Takes <literal>inherit</literal> or a number in the range 0…255. 0 is a special
f4a8ca32
SS
680 value meaning inherit the inner protocol's TTL value. <literal>inherit</literal>
681 means that it will inherit the outer protocol's TTL value.</para>
ec07c3c8
AK
682
683 <xi:include href="version-info.xml" xpointer="v215"/>
798d3a52
ZJS
684 </listitem>
685 </varlistentry>
686 <varlistentry>
687 <term><varname>MacLearning=</varname></term>
688 <listitem>
9b6ffef3 689 <para>Takes a boolean. When true, enables dynamic MAC learning
798d3a52 690 to discover remote MAC addresses.</para>
ec07c3c8
AK
691
692 <xi:include href="version-info.xml" xpointer="v215"/>
798d3a52
ZJS
693 </listitem>
694 </varlistentry>
695 <varlistentry>
696 <term><varname>FDBAgeingSec=</varname></term>
697 <listitem>
698 <para>The lifetime of Forwarding Database entry learnt by
b938cb90 699 the kernel, in seconds.</para>
ec07c3c8
AK
700
701 <xi:include href="version-info.xml" xpointer="v218"/>
798d3a52
ZJS
702 </listitem>
703 </varlistentry>
704 <varlistentry>
3d276dd2
SS
705 <term><varname>MaximumFDBEntries=</varname></term>
706 <listitem>
707 <para>Configures maximum number of FDB entries.</para>
ec07c3c8
AK
708
709 <xi:include href="version-info.xml" xpointer="v228"/>
3d276dd2
SS
710 </listitem>
711 </varlistentry>
798d3a52 712 <varlistentry>
7dd6974c 713 <term><varname>ReduceARPProxy=</varname></term>
798d3a52 714 <listitem>
c8cd6d7b
ZJS
715 <para>Takes a boolean. When true, bridge-connected VXLAN tunnel endpoint answers ARP requests from
716 the local bridge on behalf of remote
7dd6974c 717 <ulink url="https://en.wikipedia.org/wiki/Distributed_Overlay_Virtual_Ethernet">
c8cd6d7b
ZJS
718 Distributed Overlay Virtual Ethernet (DOVE)</ulink>
719 clients. Defaults to false.</para>
ec07c3c8
AK
720
721 <xi:include href="version-info.xml" xpointer="v233"/>
798d3a52
ZJS
722 </listitem>
723 </varlistentry>
724 <varlistentry>
725 <term><varname>L2MissNotification=</varname></term>
726 <listitem>
9b6ffef3 727 <para>Takes a boolean. When true, enables netlink LLADDR miss
798d3a52 728 notifications.</para>
ec07c3c8
AK
729
730 <xi:include href="version-info.xml" xpointer="v218"/>
798d3a52
ZJS
731 </listitem>
732 </varlistentry>
733 <varlistentry>
734 <term><varname>L3MissNotification=</varname></term>
735 <listitem>
e9dd6984 736 <para>Takes a boolean. When true, enables netlink IP address miss notifications.</para>
ec07c3c8
AK
737
738 <xi:include href="version-info.xml" xpointer="v218"/>
798d3a52
ZJS
739 </listitem>
740 </varlistentry>
741 <varlistentry>
742 <term><varname>RouteShortCircuit=</varname></term>
743 <listitem>
9b6ffef3 744 <para>Takes a boolean. When true, route short circuiting is turned
798d3a52 745 on.</para>
ec07c3c8
AK
746
747 <xi:include href="version-info.xml" xpointer="v218"/>
798d3a52
ZJS
748 </listitem>
749 </varlistentry>
cffacc74 750 <varlistentry>
53c06862 751 <term><varname>UDPChecksum=</varname></term>
cffacc74 752 <listitem>
9b6ffef3 753 <para>Takes a boolean. When true, transmitting UDP checksums when doing VXLAN/IPv4 is turned on.</para>
ec07c3c8 754
aefdc112 755 <xi:include href="version-info.xml" xpointer="v220"/>
cffacc74
SS
756 </listitem>
757 </varlistentry>
758 <varlistentry>
759 <term><varname>UDP6ZeroChecksumTx=</varname></term>
760 <listitem>
9b6ffef3 761 <para>Takes a boolean. When true, sending zero checksums in VXLAN/IPv6 is turned on.</para>
ec07c3c8
AK
762
763 <xi:include href="version-info.xml" xpointer="v220"/>
cffacc74
SS
764 </listitem>
765 </varlistentry>
766 <varlistentry>
53c06862 767 <term><varname>UDP6ZeroChecksumRx=</varname></term>
cffacc74 768 <listitem>
9b6ffef3 769 <para>Takes a boolean. When true, receiving zero checksums in VXLAN/IPv6 is turned on.</para>
ec07c3c8 770
aefdc112 771 <xi:include href="version-info.xml" xpointer="v220"/>
16441027
SS
772 </listitem>
773 </varlistentry>
774 <varlistentry>
53c06862 775 <term><varname>RemoteChecksumTx=</varname></term>
16441027 776 <listitem>
9b6ffef3 777 <para>Takes a boolean. When true, remote transmit checksum offload of VXLAN is turned on.</para>
ec07c3c8
AK
778
779 <xi:include href="version-info.xml" xpointer="v232"/>
16441027
SS
780 </listitem>
781 </varlistentry>
782 <varlistentry>
53c06862 783 <term><varname>RemoteChecksumRx=</varname></term>
16441027 784 <listitem>
9b6ffef3 785 <para>Takes a boolean. When true, remote receive checksum offload in VXLAN is turned on.</para>
ec07c3c8
AK
786
787 <xi:include href="version-info.xml" xpointer="v232"/>
cffacc74
SS
788 </listitem>
789 </varlistentry>
488d0ba1
YW
790 <varlistentry>
791 <term><varname>GroupPolicyExtension=</varname></term>
792 <listitem>
793 <para>Takes a boolean. When true, it enables Group Policy VXLAN extension security label mechanism
794 across network peers based on VXLAN. For details about the Group Policy VXLAN, see the
795 <ulink url="https://tools.ietf.org/html/draft-smith-vxlan-group-policy">
796 VXLAN Group Policy </ulink> document. Defaults to false.</para>
ec07c3c8
AK
797
798 <xi:include href="version-info.xml" xpointer="v224"/>
488d0ba1
YW
799 </listitem>
800 </varlistentry>
801 <varlistentry>
802 <term><varname>GenericProtocolExtension=</varname></term>
803 <listitem>
804 <para>Takes a boolean. When true, Generic Protocol Extension extends the existing VXLAN protocol
805 to provide protocol typing, OAM, and versioning capabilities. For details about the VXLAN GPE
806 Header, see the <ulink url="https://tools.ietf.org/html/draft-ietf-nvo3-vxlan-gpe-07">
807 Generic Protocol Extension for VXLAN </ulink> document. If destination port is not specified and
808 Generic Protocol Extension is set then default port of 4790 is used. Defaults to false.</para>
ec07c3c8
AK
809
810 <xi:include href="version-info.xml" xpointer="v243"/>
488d0ba1
YW
811 </listitem>
812 </varlistentry>
813 <varlistentry>
814 <term><varname>DestinationPort=</varname></term>
815 <listitem>
e6fd398d
ZJS
816 <para>Configures the default destination UDP port. If the destination port is not specified then
817 Linux kernel default will be used. Set to 4789 to get the IANA assigned value.</para>
ec07c3c8
AK
818
819 <xi:include href="version-info.xml" xpointer="v229"/>
488d0ba1
YW
820 </listitem>
821 </varlistentry>
822 <varlistentry>
823 <term><varname>PortRange=</varname></term>
ea0288d1 824 <listitem>
e6fd398d
ZJS
825 <para>Configures the source port range for the VXLAN. The kernel assigns the source UDP port based
826 on the flow to help the receiver to do load balancing. When this option is not set, the normal
827 range of local UDP ports is used.</para>
ec07c3c8
AK
828
829 <xi:include href="version-info.xml" xpointer="v229"/>
ea0288d1
SS
830 </listitem>
831 </varlistentry>
488d0ba1
YW
832 <varlistentry>
833 <term><varname>FlowLabel=</varname></term>
d8653945
SS
834 <listitem>
835 <para>Specifies the flow label to use in outgoing packets.
836 The valid range is 0-1048575.
837 </para>
ec07c3c8
AK
838
839 <xi:include href="version-info.xml" xpointer="v234"/>
d8653945 840 </listitem>
488d0ba1 841 </varlistentry>
1189c00a
SS
842 <varlistentry>
843 <term><varname>IPDoNotFragment=</varname></term>
844 <listitem>
11fcfc53 845 <para>Allows setting the IPv4 Do not Fragment (DF) bit in outgoing packets, or to inherit its
1189c00a
SS
846 value from the IPv4 inner header. Takes a boolean value, or <literal>inherit</literal>. Set
847 to <literal>inherit</literal> if the encapsulated protocol is IPv6. When unset, the kernel's
848 default will be used.</para>
ec07c3c8
AK
849
850 <xi:include href="version-info.xml" xpointer="v243"/>
1189c00a 851 </listitem>
d8653945 852 </varlistentry>
3e90ded7
MM
853 <varlistentry>
854 <term><varname>Independent=</varname></term>
855 <listitem>
856 <para>Takes a boolean. When true, the vxlan interface is created without any underlying network
857 interface. Defaults to false, which means that a .network file that requests this VXLAN interface
858 using <varname>VXLAN=</varname> is required for the VXLAN to be created.</para>
aefdc112
AK
859
860 <xi:include href="version-info.xml" xpointer="v247"/>
3e90ded7
MM
861 </listitem>
862 </varlistentry>
798d3a52
ZJS
863 </variablelist>
864 </refsect1>
488d0ba1 865
6598e046
SS
866 <refsect1>
867 <title>[GENEVE] Section Options</title>
488d0ba1 868
bdac5608 869 <para>The [GENEVE] section only applies for
6598e046
SS
870 netdevs of kind <literal>geneve</literal>, and accepts the
871 following keys:</para>
872
873 <variablelist class='network-directives'>
874 <varlistentry>
875 <term><varname>Id=</varname></term>
876 <listitem>
e375ceb6
ZJS
877 <para>Specifies the Virtual Network Identifier (VNI) to use, a number between 0 and 16777215. This
878 field is mandatory.</para>
aefdc112
AK
879
880 <xi:include href="version-info.xml" xpointer="v234"/>
6598e046
SS
881 </listitem>
882 </varlistentry>
883 <varlistentry>
884 <term><varname>Remote=</varname></term>
885 <listitem>
886 <para>Specifies the unicast destination IP address to use in outgoing packets.</para>
ec07c3c8
AK
887
888 <xi:include href="version-info.xml" xpointer="v234"/>
6598e046
SS
889 </listitem>
890 </varlistentry>
891 <varlistentry>
892 <term><varname>TOS=</varname></term>
893 <listitem>
e375ceb6 894 <para>Specifies the TOS value to use in outgoing packets. Takes a number between 1 and 255.</para>
ec07c3c8
AK
895
896 <xi:include href="version-info.xml" xpointer="v234"/>
6598e046
SS
897 </listitem>
898 </varlistentry>
899 <varlistentry>
900 <term><varname>TTL=</varname></term>
901 <listitem>
bdac5608 902 <para>Accepts the same values as in the [VXLAN] section, except that when unset
e9dd6984 903 or set to 0, the kernel's default will be used, meaning that packet TTL will be set from
328184d1 904 <filename>/proc/sys/net/ipv4/ip_default_ttl</filename>.</para>
ec07c3c8
AK
905
906 <xi:include href="version-info.xml" xpointer="v234"/>
6598e046
SS
907 </listitem>
908 </varlistentry>
909 <varlistentry>
910 <term><varname>UDPChecksum=</varname></term>
911 <listitem>
e9dd6984
ZJS
912 <para>Takes a boolean. When true, specifies that UDP checksum is calculated for transmitted packets
913 over IPv4.</para>
ec07c3c8
AK
914
915 <xi:include href="version-info.xml" xpointer="v234"/>
6598e046
SS
916 </listitem>
917 </varlistentry>
918 <varlistentry>
919 <term><varname>UDP6ZeroChecksumTx=</varname></term>
920 <listitem>
9b6ffef3 921 <para>Takes a boolean. When true, skip UDP checksum calculation for transmitted packets over IPv6.</para>
ec07c3c8
AK
922
923 <xi:include href="version-info.xml" xpointer="v234"/>
6598e046
SS
924 </listitem>
925 </varlistentry>
926 <varlistentry>
927 <term><varname>UDP6ZeroChecksumRx=</varname></term>
928 <listitem>
9b6ffef3 929 <para>Takes a boolean. When true, allows incoming UDP packets over IPv6 with zero checksum field.</para>
ec07c3c8
AK
930
931 <xi:include href="version-info.xml" xpointer="v234"/>
6598e046
SS
932 </listitem>
933 </varlistentry>
488d0ba1
YW
934 <varlistentry>
935 <term><varname>DestinationPort=</varname></term>
936 <listitem>
937 <para>Specifies destination port. Defaults to 6081. If not set or assigned the empty string, the default
938 port of 6081 is used.</para>
ec07c3c8
AK
939
940 <xi:include href="version-info.xml" xpointer="v234"/>
488d0ba1
YW
941 </listitem>
942 </varlistentry>
943 <varlistentry>
944 <term><varname>FlowLabel=</varname></term>
6598e046
SS
945 <listitem>
946 <para>Specifies the flow label to use in outgoing packets.</para>
ec07c3c8
AK
947
948 <xi:include href="version-info.xml" xpointer="v234"/>
6598e046 949 </listitem>
488d0ba1
YW
950 </varlistentry>
951 <varlistentry>
952 <term><varname>IPDoNotFragment=</varname></term>
aac35019 953 <listitem>
885a4e6c 954 <para>Accepts the same key as in [VXLAN] section.</para>
ec07c3c8
AK
955
956 <xi:include href="version-info.xml" xpointer="v243"/>
aac35019 957 </listitem>
488d0ba1 958 </varlistentry>
417283c5
JM
959 <varlistentry>
960 <term><varname>InheritInnerProtocol=</varname></term>
961 <listitem>
94d82b59 962 <para>Takes a boolean. When true, inner Layer 3 protocol is set as Protocol Type in the GENEVE
417283c5 963 header instead of Ethernet. Defaults to false.</para>
ec07c3c8
AK
964
965 <xi:include href="version-info.xml" xpointer="v254"/>
417283c5
JM
966 </listitem>
967 </varlistentry>
6598e046
SS
968 </variablelist>
969 </refsect1>
488d0ba1 970
e6980c72
SS
971 <refsect1>
972 <title>[BareUDP] Section Options</title>
973
974 <para>The [BareUDP] section only applies for
975 netdevs of kind <literal>bareudp</literal>, and accepts the
976 following keys:</para>
977
978 <variablelist class='network-directives'>
979 <varlistentry>
980 <term><varname>DestinationPort=</varname></term>
981 <listitem>
982 <para>Specifies the destination UDP port (in range 1…65535). This is mandatory.</para>
ec07c3c8
AK
983
984 <xi:include href="version-info.xml" xpointer="v247"/>
e6980c72
SS
985 </listitem>
986 </varlistentry>
987
988 <varlistentry>
989 <term><varname>EtherType=</varname></term>
990 <listitem>
991 <para>Specifies the L3 protocol. Takes one of <literal>ipv4</literal>, <literal>ipv6</literal>, <literal>mpls-uc</literal>
992 or <literal>mpls-mc</literal>. This is mandatory.</para>
ec07c3c8
AK
993
994 <xi:include href="version-info.xml" xpointer="v247"/>
e6980c72
SS
995 </listitem>
996 </varlistentry>
997 </variablelist>
998 </refsect1>
999
3a56e697
SS
1000 <refsect1>
1001 <title>[L2TP] Section Options</title>
488d0ba1 1002
bdac5608 1003 <para>The [L2TP] section only applies for
3a56e697
SS
1004 netdevs of kind <literal>l2tp</literal>, and accepts the
1005 following keys:</para>
1006
1007 <variablelist class='network-directives'>
1008 <varlistentry>
1009 <term><varname>TunnelId=</varname></term>
1010 <listitem>
be0d27ee 1011 <para>Specifies the tunnel identifier. Takes an number in the range 1…4294967295. The value used
e9dd6984
ZJS
1012 must match the <literal>PeerTunnelId=</literal> value being used at the peer. This setting is
1013 compulsory.</para>
ec07c3c8
AK
1014
1015 <xi:include href="version-info.xml" xpointer="v242"/>
3a56e697
SS
1016 </listitem>
1017 </varlistentry>
1018 <varlistentry>
1019 <term><varname>PeerTunnelId=</varname></term>
1020 <listitem>
1d3a473b 1021 <para>Specifies the peer tunnel id. Takes a number in the range 1…4294967295. The value used must
885a4e6c
ZJS
1022 match the <literal>TunnelId=</literal> value being used at the peer. This setting is compulsory.
1023 </para>
ec07c3c8
AK
1024
1025 <xi:include href="version-info.xml" xpointer="v242"/>
3a56e697
SS
1026 </listitem>
1027 </varlistentry>
1028 <varlistentry>
1029 <term><varname>Remote=</varname></term>
1030 <listitem>
e9dd6984 1031 <para>Specifies the IP address of the remote peer. This setting is compulsory.</para>
ec07c3c8
AK
1032
1033 <xi:include href="version-info.xml" xpointer="v242"/>
3a56e697
SS
1034 </listitem>
1035 </varlistentry>
1036 <varlistentry>
1037 <term><varname>Local=</varname></term>
1038 <listitem>
8b49ee2d
YW
1039 <para>Specifies the IP address of a local interface. Takes an IP address, or the special
1040 values <literal>auto</literal>, <literal>static</literal>, or <literal>dynamic</literal>.
1041 Optionally a name of a local interface can be specified after <literal>@</literal>, e.g.
1042 <literal>192.168.0.1@eth0</literal> or <literal>auto@eth0</literal>. When an address is
1043 specified, then a local or specified interface must have the address, and the remote address
1044 must be accessible through the local address. If <literal>auto</literal>, then one of the
1045 addresses on a local or specified interface which is accessible to the remote address will be
1046 used. Similarly, if <literal>static</literal> or <literal>dynamic</literal> is set, then one
1047 of the static or dynamic addresses will be used. Defaults to <literal>auto</literal>.</para>
ec07c3c8
AK
1048
1049 <xi:include href="version-info.xml" xpointer="v242"/>
3a56e697
SS
1050 </listitem>
1051 </varlistentry>
1052 <varlistentry>
1053 <term><varname>EncapsulationType=</varname></term>
1054 <listitem>
e9dd6984
ZJS
1055 <para>Specifies the encapsulation type of the tunnel. Takes one of <literal>udp</literal> or
1056 <literal>ip</literal>.</para>
ec07c3c8
AK
1057
1058 <xi:include href="version-info.xml" xpointer="v242"/>
3a56e697
SS
1059 </listitem>
1060 </varlistentry>
1061 <varlistentry>
1062 <term><varname>UDPSourcePort=</varname></term>
1063 <listitem>
e9dd6984
ZJS
1064 <para>Specifies the UDP source port to be used for the tunnel. When UDP encapsulation is selected
1065 it's mandatory. Ignored when IP encapsulation is selected.</para>
ec07c3c8
AK
1066
1067 <xi:include href="version-info.xml" xpointer="v242"/>
3a56e697
SS
1068 </listitem>
1069 </varlistentry>
1070 <varlistentry>
c14faa94 1071 <term><varname>UDPDestinationPort=</varname></term>
3a56e697 1072 <listitem>
e9dd6984 1073 <para>Specifies destination port. When UDP encapsulation is selected it's mandatory. Ignored when IP
3a56e697 1074 encapsulation is selected.</para>
ec07c3c8
AK
1075
1076 <xi:include href="version-info.xml" xpointer="v245"/>
3a56e697
SS
1077 </listitem>
1078 </varlistentry>
1079 <varlistentry>
1080 <term><varname>UDPChecksum=</varname></term>
1081 <listitem>
e9dd6984
ZJS
1082 <para>Takes a boolean. When true, specifies that UDP checksum is calculated for transmitted packets
1083 over IPv4.</para>
ec07c3c8
AK
1084
1085 <xi:include href="version-info.xml" xpointer="v242"/>
3a56e697
SS
1086 </listitem>
1087 </varlistentry>
1088 <varlistentry>
1089 <term><varname>UDP6ZeroChecksumTx=</varname></term>
1090 <listitem>
1091 <para>Takes a boolean. When true, skip UDP checksum calculation for transmitted packets over IPv6.</para>
ec07c3c8
AK
1092
1093 <xi:include href="version-info.xml" xpointer="v242"/>
3a56e697
SS
1094 </listitem>
1095 </varlistentry>
1096 <varlistentry>
1097 <term><varname>UDP6ZeroChecksumRx=</varname></term>
1098 <listitem>
1099 <para>Takes a boolean. When true, allows incoming UDP packets over IPv6 with zero checksum field.</para>
ec07c3c8
AK
1100
1101 <xi:include href="version-info.xml" xpointer="v242"/>
3a56e697
SS
1102 </listitem>
1103 </varlistentry>
1104 </variablelist>
1105 </refsect1>
488d0ba1 1106
3a56e697
SS
1107 <refsect1>
1108 <title>[L2TPSession] Section Options</title>
488d0ba1 1109
bdac5608 1110 <para>The [L2TPSession] section only applies for
3a56e697
SS
1111 netdevs of kind <literal>l2tp</literal>, and accepts the
1112 following keys:</para>
1113 <variablelist class='network-directives'>
1114 <varlistentry>
1115 <term><varname>Name=</varname></term>
1116 <listitem>
e9dd6984 1117 <para>Specifies the name of the session. This setting is compulsory.</para>
ec07c3c8
AK
1118
1119 <xi:include href="version-info.xml" xpointer="v242"/>
3a56e697
SS
1120 </listitem>
1121 </varlistentry>
1122 <varlistentry>
1123 <term><varname>SessionId=</varname></term>
1124 <listitem>
be0d27ee 1125 <para>Specifies the session identifier. Takes an number in the range 1…4294967295. The value used
e9dd6984
ZJS
1126 must match the <literal>SessionId=</literal> value being used at the peer. This setting is
1127 compulsory.</para>
ec07c3c8
AK
1128
1129 <xi:include href="version-info.xml" xpointer="v242"/>
3a56e697
SS
1130 </listitem>
1131 </varlistentry>
1132 <varlistentry>
1133 <term><varname>PeerSessionId=</varname></term>
1134 <listitem>
be0d27ee 1135 <para>Specifies the peer session identifier. Takes an number in the range 1…4294967295.
e9dd6984
ZJS
1136 The value used must match the <literal>PeerSessionId=</literal> value being used at the peer.
1137 This setting is compulsory.</para>
ec07c3c8
AK
1138
1139 <xi:include href="version-info.xml" xpointer="v242"/>
3a56e697
SS
1140 </listitem>
1141 </varlistentry>
1142 <varlistentry>
1143 <term><varname>Layer2SpecificHeader=</varname></term>
1144 <listitem>
1145 <para>Specifies layer2specific header type of the session. One of <literal>none</literal> or <literal>default</literal>. Defaults to <literal>default</literal>.</para>
ec07c3c8
AK
1146
1147 <xi:include href="version-info.xml" xpointer="v242"/>
3a56e697
SS
1148 </listitem>
1149 </varlistentry>
1150 </variablelist>
1151 </refsect1>
488d0ba1 1152
81962db7
SS
1153 <refsect1>
1154 <title>[MACsec] Section Options</title>
488d0ba1 1155
bdac5608 1156 <para>The [MACsec] section only applies for network devices of kind
81962db7
SS
1157 <literal>macsec</literal>, and accepts the following keys:</para>
1158
1159 <variablelist class='network-directives'>
1160 <varlistentry>
1161 <term><varname>Port=</varname></term>
1162 <listitem>
1163 <para>Specifies the port to be used for the MACsec transmit channel. The port is used to make
1164 secure channel identifier (SCI). Takes a value between 1 and 65535. Defaults to unset.
1165 </para>
ec07c3c8
AK
1166
1167 <xi:include href="version-info.xml" xpointer="v243"/>
81962db7
SS
1168 </listitem>
1169 </varlistentry>
1170 <varlistentry>
1171 <term><varname>Encrypt=</varname></term>
1172 <listitem>
1173 <para>Takes a boolean. When true, enable encryption. Defaults to unset.</para>
ec07c3c8
AK
1174
1175 <xi:include href="version-info.xml" xpointer="v243"/>
81962db7
SS
1176 </listitem>
1177 </varlistentry>
1178 </variablelist>
1179 </refsect1>
488d0ba1 1180
81962db7
SS
1181 <refsect1>
1182 <title>[MACsecReceiveChannel] Section Options</title>
bdac5608 1183 <para>The [MACsecReceiveChannel] section only applies for network devices of
81962db7
SS
1184 kind <literal>macsec</literal>, and accepts the following keys:</para>
1185
1186 <variablelist class='network-directives'>
1187 <varlistentry>
1188 <term><varname>Port=</varname></term>
1189 <listitem>
1190 <para>Specifies the port to be used for the MACsec receive channel. The port is used to make
1191 secure channel identifier (SCI). Takes a value between 1 and 65535. This option is
1192 compulsory, and is not set by default.</para>
ec07c3c8
AK
1193
1194 <xi:include href="version-info.xml" xpointer="v243"/>
81962db7
SS
1195 </listitem>
1196 </varlistentry>
1197 <varlistentry>
1198 <term><varname>MACAddress=</varname></term>
1199 <listitem>
1200 <para>Specifies the MAC address to be used for the MACsec receive channel. The MAC address
e9dd6984 1201 used to make secure channel identifier (SCI). This setting is compulsory, and is not set by
81962db7 1202 default.</para>
ec07c3c8
AK
1203
1204 <xi:include href="version-info.xml" xpointer="v243"/>
81962db7
SS
1205 </listitem>
1206 </varlistentry>
1207 </variablelist>
1208 </refsect1>
488d0ba1 1209
81962db7
SS
1210 <refsect1>
1211 <title>[MACsecTransmitAssociation] Section Options</title>
488d0ba1 1212
bdac5608 1213 <para>The [MACsecTransmitAssociation] section only applies for network devices
81962db7
SS
1214 of kind <literal>macsec</literal>, and accepts the following keys:</para>
1215
1216 <variablelist class='network-directives'>
1217 <varlistentry>
1218 <term><varname>PacketNumber=</varname></term>
1219 <listitem>
1220 <para>Specifies the packet number to be used for replay protection and the construction of
1221 the initialization vector (along with the secure channel identifier [SCI]). Takes a value
1222 between 1-4,294,967,295. Defaults to unset.
1223 </para>
ec07c3c8
AK
1224
1225 <xi:include href="version-info.xml" xpointer="v243"/>
81962db7
SS
1226 </listitem>
1227 </varlistentry>
1228 <varlistentry>
1229 <term><varname>KeyId=</varname></term>
1230 <listitem>
1231 <para>Specifies the identification for the key. Takes a number between 0-255. This option
1232 is compulsory, and is not set by default.</para>
ec07c3c8
AK
1233
1234 <xi:include href="version-info.xml" xpointer="v243"/>
81962db7
SS
1235 </listitem>
1236 </varlistentry>
1237 <varlistentry>
1238 <term><varname>Key=</varname></term>
1239 <listitem>
1240 <para>Specifies the encryption key used in the transmission channel. The same key must be
e9dd6984 1241 configured on the peer’s matching receive channel. This setting is compulsory, and is not set
81962db7
SS
1242 by default. Takes a 128-bit key encoded in a hexadecimal string, for example
1243 <literal>dffafc8d7b9a43d5b9a3dfbbf6a30c16</literal>.</para>
ec07c3c8
AK
1244
1245 <xi:include href="version-info.xml" xpointer="v243"/>
81962db7
SS
1246 </listitem>
1247 </varlistentry>
eb4705fb
YW
1248 <varlistentry>
1249 <term><varname>KeyFile=</varname></term>
1250 <listitem>
387f6955 1251 <para>Takes an absolute path to a file which contains a 128-bit key encoded in a hexadecimal string,
49f16281 1252 which will be used in the transmission channel. When this option is specified,
eb4705fb
YW
1253 <varname>Key=</varname> is ignored. Note that the file must be readable by the user
1254 <literal>systemd-network</literal>, so it should be, e.g., owned by
49f16281
LP
1255 <literal>root:systemd-network</literal> with a <literal>0640</literal> file mode. If the path
1256 refers to an <constant>AF_UNIX</constant> stream socket in the file system a connection is made to
1257 it and the key read from it.</para>
ec07c3c8
AK
1258
1259 <xi:include href="version-info.xml" xpointer="v243"/>
eb4705fb
YW
1260 </listitem>
1261 </varlistentry>
a7b9c52f
YW
1262 <varlistentry>
1263 <term><varname>Activate=</varname></term>
1264 <listitem>
1265 <para>Takes a boolean. If enabled, then the security association is activated. Defaults to
1266 unset.</para>
ec07c3c8
AK
1267
1268 <xi:include href="version-info.xml" xpointer="v243"/>
a7b9c52f
YW
1269 </listitem>
1270 </varlistentry>
b0e13c31
YW
1271 <varlistentry>
1272 <term><varname>UseForEncoding=</varname></term>
1273 <listitem>
1274 <para>Takes a boolean. If enabled, then the security association is used for encoding. Only
bdac5608 1275 one [MACsecTransmitAssociation] section can enable this option. When enabled,
b0e13c31 1276 <varname>Activate=yes</varname> is implied. Defaults to unset.</para>
ec07c3c8
AK
1277
1278 <xi:include href="version-info.xml" xpointer="v243"/>
b0e13c31
YW
1279 </listitem>
1280 </varlistentry>
81962db7
SS
1281 </variablelist>
1282 </refsect1>
488d0ba1 1283
81962db7
SS
1284 <refsect1>
1285 <title>[MACsecReceiveAssociation] Section Options</title>
488d0ba1 1286
bdac5608 1287 <para>The [MACsecReceiveAssociation] section only applies for
81962db7
SS
1288 network devices of kind <literal>macsec</literal>, and accepts the
1289 following keys:</para>
1290
1291 <variablelist class='network-directives'>
1292 <varlistentry>
1293 <term><varname>Port=</varname></term>
1294 <listitem>
885a4e6c 1295 <para>Accepts the same key as in [MACsecReceiveChannel] section.</para>
ec07c3c8
AK
1296
1297 <xi:include href="version-info.xml" xpointer="v243"/>
81962db7
SS
1298 </listitem>
1299 </varlistentry>
1300 <varlistentry>
1301 <term><varname>MACAddress=</varname></term>
1302 <listitem>
885a4e6c 1303 <para>Accepts the same key as in [MACsecReceiveChannel] section.</para>
ec07c3c8
AK
1304
1305 <xi:include href="version-info.xml" xpointer="v243"/>
81962db7
SS
1306 </listitem>
1307 </varlistentry>
1308 <varlistentry>
1309 <term><varname>PacketNumber=</varname></term>
1310 <listitem>
885a4e6c 1311 <para>Accepts the same key as in [MACsecTransmitAssociation] section.</para>
ec07c3c8
AK
1312
1313 <xi:include href="version-info.xml" xpointer="v243"/>
81962db7
SS
1314 </listitem>
1315 </varlistentry>
1316 <varlistentry>
1317 <term><varname>KeyId=</varname></term>
1318 <listitem>
885a4e6c 1319 <para>Accepts the same key as in [MACsecTransmitAssociation] section.</para>
ec07c3c8
AK
1320
1321 <xi:include href="version-info.xml" xpointer="v243"/>
81962db7
SS
1322 </listitem>
1323 </varlistentry>
1324 <varlistentry>
1325 <term><varname>Key=</varname></term>
1326 <listitem>
885a4e6c 1327 <para>Accepts the same key as in [MACsecTransmitAssociation] section.</para>
ec07c3c8
AK
1328
1329 <xi:include href="version-info.xml" xpointer="v243"/>
81962db7
SS
1330 </listitem>
1331 </varlistentry>
eb4705fb
YW
1332 <varlistentry>
1333 <term><varname>KeyFile=</varname></term>
1334 <listitem>
885a4e6c 1335 <para>Accepts the same key as in [MACsecTransmitAssociation] section.</para>
ec07c3c8
AK
1336
1337 <xi:include href="version-info.xml" xpointer="v243"/>
eb4705fb
YW
1338 </listitem>
1339 </varlistentry>
a7b9c52f
YW
1340 <varlistentry>
1341 <term><varname>Activate=</varname></term>
1342 <listitem>
885a4e6c 1343 <para>Accepts the same key as in [MACsecTransmitAssociation] section.</para>
ec07c3c8
AK
1344
1345 <xi:include href="version-info.xml" xpointer="v243"/>
a7b9c52f
YW
1346 </listitem>
1347 </varlistentry>
81962db7
SS
1348 </variablelist>
1349 </refsect1>
488d0ba1 1350
798d3a52
ZJS
1351 <refsect1>
1352 <title>[Tunnel] Section Options</title>
1353
bdac5608 1354 <para>The [Tunnel] section only applies for
798d3a52
ZJS
1355 netdevs of kind
1356 <literal>ipip</literal>,
1357 <literal>sit</literal>,
1358 <literal>gre</literal>,
1359 <literal>gretap</literal>,
1360 <literal>ip6gre</literal>,
1361 <literal>ip6gretap</literal>,
5cc0748e 1362 <literal>vti</literal>,
af555aa3
YW
1363 <literal>vti6</literal>,
1364 <literal>ip6tnl</literal>, and
1365 <literal>erspan</literal> and accepts
798d3a52
ZJS
1366 the following keys:</para>
1367
1368 <variablelist class='network-directives'>
1ae308ab
YW
1369 <varlistentry>
1370 <term><varname>External=</varname></term>
1371 <listitem>
1372 <para>Takes a boolean value. When true, then the tunnel is externally controlled, which is
1373 also known as collect metadata mode, and most settings below like <varname>Local=</varname>
1374 or <varname>Remote=</varname> are ignored. This implies <varname>Independent=</varname>.
1375 Defaults to false.</para>
ec07c3c8
AK
1376
1377 <xi:include href="version-info.xml" xpointer="v251"/>
1ae308ab
YW
1378 </listitem>
1379 </varlistentry>
798d3a52
ZJS
1380 <varlistentry>
1381 <term><varname>Local=</varname></term>
1382 <listitem>
2be25d75
YW
1383 <para>A static local address for tunneled packets. It must be an address on another interface
1384 of this host, or one of the special values <literal>any</literal>,
1385 <literal>ipv4_link_local</literal>, <literal>ipv6_link_local</literal>,
1386 <literal>dhcp4</literal>, <literal>dhcp6</literal>, and <literal>slaac</literal>. If one
1387 of the special values except for <literal>any</literal> is specified, an address which
1388 matches the corresponding type on the underlying interface will be used. Defaults to
1389 <literal>any</literal>.</para>
ec07c3c8
AK
1390
1391 <xi:include href="version-info.xml" xpointer="v215"/>
798d3a52
ZJS
1392 </listitem>
1393 </varlistentry>
1394 <varlistentry>
1395 <term><varname>Remote=</varname></term>
1396 <listitem>
8643885f
YW
1397 <para>The remote endpoint of the tunnel. Takes an IP address or the special value
1398 <literal>any</literal>.</para>
ec07c3c8
AK
1399
1400 <xi:include href="version-info.xml" xpointer="v215"/>
798d3a52
ZJS
1401 </listitem>
1402 </varlistentry>
1403 <varlistentry>
1404 <term><varname>TOS=</varname></term>
1405 <listitem>
1406 <para>The Type Of Service byte value for a tunnel interface.
b938cb90 1407 For details about the TOS, see the
798d3a52
ZJS
1408 <ulink url="http://tools.ietf.org/html/rfc1349"> Type of
1409 Service in the Internet Protocol Suite </ulink> document.
1410 </para>
ec07c3c8
AK
1411
1412 <xi:include href="version-info.xml" xpointer="v215"/>
798d3a52
ZJS
1413 </listitem>
1414 </varlistentry>
1415 <varlistentry>
1416 <term><varname>TTL=</varname></term>
1417 <listitem>
1418 <para>A fixed Time To Live N on tunneled packets. N is a
be0d27ee 1419 number in the range 1…255. 0 is a special value meaning that
798d3a52 1420 packets inherit the TTL value. The default value for IPv4
e9dd6984 1421 tunnels is 0 (inherit). The default value for IPv6 tunnels is
798d3a52 1422 64.</para>
ec07c3c8
AK
1423
1424 <xi:include href="version-info.xml" xpointer="v215"/>
798d3a52
ZJS
1425 </listitem>
1426 </varlistentry>
1427 <varlistentry>
1428 <term><varname>DiscoverPathMTU=</varname></term>
1429 <listitem>
9b6ffef3 1430 <para>Takes a boolean. When true, enables Path MTU Discovery on
b67e8a4e
YZ
1431 the tunnel.
1432 When <varname>IgnoreDontFragment=</varname> is enabled,
1433 defaults to false. Otherwise, defaults to true.</para>
ec07c3c8
AK
1434
1435 <xi:include href="version-info.xml" xpointer="v215"/>
b67e8a4e
YZ
1436 </listitem>
1437 </varlistentry>
1438 <varlistentry>
1439 <term><varname>IgnoreDontFragment=</varname></term>
1440 <listitem>
1441 <para>Takes a boolean. When true, enables IPv4 Don't Fragment (DF) suppression on
1442 the tunnel. Defaults to false.
1443 Note that if <varname>IgnoreDontFragment=</varname> is set to true,
1444 <varname>DiscoverPathMTU=</varname> cannot be set to true.
1445 Only applicable to GRE, GRETAP, and ERSPAN tunnels.</para>
ec07c3c8
AK
1446
1447 <xi:include href="version-info.xml" xpointer="v254"/>
798d3a52
ZJS
1448 </listitem>
1449 </varlistentry>
276de526
SS
1450 <varlistentry>
1451 <term><varname>IPv6FlowLabel=</varname></term>
1452 <listitem>
a8eaaee7 1453 <para>Configures the 20-bit flow label (see <ulink url="https://tools.ietf.org/html/rfc6437">
276de526 1454 RFC 6437</ulink>) field in the IPv6 header (see <ulink url="https://tools.ietf.org/html/rfc2460">
a8eaaee7
JE
1455 RFC 2460</ulink>), which is used by a node to label packets of a flow.
1456 It is only used for IPv6 tunnels.
1457 A flow label of zero is used to indicate packets that have
1458 not been labeled.
be0d27ee 1459 It can be configured to a value in the range 0…0xFFFFF, or be
a8eaaee7 1460 set to <literal>inherit</literal>, in which case the original flowlabel is used.</para>
ec07c3c8
AK
1461
1462 <xi:include href="version-info.xml" xpointer="v223"/>
276de526
SS
1463 </listitem>
1464 </varlistentry>
9b0ca30a 1465 <varlistentry>
a9b70f9d 1466 <term><varname>CopyDSCP=</varname></term>
9b0ca30a 1467 <listitem>
9b6ffef3 1468 <para>Takes a boolean. When true, the Differentiated Service Code
3cf4bcab 1469 Point (DSCP) field will be copied to the inner header from
a9b70f9d 1470 outer header during the decapsulation of an IPv6 tunnel
3cf4bcab
ZJS
1471 packet. DSCP is a field in an IP packet that enables different
1472 levels of service to be assigned to network traffic.
1473 Defaults to <literal>no</literal>.
9b0ca30a 1474 </para>
ec07c3c8
AK
1475
1476 <xi:include href="version-info.xml" xpointer="v223"/>
9b0ca30a
SS
1477 </listitem>
1478 </varlistentry>
dae398a8
SS
1479 <varlistentry>
1480 <term><varname>EncapsulationLimit=</varname></term>
1481 <listitem>
1482 <para>The Tunnel Encapsulation Limit option specifies how many additional
1483 levels of encapsulation are permitted to be prepended to the packet.
1484 For example, a Tunnel Encapsulation Limit option containing a limit
1485 value of zero means that a packet carrying that option may not enter
1486 another tunnel before exiting the current tunnel.
1487 (see <ulink url="https://tools.ietf.org/html/rfc2473#section-4.1.1"> RFC 2473</ulink>).
9b65490f 1488 The valid range is 0…255 and <literal>none</literal>. Defaults to 4.
dae398a8 1489 </para>
ec07c3c8
AK
1490
1491 <xi:include href="version-info.xml" xpointer="v226"/>
dae398a8
SS
1492 </listitem>
1493 </varlistentry>
1d710029
SS
1494 <varlistentry>
1495 <term><varname>Key=</varname></term>
1496 <listitem>
1497 <para>The <varname>Key=</varname> parameter specifies the same key to use in
1498 both directions (<varname>InputKey=</varname> and <varname>OutputKey=</varname>).
1499 The <varname>Key=</varname> is either a number or an IPv4 address-like dotted quad.
1500 It is used as mark-configured SAD/SPD entry as part of the lookup key (both in data
e9dd6984 1501 and control path) in IP XFRM (framework used to implement IPsec protocol).
e2285c57 1502 See <ulink url="https://man7.org/linux/man-pages/man8/ip-xfrm.8.html">
c65c01c4
YW
1503 ip-xfrm — transform configuration</ulink> for details. It is only used for VTI/VTI6,
1504 GRE, GRETAP, and ERSPAN tunnels.</para>
ec07c3c8
AK
1505
1506 <xi:include href="version-info.xml" xpointer="v231"/>
1d710029
SS
1507 </listitem>
1508 </varlistentry>
1509 <varlistentry>
1510 <term><varname>InputKey=</varname></term>
1511 <listitem>
1512 <para>The <varname>InputKey=</varname> parameter specifies the key to use for input.
c65c01c4
YW
1513 The format is same as <varname>Key=</varname>. It is only used for VTI/VTI6, GRE, GRETAP,
1514 and ERSPAN tunnels.</para>
ec07c3c8
AK
1515
1516 <xi:include href="version-info.xml" xpointer="v231"/>
1d710029
SS
1517 </listitem>
1518 </varlistentry>
1519 <varlistentry>
1520 <term><varname>OutputKey=</varname></term>
1521 <listitem>
1522 <para>The <varname>OutputKey=</varname> parameter specifies the key to use for output.
c65c01c4
YW
1523 The format is same as <varname>Key=</varname>. It is only used for VTI/VTI6, GRE, GRETAP,
1524 and ERSPAN tunnels.</para>
ec07c3c8
AK
1525
1526 <xi:include href="version-info.xml" xpointer="v231"/>
1d710029
SS
1527 </listitem>
1528 </varlistentry>
798d3a52
ZJS
1529 <varlistentry>
1530 <term><varname>Mode=</varname></term>
1531 <listitem>
a8eaaee7 1532 <para>An <literal>ip6tnl</literal> tunnel can be in one of three
798d3a52
ZJS
1533 modes
1534 <literal>ip6ip6</literal> for IPv6 over IPv6,
1535 <literal>ipip6</literal> for IPv4 over IPv6 or
1536 <literal>any</literal> for either.
1537 </para>
ec07c3c8
AK
1538
1539 <xi:include href="version-info.xml" xpointer="v219"/>
798d3a52
ZJS
1540 </listitem>
1541 </varlistentry>
4d7fa6de
SS
1542 <varlistentry>
1543 <term><varname>Independent=</varname></term>
1544 <listitem>
905a03e7
ZJS
1545 <para>Takes a boolean. When false (the default), the tunnel is always created over some network
1546 device, and a .network file that requests this tunnel using <varname>Tunnel=</varname> is required
1547 for the tunnel to be created. When true, the tunnel is created independently of any network as
1548 "tunnel@NONE".</para>
ec07c3c8
AK
1549
1550 <xi:include href="version-info.xml" xpointer="v235"/>
4d7fa6de
SS
1551 </listitem>
1552 </varlistentry>
8c9c703c
YW
1553 <varlistentry>
1554 <term><varname>AssignToLoopback=</varname></term>
1555 <listitem>
1556 <para>Takes a boolean. If set to <literal>yes</literal>, the loopback interface <literal>lo</literal>
1557 is used as the underlying device of the tunnel interface. Defaults to <literal>no</literal>.</para>
ec07c3c8
AK
1558
1559 <xi:include href="version-info.xml" xpointer="v243"/>
8c9c703c
YW
1560 </listitem>
1561 </varlistentry>
3a4f3e42
SS
1562 <varlistentry>
1563 <term><varname>AllowLocalRemote=</varname></term>
1564 <listitem>
9b6ffef3 1565 <para>Takes a boolean. When true allows tunnel traffic on <varname>ip6tnl</varname> devices where the remote endpoint is a local host address.
025314d9 1566 When unset, the kernel's default will be used.
3a4f3e42 1567 </para>
ec07c3c8
AK
1568
1569 <xi:include href="version-info.xml" xpointer="v237"/>
3a4f3e42
SS
1570 </listitem>
1571 </varlistentry>
53cb501a
SS
1572 <varlistentry>
1573 <term><varname>FooOverUDP=</varname></term>
1574 <listitem>
9b6ffef3 1575 <para>Takes a boolean. Specifies whether <varname>FooOverUDP=</varname> tunnel is to be configured.
0b145817
YW
1576 Defaults to false. This takes effects only for IPIP, SIT, GRE, and GRETAP tunnels.
1577 For more detail information see
53cb501a 1578 <ulink url="https://lwn.net/Articles/614348">Foo over UDP</ulink></para>
ec07c3c8
AK
1579
1580 <xi:include href="version-info.xml" xpointer="v240"/>
53cb501a
SS
1581 </listitem>
1582 </varlistentry>
1583 <varlistentry>
1584 <term><varname>FOUDestinationPort=</varname></term>
1585 <listitem>
6f520e74 1586 <para>This setting specifies the UDP destination port for encapsulation.
0b145817 1587 This field is mandatory when <varname>FooOverUDP=yes</varname>, and is not set by default.</para>
ec07c3c8
AK
1588
1589 <xi:include href="version-info.xml" xpointer="v240"/>
53cb501a
SS
1590 </listitem>
1591 </varlistentry>
1592 <varlistentry>
1593 <term><varname>FOUSourcePort=</varname></term>
1594 <listitem>
6f520e74
ZJS
1595 <para>This setting specifies the UDP source port for encapsulation. Defaults to <constant>0</constant>
1596 — that is, the source port for packets is left to the network stack to decide.</para>
ec07c3c8
AK
1597
1598 <xi:include href="version-info.xml" xpointer="v240"/>
53cb501a
SS
1599 </listitem>
1600 </varlistentry>
1601 <varlistentry>
1602 <term><varname>Encapsulation=</varname></term>
1603 <listitem>
bdac5608 1604 <para>Accepts the same key as in the [FooOverUDP] section.</para>
ec07c3c8
AK
1605
1606 <xi:include href="version-info.xml" xpointer="v240"/>
53cb501a
SS
1607 </listitem>
1608 </varlistentry>
d067cab3
DA
1609 <varlistentry>
1610 <term><varname>IPv6RapidDeploymentPrefix=</varname></term>
1611 <listitem>
1612 <para>Reconfigure the tunnel for <ulink url="https://tools.ietf.org/html/rfc5569">IPv6 Rapid
1613 Deployment</ulink>, also known as 6rd. The value is an ISP-specific IPv6 prefix with a non-zero length. Only
1614 applicable to SIT tunnels.</para>
ec07c3c8
AK
1615
1616 <xi:include href="version-info.xml" xpointer="v240"/>
d067cab3
DA
1617 </listitem>
1618 </varlistentry>
918049ad
SS
1619 <varlistentry>
1620 <term><varname>ISATAP=</varname></term>
1621 <listitem>
1622 <para>Takes a boolean. If set, configures the tunnel as Intra-Site Automatic Tunnel Addressing Protocol (ISATAP) tunnel.
1623 Only applicable to SIT tunnels. When unset, the kernel's default will be used.</para>
ec07c3c8
AK
1624
1625 <xi:include href="version-info.xml" xpointer="v240"/>
918049ad
SS
1626 </listitem>
1627 </varlistentry>
2266864b
SS
1628 <varlistentry>
1629 <term><varname>SerializeTunneledPackets=</varname></term>
1630 <listitem>
c65c01c4
YW
1631 <para>Takes a boolean. If set to yes, then packets are serialized. Only applies for GRE,
1632 GRETAP, and ERSPAN tunnels. When unset, the kernel's default will be used.
2266864b 1633 </para>
ec07c3c8
AK
1634
1635 <xi:include href="version-info.xml" xpointer="v240"/>
2266864b
SS
1636 </listitem>
1637 </varlistentry>
98406eda
YW
1638 <varlistentry>
1639 <term><varname>ERSPANVersion=</varname></term>
1640 <listitem>
1641 <para>Specifies the ERSPAN version number. Takes 0 for version 0 (a.k.a. type I), 1 for version 1
1642 (a.k.a. type II), or 2 for version 2 (a.k.a. type III). Defaults to 1.</para>
ec07c3c8
AK
1643
1644 <xi:include href="version-info.xml" xpointer="v252"/>
98406eda
YW
1645 </listitem>
1646 </varlistentry>
2266864b
SS
1647 <varlistentry>
1648 <term><varname>ERSPANIndex=</varname></term>
1649 <listitem>
98406eda
YW
1650 <para>Specifies the ERSPAN v1 index field for the interface. Takes an integer in the range
1651 0…1048575, which is associated with the ERSPAN traffic's source port and direction. Only used when
1652 <varname>ERSPANVersion=1</varname>. Defaults to 0.</para>
ec07c3c8
AK
1653
1654 <xi:include href="version-info.xml" xpointer="v240"/>
98406eda
YW
1655 </listitem>
1656 </varlistentry>
1657 <varlistentry>
1658 <term><varname>ERSPANDirection=</varname></term>
1659 <listitem>
1660 <para>Specifies the ERSPAN v2 mirrored traffic's direction. Takes <literal>ingress</literal> or
1661 <literal>egress</literal>. Only used when <varname>ERSPANVersion=2</varname>. Defaults to
1662 <literal>ingress</literal>.</para>
ec07c3c8
AK
1663
1664 <xi:include href="version-info.xml" xpointer="v252"/>
98406eda
YW
1665 </listitem>
1666 </varlistentry>
1667 <varlistentry>
1668 <term><varname>ERSPANHardwareId=</varname></term>
1669 <listitem>
1670 <para>Specifies an unique identifier of the ERSPAN v2 engine. Takes an integer in the range 0…63.
1671 Only used when <varname>ERSPANVersion=2</varname>. Defaults to 0.</para>
ec07c3c8
AK
1672
1673 <xi:include href="version-info.xml" xpointer="v252"/>
2266864b
SS
1674 </listitem>
1675 </varlistentry>
798d3a52
ZJS
1676 </variablelist>
1677 </refsect1>
53cb501a
SS
1678
1679 <refsect1>
1680 <title>[FooOverUDP] Section Options</title>
1681
bdac5608 1682 <para>The [FooOverUDP] section only applies for
53cb501a
SS
1683 netdevs of kind <literal>fou</literal> and accepts the
1684 following keys:</para>
1685
1686 <variablelist class='network-directives'>
53cb501a
SS
1687 <varlistentry>
1688 <term><varname>Encapsulation=</varname></term>
1689 <listitem>
e9dd6984
ZJS
1690 <para>Specifies the encapsulation mechanism used to store networking packets of various protocols
1691 inside the UDP packets. Supports the following values:
53cb501a 1692
885a4e6c 1693 <literal>FooOverUDP</literal> provides the simplest no-frills model of UDP encapsulation, it simply
e9dd6984
ZJS
1694 encapsulates packets directly in the UDP payload. <literal>GenericUDPEncapsulation</literal> is a
1695 generic and extensible encapsulation, it allows encapsulation of packets for any IP protocol and
1696 optional data as part of the encapsulation. For more detailed information see <ulink
1697 url="https://lwn.net/Articles/615044">Generic UDP Encapsulation</ulink>. Defaults to
1698 <literal>FooOverUDP</literal>.
53cb501a 1699 </para>
ec07c3c8
AK
1700
1701 <xi:include href="version-info.xml" xpointer="v240"/>
53cb501a
SS
1702 </listitem>
1703 </varlistentry>
1704 <varlistentry>
1705 <term><varname>Port=</varname></term>
1706 <listitem>
885a4e6c
ZJS
1707 <para>Specifies the port number where the encapsulated packets will arrive. Those packets will be
1708 removed and manually fed back into the network stack with the encapsulation removed to be sent to
1709 the real destination. This option is mandatory.</para>
ec07c3c8
AK
1710
1711 <xi:include href="version-info.xml" xpointer="v240"/>
53cb501a 1712 </listitem>
488d0ba1 1713 </varlistentry>
8f02c9b0
SS
1714 <varlistentry>
1715 <term><varname>PeerPort=</varname></term>
1716 <listitem>
e9dd6984
ZJS
1717 <para>Specifies the peer port number. Defaults to unset. Note that when peer port is set
1718 <literal>Peer=</literal> address is mandatory.</para>
ec07c3c8
AK
1719
1720 <xi:include href="version-info.xml" xpointer="v243"/>
8f02c9b0 1721 </listitem>
488d0ba1 1722 </varlistentry>
0b145817
YW
1723 <varlistentry>
1724 <term><varname>Protocol=</varname></term>
1725 <listitem>
1726 <para>The <varname>Protocol=</varname> specifies the protocol number of the packets arriving
1727 at the UDP port. When <varname>Encapsulation=FooOverUDP</varname>, this field is mandatory
1728 and is not set by default. Takes an IP protocol name such as <literal>gre</literal> or
1d3a473b 1729 <literal>ipip</literal>, or an integer within the range 1…255. When
0b145817 1730 <varname>Encapsulation=GenericUDPEncapsulation</varname>, this must not be specified.</para>
ec07c3c8
AK
1731
1732 <xi:include href="version-info.xml" xpointer="v240"/>
0b145817
YW
1733 </listitem>
1734 </varlistentry>
4502a61c
SS
1735 <varlistentry>
1736 <term><varname>Peer=</varname></term>
1737 <listitem>
e9dd6984
ZJS
1738 <para>Configures peer IP address. Note that when peer address is set <literal>PeerPort=</literal>
1739 is mandatory.</para>
ec07c3c8
AK
1740
1741 <xi:include href="version-info.xml" xpointer="v243"/>
4502a61c
SS
1742 </listitem>
1743 </varlistentry>
1744 <varlistentry>
1745 <term><varname>Local=</varname></term>
1746 <listitem>
1747 <para>Configures local IP address.</para>
ec07c3c8
AK
1748
1749 <xi:include href="version-info.xml" xpointer="v243"/>
4502a61c
SS
1750 </listitem>
1751 </varlistentry>
0b145817 1752 </variablelist>
53cb501a 1753 </refsect1>
488d0ba1 1754
798d3a52
ZJS
1755 <refsect1>
1756 <title>[Peer] Section Options</title>
1757
bdac5608 1758 <para>The [Peer] section only applies for
488d0ba1
YW
1759 netdevs of kind <literal>veth</literal> and accepts the
1760 following keys:</para>
1761
1762 <variablelist class='network-directives'>
1763 <varlistentry>
1764 <term><varname>Name=</varname></term>
1765 <listitem>
1766 <para>The interface name used when creating the netdev.
e9dd6984 1767 This setting is compulsory.</para>
ec07c3c8
AK
1768
1769 <xi:include href="version-info.xml" xpointer="v215"/>
488d0ba1
YW
1770 </listitem>
1771 </varlistentry>
1772 <varlistentry>
1773 <term><varname>MACAddress=</varname></term>
1774 <listitem>
1775 <para>The peer MACAddress, if not set, it is generated in
1776 the same way as the MAC address of the main
1777 interface.</para>
ec07c3c8
AK
1778
1779 <xi:include href="version-info.xml" xpointer="v215"/>
488d0ba1
YW
1780 </listitem>
1781 </varlistentry>
1782 </variablelist>
798d3a52 1783 </refsect1>
488d0ba1 1784
d6df583c 1785 <refsect1>
488d0ba1
YW
1786 <title>[VXCAN] Section Options</title>
1787
bdac5608 1788 <para>The [VXCAN] section only applies for
488d0ba1
YW
1789 netdevs of kind <literal>vxcan</literal> and accepts the
1790 following key:</para>
1791
1792 <variablelist class='network-directives'>
1793 <varlistentry>
1794 <term><varname>Peer=</varname></term>
1795 <listitem>
1796 <para>The peer interface name used when creating the netdev.
e9dd6984 1797 This setting is compulsory.</para>
ec07c3c8
AK
1798
1799 <xi:include href="version-info.xml" xpointer="v236"/>
488d0ba1
YW
1800 </listitem>
1801 </varlistentry>
1802 </variablelist>
d6df583c 1803 </refsect1>
488d0ba1 1804
798d3a52
ZJS
1805 <refsect1>
1806 <title>[Tun] Section Options</title>
1807
bdac5608 1808 <para>The [Tun] section only applies for
798d3a52
ZJS
1809 netdevs of kind <literal>tun</literal>, and accepts the following
1810 keys:</para>
1811
1812 <variablelist class='network-directives'>
798d3a52
ZJS
1813 <varlistentry>
1814 <term><varname>MultiQueue=</varname></term>
9b6ffef3 1815 <listitem><para>Takes a boolean. Configures whether
798d3a52
ZJS
1816 to use multiple file descriptors (queues) to parallelize
1817 packets sending and receiving. Defaults to
1818 <literal>no</literal>.</para>
ec07c3c8
AK
1819
1820 <xi:include href="version-info.xml" xpointer="v215"/>
798d3a52
ZJS
1821 </listitem>
1822 </varlistentry>
1823 <varlistentry>
1824 <term><varname>PacketInfo=</varname></term>
9b6ffef3 1825 <listitem><para>Takes a boolean. Configures whether
ff9b60f3 1826 packets should be prepended with four extra bytes (two flag
b938cb90 1827 bytes and two protocol bytes). If disabled, it indicates that
798d3a52
ZJS
1828 the packets will be pure IP packets. Defaults to
1829 <literal>no</literal>.</para>
ec07c3c8
AK
1830
1831 <xi:include href="version-info.xml" xpointer="v215"/>
798d3a52
ZJS
1832 </listitem>
1833 </varlistentry>
43f78da4 1834 <varlistentry>
2aba142e 1835 <term><varname>VNetHeader=</varname></term>
9b6ffef3 1836 <listitem><para>Takes a boolean. Configures
75eed300 1837 IFF_VNET_HDR flag for a tun or tap device. It allows sending
43f78da4
SS
1838 and receiving larger Generic Segmentation Offload (GSO)
1839 packets. This may increase throughput significantly.
1840 Defaults to
1841 <literal>no</literal>.</para>
ec07c3c8
AK
1842
1843 <xi:include href="version-info.xml" xpointer="v223"/>
43f78da4
SS
1844 </listitem>
1845 </varlistentry>
798d3a52
ZJS
1846 <varlistentry>
1847 <term><varname>User=</varname></term>
1848 <listitem><para>User to grant access to the
1849 <filename>/dev/net/tun</filename> device.</para>
ec07c3c8
AK
1850
1851 <xi:include href="version-info.xml" xpointer="v215"/>
798d3a52
ZJS
1852 </listitem>
1853 </varlistentry>
1854 <varlistentry>
1855 <term><varname>Group=</varname></term>
1856 <listitem><para>Group to grant access to the
1857 <filename>/dev/net/tun</filename> device.</para>
ec07c3c8
AK
1858
1859 <xi:include href="version-info.xml" xpointer="v215"/>
798d3a52
ZJS
1860 </listitem>
1861 </varlistentry>
f8b7c177
YW
1862 <varlistentry>
1863 <term><varname>KeepCarrier=</varname></term>
1864 <listitem>
1865 <para>Takes a boolean. If enabled, to make the interface maintain its carrier status, the file
1866 descriptor of the interface is kept open. This may be useful to keep the interface in running
1867 state, for example while the backing process is temporarily shutdown. Defaults to
1868 <literal>no</literal>.</para>
ec07c3c8
AK
1869
1870 <xi:include href="version-info.xml" xpointer="v252"/>
f8b7c177
YW
1871 </listitem>
1872 </varlistentry>
798d3a52 1873 </variablelist>
798d3a52
ZJS
1874 </refsect1>
1875
1876 <refsect1>
1877 <title>[Tap] Section Options</title>
1878
bdac5608 1879 <para>The [Tap] section only applies for
798d3a52 1880 netdevs of kind <literal>tap</literal>, and accepts the same keys
bdac5608 1881 as the [Tun] section.</para>
798d3a52
ZJS
1882 </refsect1>
1883
e5719363
JT
1884 <refsect1>
1885 <title>[WireGuard] Section Options</title>
1886
bdac5608 1887 <para>The [WireGuard] section accepts the following
e5719363
JT
1888 keys:</para>
1889
1890 <variablelist class='network-directives'>
1891 <varlistentry>
1892 <term><varname>PrivateKey=</varname></term>
1893 <listitem>
fa724cd5
MY
1894 <para>The Base64 encoded private key for the interface. It can be generated using
1895 the <command>wg genkey</command> command
488d0ba1 1896 (see <citerefentry project="wireguard"><refentrytitle>wg</refentrytitle><manvolnum>8</manvolnum></citerefentry>).
fa724cd5
MY
1897 Specially, if the specified key is prefixed with <literal>@</literal>, it is interpreted as
1898 the name of the credential from which the actual key shall be read. <command>systemd-networkd.service</command>
1899 automatically imports credentials matching <literal>network.wireguard.*</literal>. For more details
1900 on credentials, refer to
1901 <citerefentry><refentrytitle>systemd.exec</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
1902 A private key is mandatory to use WireGuard. If not set, the credential
1903 <literal>network.wireguard.private.<replaceable>netdev</replaceable></literal> is used if exists.
1904 I.e. for <filename>50-foobar.netdev</filename>, <literal>network.wireguard.private.50-foobar</literal>
1905 is tried.</para>
1906
1907 <para>Note that because this information is secret, it's strongly recommended to use an (encrypted)
1908 credential. Alternatively, you may want to set the permissions of the .netdev file to be owned
1909 by <literal>root:systemd-network</literal> with a <literal>0640</literal> file mode.</para>
ec07c3c8
AK
1910
1911 <xi:include href="version-info.xml" xpointer="v237"/>
e5719363
JT
1912 </listitem>
1913 </varlistentry>
76df7779
YW
1914 <varlistentry>
1915 <term><varname>PrivateKeyFile=</varname></term>
1916 <listitem>
49f16281
LP
1917 <para>Takes an absolute path to a file which contains the Base64 encoded private key for the
1918 interface. When this option is specified, then <varname>PrivateKey=</varname> is ignored. Note
1919 that the file must be readable by the user <literal>systemd-network</literal>, so it should be,
1920 e.g., owned by <literal>root:systemd-network</literal> with a <literal>0640</literal> file mode. If
1921 the path refers to an <constant>AF_UNIX</constant> stream socket in the file system a connection is
1922 made to it and the key read from it.</para>
ec07c3c8
AK
1923
1924 <xi:include href="version-info.xml" xpointer="v242"/>
76df7779
YW
1925 </listitem>
1926 </varlistentry>
e5719363
JT
1927 <varlistentry>
1928 <term><varname>ListenPort=</varname></term>
1929 <listitem>
1930 <para>Sets UDP port for listening. Takes either value between 1 and 65535
488d0ba1
YW
1931 or <literal>auto</literal>. If <literal>auto</literal> is specified,
1932 the port is automatically generated based on interface name.
1933 Defaults to <literal>auto</literal>.</para>
ec07c3c8
AK
1934
1935 <xi:include href="version-info.xml" xpointer="v237"/>
e5719363
JT
1936 </listitem>
1937 </varlistentry>
1938 <varlistentry>
1c30b174 1939 <term><varname>FirewallMark=</varname></term>
e5719363 1940 <listitem>
1c30b174 1941 <para>Sets a firewall mark on outgoing WireGuard packets from this interface. Takes a number between 1 and 4294967295.</para>
ec07c3c8
AK
1942
1943 <xi:include href="version-info.xml" xpointer="v243"/>
e5719363
JT
1944 </listitem>
1945 </varlistentry>
e9084344
YW
1946 <varlistentry>
1947 <term><varname>RouteTable=</varname></term>
1948 <listitem>
1949 <para>The table identifier for the routes to the addresses specified in the
e135559d
YW
1950 <varname>AllowedIPs=</varname>. Takes a negative boolean value, one of the predefined names
1951 <literal>default</literal>, <literal>main</literal>, and <literal>local</literal>, names
1952 defined in <varname>RouteTable=</varname> in
e9084344
YW
1953 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1954 or a number in the range 1…4294967295. When <literal>off</literal> the routes to the
1955 addresses specified in the <varname>AllowedIPs=</varname> setting will not be configured.
e135559d
YW
1956 Defaults to false. This setting will be ignored when the same setting is specified in the
1957 [WireGuardPeer] section.</para>
ec07c3c8
AK
1958
1959 <xi:include href="version-info.xml" xpointer="v250"/>
e9084344
YW
1960 </listitem>
1961 </varlistentry>
1962 <varlistentry>
1963 <term><varname>RouteMetric=</varname></term>
1964 <listitem>
1965 <para>The priority of the routes to the addresses specified in the
1966 <varname>AllowedIPs=</varname>. Takes an integer in the range 0…4294967295. Defaults to 0
1967 for IPv4 addresses, and 1024 for IPv6 addresses. This setting will be ignored when the same
1968 setting is specified in the [WireGuardPeer] section.</para>
ec07c3c8
AK
1969
1970 <xi:include href="version-info.xml" xpointer="v250"/>
e9084344
YW
1971 </listitem>
1972 </varlistentry>
e5719363
JT
1973 </variablelist>
1974 </refsect1>
1975
1976 <refsect1>
1977 <title>[WireGuardPeer] Section Options</title>
1978
bdac5608 1979 <para>The [WireGuardPeer] section accepts the following
e5719363
JT
1980 keys:</para>
1981
1982 <variablelist class='network-directives'>
1983 <varlistentry>
1984 <term><varname>PublicKey=</varname></term>
1985 <listitem>
1986 <para>Sets a Base64 encoded public key calculated by <command>wg pubkey</command>
488d0ba1 1987 (see <citerefentry project="wireguard"><refentrytitle>wg</refentrytitle><manvolnum>8</manvolnum></citerefentry>)
fa724cd5
MY
1988 from a private key, and usually transmitted out of band to the author of the configuration file.
1989 This option honors the <literal>@</literal> prefix in the same way as the <option>PrivateKey=</option>
1990 setting of the <option>[WireGuard]</option> section. This option is mandatory for this section.</para>
ec07c3c8
AK
1991
1992 <xi:include href="version-info.xml" xpointer="v237"/>
e5719363
JT
1993 </listitem>
1994 </varlistentry>
1995 <varlistentry>
1996 <term><varname>PresharedKey=</varname></term>
1997 <listitem>
fa724cd5
MY
1998 <para>Optional preshared key for the interface. It can be generated by the <command>wg genpsk</command>
1999 command. This option adds an additional layer of symmetric-key cryptography to be mixed into the
2000 already existing public-key cryptography, for post-quantum resistance.
2001 This option honors the <literal>@</literal> prefix in the same way as the <option>PrivateKey=</option>
2002 setting of the <option>[WireGuard]</option> section.</para>
2003
2004 <para>Note that because this information is secret, it's strongly recommended to use an (encrypted)
2005 credential. Alternatively, you may want to set the permissions of the .netdev file to be owned
2006 by <literal>root:systemd-network</literal> with a <literal>0640</literal> file mode.</para>
ec07c3c8
AK
2007
2008 <xi:include href="version-info.xml" xpointer="v237"/>
e5719363
JT
2009 </listitem>
2010 </varlistentry>
a3945c63
YW
2011 <varlistentry>
2012 <term><varname>PresharedKeyFile=</varname></term>
2013 <listitem>
2014 <para>Takes an absolute path to a file which contains the Base64 encoded preshared key for the
49f16281
LP
2015 peer. When this option is specified, then <varname>PresharedKey=</varname> is ignored. Note that
2016 the file must be readable by the user <literal>systemd-network</literal>, so it should be, e.g.,
2017 owned by <literal>root:systemd-network</literal> with a <literal>0640</literal> file mode. If the
2018 path refers to an <constant>AF_UNIX</constant> stream socket in the file system a connection is
2019 made to it and the key read from it.</para>
ec07c3c8
AK
2020
2021 <xi:include href="version-info.xml" xpointer="v242"/>
a3945c63
YW
2022 </listitem>
2023 </varlistentry>
e5719363
JT
2024 <varlistentry>
2025 <term><varname>AllowedIPs=</varname></term>
2026 <listitem>
f8c5301e
YW
2027 <para>Sets a comma-separated list of IP (v4 or v6) addresses with CIDR masks from which this peer
2028 is allowed to send incoming traffic and to which outgoing traffic for this peer is directed. This
2029 setting can be specified multiple times. If an empty string is assigned, then the all previous
2030 assignments are cleared.</para>
be0d27ee 2031
c6b90e5c
FK
2032 <para>The catch-all 0.0.0.0/0 may be specified for matching all IPv4 addresses,
2033 and ::/0 may be specified for matching all IPv6 addresses.</para>
be0d27ee
ZJS
2034
2035 <para>Note that this only affects <emphasis>routing inside the network interface itself</emphasis>,
2036 i.e. the packets that pass through the tunnel itself. To cause packets to be sent via the tunnel in
2037 the first place, an appropriate route needs to be added as well — either in the
2038 <literal>[Routes]</literal> section on the <literal>.network</literal> matching the wireguard
2039 interface, or externally to <filename>systemd-networkd</filename>.</para>
ec07c3c8
AK
2040
2041 <xi:include href="version-info.xml" xpointer="v237"/>
e5719363
JT
2042 </listitem>
2043 </varlistentry>
2044 <varlistentry>
2045 <term><varname>Endpoint=</varname></term>
2046 <listitem>
fa724cd5
MY
2047 <para>Sets an endpoint IP address or hostname, followed by a colon, and then a port number.
2048 IPv6 address must be in the square brackets. For example, <literal>111.222.333.444:51820</literal>
2049 for IPv4 and <literal>[1111:2222::3333]:51820</literal> for IPv6 address. This endpoint will be
2050 updated automatically once to the most recent source IP address and port of correctly
488d0ba1 2051 authenticated packets from the peer at configuration time.</para>
ec07c3c8 2052
fa724cd5
MY
2053 <para>This option honors the <literal>@</literal> prefix in the same way as the <option>PrivateKey=</option>
2054 setting of the <option>[WireGuard]</option> section.</para>
2055
ec07c3c8 2056 <xi:include href="version-info.xml" xpointer="v237"/>
e5719363
JT
2057 </listitem>
2058 </varlistentry>
2059 <varlistentry>
2060 <term><varname>PersistentKeepalive=</varname></term>
2061 <listitem>
2062 <para>Sets a seconds interval, between 1 and 65535 inclusive, of how often
488d0ba1
YW
2063 to send an authenticated empty packet to the peer for the purpose
2064 of keeping a stateful firewall or NAT mapping valid persistently.
2065 For example, if the interface very rarely sends traffic, but it
2066 might at anytime receive traffic from a peer, and it is behind NAT,
2067 the interface might benefit from having a persistent keepalive
2068 interval of 25 seconds. If set to 0 or "off", this option is
2069 disabled. By default or when unspecified, this option is off.
2070 Most users will not need this.</para>
ec07c3c8
AK
2071
2072 <xi:include href="version-info.xml" xpointer="v237"/>
e5719363
JT
2073 </listitem>
2074 </varlistentry>
e9084344
YW
2075 <varlistentry>
2076 <term><varname>RouteTable=</varname></term>
2077 <listitem>
2078 <para>The table identifier for the routes to the addresses specified in the
e135559d
YW
2079 <varname>AllowedIPs=</varname>. Takes a negative boolean value, one of the predefined names
2080 <literal>default</literal>, <literal>main</literal>, and <literal>local</literal>, names
2081 defined in <varname>RouteTable=</varname> in
e9084344
YW
2082 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
2083 or a number in the range 1…4294967295. Defaults to unset, and the value specified in the
2084 same setting in the [WireGuard] section will be used.</para>
ec07c3c8
AK
2085
2086 <xi:include href="version-info.xml" xpointer="v250"/>
e9084344
YW
2087 </listitem>
2088 </varlistentry>
2089 <varlistentry>
2090 <term><varname>RouteMetric=</varname></term>
2091 <listitem>
2092 <para>The priority of the routes to the addresses specified in the
2093 <varname>AllowedIPs=</varname>. Takes an integer in the range 0…4294967295. Defaults to
2094 unset, and the value specified in the same setting in the [WireGuard] section will be used.
2095 </para>
ec07c3c8
AK
2096
2097 <xi:include href="version-info.xml" xpointer="v250"/>
e9084344
YW
2098 </listitem>
2099 </varlistentry>
e5719363
JT
2100 </variablelist>
2101 </refsect1>
2102
798d3a52
ZJS
2103 <refsect1>
2104 <title>[Bond] Section Options</title>
2105
bdac5608 2106 <para>The [Bond] section accepts the following
798d3a52
ZJS
2107 key:</para>
2108
2109 <variablelist class='network-directives'>
2110 <varlistentry>
2111 <term><varname>Mode=</varname></term>
2112 <listitem>
2113 <para>Specifies one of the bonding policies. The default is
2114 <literal>balance-rr</literal> (round robin). Possible values are
2115 <literal>balance-rr</literal>,
2116 <literal>active-backup</literal>,
2117 <literal>balance-xor</literal>,
2118 <literal>broadcast</literal>,
2119 <literal>802.3ad</literal>,
2120 <literal>balance-tlb</literal>, and
2121 <literal>balance-alb</literal>.
2122 </para>
ec07c3c8
AK
2123
2124 <xi:include href="version-info.xml" xpointer="v216"/>
798d3a52
ZJS
2125 </listitem>
2126 </varlistentry>
2127
2128 <varlistentry>
2129 <term><varname>TransmitHashPolicy=</varname></term>
2130 <listitem>
2131 <para>Selects the transmit hash policy to use for slave
2132 selection in balance-xor, 802.3ad, and tlb modes. Possible
2133 values are
2134 <literal>layer2</literal>,
2135 <literal>layer3+4</literal>,
2136 <literal>layer2+3</literal>,
4d89618a 2137 <literal>encap2+3</literal>, and
798d3a52
ZJS
2138 <literal>encap3+4</literal>.
2139 </para>
ec07c3c8
AK
2140
2141 <xi:include href="version-info.xml" xpointer="v216"/>
798d3a52
ZJS
2142 </listitem>
2143 </varlistentry>
2144
2145 <varlistentry>
2146 <term><varname>LACPTransmitRate=</varname></term>
2147 <listitem>
2148 <para>Specifies the rate with which link partner transmits
2149 Link Aggregation Control Protocol Data Unit packets in
2150 802.3ad mode. Possible values are <literal>slow</literal>,
2151 which requests partner to transmit LACPDUs every 30 seconds,
2152 and <literal>fast</literal>, which requests partner to
2153 transmit LACPDUs every second. The default value is
2154 <literal>slow</literal>.</para>
ec07c3c8
AK
2155
2156 <xi:include href="version-info.xml" xpointer="v216"/>
798d3a52
ZJS
2157 </listitem>
2158 </varlistentry>
2159
2160 <varlistentry>
2161 <term><varname>MIIMonitorSec=</varname></term>
2162 <listitem>
2163 <para>Specifies the frequency that Media Independent
2164 Interface link monitoring will occur. A value of zero
dd2b607b 2165 disables MII link monitoring. This value is rounded down to
798d3a52 2166 the nearest millisecond. The default value is 0.</para>
ec07c3c8
AK
2167
2168 <xi:include href="version-info.xml" xpointer="v216"/>
798d3a52
ZJS
2169 </listitem>
2170 </varlistentry>
2171
2172 <varlistentry>
2173 <term><varname>UpDelaySec=</varname></term>
2174 <listitem>
2175 <para>Specifies the delay before a link is enabled after a
2176 link up status has been detected. This value is rounded down
f3fa44cb 2177 to a multiple of <varname>MIIMonitorSec=</varname>. The default value is
798d3a52 2178 0.</para>
ec07c3c8
AK
2179
2180 <xi:include href="version-info.xml" xpointer="v216"/>
798d3a52
ZJS
2181 </listitem>
2182 </varlistentry>
2183
2184 <varlistentry>
2185 <term><varname>DownDelaySec=</varname></term>
2186 <listitem>
2187 <para>Specifies the delay before a link is disabled after a
2188 link down status has been detected. This value is rounded
f3fa44cb 2189 down to a multiple of <varname>MIIMonitorSec=</varname>. The default value is
798d3a52 2190 0.</para>
ec07c3c8
AK
2191
2192 <xi:include href="version-info.xml" xpointer="v216"/>
798d3a52
ZJS
2193 </listitem>
2194 </varlistentry>
2195
81bd37a8 2196 <varlistentry>
38422da7 2197 <term><varname>LearnPacketIntervalSec=</varname></term>
81bd37a8
SS
2198 <listitem>
2199 <para>Specifies the number of seconds between instances where the bonding
a8eaaee7 2200 driver sends learning packets to each slave peer switch.
9b65490f 2201 The valid range is 1…0x7fffffff; the default value is 1. This option
a8eaaee7 2202 has an effect only for the balance-tlb and balance-alb modes.</para>
ec07c3c8
AK
2203
2204 <xi:include href="version-info.xml" xpointer="v220"/>
81bd37a8
SS
2205 </listitem>
2206 </varlistentry>
2207
2208 <varlistentry>
2209 <term><varname>AdSelect=</varname></term>
2210 <listitem>
2211 <para>Specifies the 802.3ad aggregation selection logic to use. Possible values are
2212 <literal>stable</literal>,
a8eaaee7
JE
2213 <literal>bandwidth</literal> and
2214 <literal>count</literal>.
81bd37a8 2215 </para>
ec07c3c8
AK
2216
2217 <xi:include href="version-info.xml" xpointer="v220"/>
81bd37a8
SS
2218 </listitem>
2219 </varlistentry>
2220
99f68ef0 2221 <varlistentry>
db688b7e 2222 <term><varname>AdActorSystemPriority=</varname></term>
99f68ef0 2223 <listitem>
1d3a473b 2224 <para>Specifies the 802.3ad actor system priority. Takes a number in the range 1…65535.</para>
ec07c3c8
AK
2225
2226 <xi:include href="version-info.xml" xpointer="v240"/>
99f68ef0
TJ
2227 </listitem>
2228 </varlistentry>
2229
2230 <varlistentry>
2231 <term><varname>AdUserPortKey=</varname></term>
2232 <listitem>
e9dd6984 2233 <para>Specifies the 802.3ad user defined portion of the port key. Takes a number in the range
be0d27ee 2234 0…1023.</para>
ec07c3c8
AK
2235
2236 <xi:include href="version-info.xml" xpointer="v240"/>
99f68ef0
TJ
2237 </listitem>
2238 </varlistentry>
2239
2240 <varlistentry>
2241 <term><varname>AdActorSystem=</varname></term>
2242 <listitem>
7ad41997
ZJS
2243 <para>Specifies the 802.3ad system MAC address. This cannot be a null or multicast address.
2244 </para>
ec07c3c8
AK
2245
2246 <xi:include href="version-info.xml" xpointer="v240"/>
99f68ef0
TJ
2247 </listitem>
2248 </varlistentry>
2249
81bd37a8 2250 <varlistentry>
38422da7 2251 <term><varname>FailOverMACPolicy=</varname></term>
81bd37a8 2252 <listitem>
a8eaaee7
JE
2253 <para>Specifies whether the active-backup mode should set all slaves to
2254 the same MAC address at the time of enslavement or, when enabled, to perform special handling of the
81bd37a8
SS
2255 bond's MAC address in accordance with the selected policy. The default policy is none.
2256 Possible values are
2257 <literal>none</literal>,
a8eaaee7
JE
2258 <literal>active</literal> and
2259 <literal>follow</literal>.
81bd37a8 2260 </para>
ec07c3c8
AK
2261
2262 <xi:include href="version-info.xml" xpointer="v220"/>
81bd37a8
SS
2263 </listitem>
2264 </varlistentry>
2265
2266 <varlistentry>
38422da7 2267 <term><varname>ARPValidate=</varname></term>
81bd37a8
SS
2268 <listitem>
2269 <para>Specifies whether or not ARP probes and replies should be
38422da7 2270 validated in any mode that supports ARP monitoring, or whether
81bd37a8
SS
2271 non-ARP traffic should be filtered (disregarded) for link
2272 monitoring purposes. Possible values are
2273 <literal>none</literal>,
2274 <literal>active</literal>,
a8eaaee7
JE
2275 <literal>backup</literal> and
2276 <literal>all</literal>.
81bd37a8 2277 </para>
ec07c3c8
AK
2278
2279 <xi:include href="version-info.xml" xpointer="v220"/>
81bd37a8
SS
2280 </listitem>
2281 </varlistentry>
2282
2283 <varlistentry>
38422da7 2284 <term><varname>ARPIntervalSec=</varname></term>
81bd37a8 2285 <listitem>
06c52cc2
ZJS
2286 <para>Specifies the ARP link monitoring frequency. A value of 0 disables ARP monitoring. The
2287 default value is 0, and the default unit seconds.
81bd37a8 2288 </para>
ec07c3c8
AK
2289
2290 <xi:include href="version-info.xml" xpointer="v220"/>
81bd37a8
SS
2291 </listitem>
2292 </varlistentry>
2293
2294 <varlistentry>
38422da7 2295 <term><varname>ARPIPTargets=</varname></term>
81bd37a8
SS
2296 <listitem>
2297 <para>Specifies the IP addresses to use as ARP monitoring peers when
f3fa44cb
YW
2298 <varname>ARPIntervalSec=</varname> is greater than 0. These are the targets of the ARP
2299 request sent to determine the health of the link to the targets.
a8eaaee7 2300 Specify these values in IPv4 dotted decimal format. At least one IP
81bd37a8
SS
2301 address must be given for ARP monitoring to function. The
2302 maximum number of targets that can be specified is 16. The
2303 default value is no IP addresses.
2304 </para>
ec07c3c8
AK
2305
2306 <xi:include href="version-info.xml" xpointer="v220"/>
81bd37a8
SS
2307 </listitem>
2308 </varlistentry>
2309
2310 <varlistentry>
38422da7 2311 <term><varname>ARPAllTargets=</varname></term>
81bd37a8 2312 <listitem>
f3fa44cb 2313 <para>Specifies the quantity of <varname>ARPIPTargets=</varname> that must be reachable
81bd37a8
SS
2314 in order for the ARP monitor to consider a slave as being up.
2315 This option affects only active-backup mode for slaves with
38422da7 2316 ARPValidate enabled. Possible values are
a8eaaee7
JE
2317 <literal>any</literal> and
2318 <literal>all</literal>.
81bd37a8 2319 </para>
ec07c3c8
AK
2320
2321 <xi:include href="version-info.xml" xpointer="v220"/>
81bd37a8
SS
2322 </listitem>
2323 </varlistentry>
2324
2325 <varlistentry>
38422da7 2326 <term><varname>PrimaryReselectPolicy=</varname></term>
81bd37a8
SS
2327 <listitem>
2328 <para>Specifies the reselection policy for the primary slave. This
2329 affects how the primary slave is chosen to become the active slave
2330 when failure of the active slave or recovery of the primary slave
2331 occurs. This option is designed to prevent flip-flopping between
2332 the primary slave and other slaves. Possible values are
2333 <literal>always</literal>,
a8eaaee7
JE
2334 <literal>better</literal> and
2335 <literal>failure</literal>.
81bd37a8 2336 </para>
ec07c3c8
AK
2337
2338 <xi:include href="version-info.xml" xpointer="v220"/>
81bd37a8
SS
2339 </listitem>
2340 </varlistentry>
2341
2342 <varlistentry>
2343 <term><varname>ResendIGMP=</varname></term>
2344 <listitem>
2345 <para>Specifies the number of IGMP membership reports to be issued after
2346 a failover event. One membership report is issued immediately after
2347 the failover, subsequent packets are sent in each 200ms interval.
9b65490f 2348 The valid range is 0…255. Defaults to 1. A value of 0
81bd37a8
SS
2349 prevents the IGMP membership report from being issued in response
2350 to the failover event.
2351 </para>
ec07c3c8
AK
2352
2353 <xi:include href="version-info.xml" xpointer="v220"/>
81bd37a8
SS
2354 </listitem>
2355 </varlistentry>
2356
2357 <varlistentry>
2358 <term><varname>PacketsPerSlave=</varname></term>
2359 <listitem>
b938cb90 2360 <para>Specify the number of packets to transmit through a slave before
488d0ba1 2361 moving to the next one. When set to 0, then a slave is chosen at
9b65490f 2362 random. The valid range is 0…65535. Defaults to 1. This option
488d0ba1 2363 only has effect when in balance-rr mode.
81bd37a8 2364 </para>
ec07c3c8
AK
2365
2366 <xi:include href="version-info.xml" xpointer="v220"/>
81bd37a8
SS
2367 </listitem>
2368 </varlistentry>
2369
2370 <varlistentry>
38422da7 2371 <term><varname>GratuitousARP=</varname></term>
81bd37a8
SS
2372 <listitem>
2373 <para>Specify the number of peer notifications (gratuitous ARPs and
488d0ba1
YW
2374 unsolicited IPv6 Neighbor Advertisements) to be issued after a
2375 failover event. As soon as the link is up on the new slave,
2376 a peer notification is sent on the bonding device and each
2377 VLAN sub-device. This is repeated at each link monitor interval
2378 (ARPIntervalSec or MIIMonitorSec, whichever is active) if the number is
9b65490f 2379 greater than 1. The valid range is 0…255. The default value is 1.
488d0ba1 2380 These options affect only the active-backup mode.
81bd37a8 2381 </para>
ec07c3c8
AK
2382
2383 <xi:include href="version-info.xml" xpointer="v220"/>
81bd37a8
SS
2384 </listitem>
2385 </varlistentry>
2386
2387 <varlistentry>
2388 <term><varname>AllSlavesActive=</varname></term>
2389 <listitem>
9b6ffef3 2390 <para>Takes a boolean. Specifies that duplicate frames (received on inactive ports)
a8eaaee7 2391 should be dropped when false, or delivered when true. Normally, bonding will drop
81bd37a8
SS
2392 duplicate frames (received on inactive ports), which is desirable for
2393 most users. But there are some times it is nice to allow duplicate
2394 frames to be delivered. The default value is false (drop duplicate frames
2395 received on inactive ports).
2396 </para>
ec07c3c8
AK
2397
2398 <xi:include href="version-info.xml" xpointer="v220"/>
81bd37a8
SS
2399 </listitem>
2400 </varlistentry>
2401
fde60a42
SS
2402 <varlistentry>
2403 <term><varname>DynamicTransmitLoadBalancing=</varname></term>
2404 <listitem>
2405 <para>Takes a boolean. Specifies if dynamic shuffling of flows is enabled. Applies only
2406 for balance-tlb mode. Defaults to unset.
2407 </para>
ec07c3c8
AK
2408
2409 <xi:include href="version-info.xml" xpointer="v240"/>
fde60a42
SS
2410 </listitem>
2411 </varlistentry>
2412
81bd37a8
SS
2413 <varlistentry>
2414 <term><varname>MinLinks=</varname></term>
2415 <listitem>
2416 <para>Specifies the minimum number of links that must be active before
2417 asserting carrier. The default value is 0.
2418 </para>
ec07c3c8
AK
2419
2420 <xi:include href="version-info.xml" xpointer="v220"/>
81bd37a8
SS
2421 </listitem>
2422 </varlistentry>
798d3a52 2423 </variablelist>
81bd37a8
SS
2424
2425 <para>For more detail information see
0e685823 2426 <ulink url="https://docs.kernel.org/networking/bonding.html">
81bd37a8 2427 Linux Ethernet Bonding Driver HOWTO</ulink></para>
b8d88b26 2428 </refsect1>
81bd37a8 2429
98d20a17 2430 <refsect1>
2431 <title>[Xfrm] Section Options</title>
2432
bdac5608 2433 <para>The [Xfrm] section accepts the following
98d20a17 2434 keys:</para>
2435
2436 <variablelist class='network-directives'>
2437 <varlistentry>
2438 <term><varname>InterfaceId=</varname></term>
2439 <listitem>
2440 <para>Sets the ID/key of the xfrm interface which needs to be associated with a SA/policy.
fd110059 2441 Can be decimal or hexadecimal, valid range is 1-0xffffffff. This is mandatory.</para>
ec07c3c8
AK
2442
2443 <xi:include href="version-info.xml" xpointer="v243"/>
98d20a17 2444 </listitem>
2445 </varlistentry>
2446 <varlistentry>
2447 <term><varname>Independent=</varname></term>
2448 <listitem>
905a03e7
ZJS
2449 <para>Takes a boolean. If false (the default), the xfrm interface must have an underlying device
2450 which can be used for hardware offloading.</para>
ec07c3c8
AK
2451
2452 <xi:include href="version-info.xml" xpointer="v243"/>
98d20a17 2453 </listitem>
2454 </varlistentry>
2455 </variablelist>
2456
2457 <para>For more detail information see
e9dd6984 2458 <ulink url="https://lwn.net/Articles/757391">Virtual XFRM Interfaces</ulink>.</para>
98d20a17 2459 </refsect1>
2460
b8d88b26
FP
2461 <refsect1>
2462 <title>[VRF] Section Options</title>
bdac5608 2463 <para>The [VRF] section only applies for
b8d88b26
FP
2464 netdevs of kind <literal>vrf</literal> and accepts the
2465 following key:</para>
2466
2467 <variablelist class='network-directives'>
2468 <varlistentry>
2469 <term><varname>Table=</varname></term>
2470 <listitem>
e9dd6984 2471 <para>The numeric routing table identifier. This setting is compulsory.</para>
ec07c3c8
AK
2472
2473 <xi:include href="version-info.xml" xpointer="v243"/>
b8d88b26
FP
2474 </listitem>
2475 </varlistentry>
2476 </variablelist>
798d3a52
ZJS
2477 </refsect1>
2478
c0267a59
AW
2479 <refsect1>
2480 <title>[BatmanAdvanced] Section Options</title>
be0d27ee
ZJS
2481
2482 <para>The [BatmanAdvanced] section only applies for netdevs of kind <literal>batadv</literal> and accepts
2483 the following keys:</para>
c0267a59
AW
2484
2485 <variablelist class='network-directives'>
2486 <varlistentry>
2487 <term><varname>GatewayMode=</varname></term>
2488 <listitem>
2489 <para>Takes one of <literal>off</literal>, <literal>server</literal>, or <literal>client</literal>.
2490 A batman-adv node can either run in server mode (sharing its internet
2491 connection with the mesh) or in client mode (searching for the most suitable internet connection
2492 in the mesh) or having the gateway support turned off entirely (which is the default setting).
2493 </para>
ec07c3c8
AK
2494
2495 <xi:include href="version-info.xml" xpointer="v248"/>
c0267a59
AW
2496 </listitem>
2497 </varlistentry>
2498 <varlistentry>
2499 <term><varname>Aggregation=</varname></term>
2500 <listitem>
2501 <para>Takes a boolean value. Enables or disables aggregation of originator messages. Defaults to
2502 true.
2503 </para>
ec07c3c8
AK
2504
2505 <xi:include href="version-info.xml" xpointer="v248"/>
c0267a59
AW
2506 </listitem>
2507 </varlistentry>
2508 <varlistentry>
2509 <term><varname>BridgeLoopAvoidance=</varname></term>
2510 <listitem>
2511 <para>Takes a boolean value. Enables or disables avoidance of loops on bridges. Defaults to true.
2512 </para>
ec07c3c8
AK
2513
2514 <xi:include href="version-info.xml" xpointer="v248"/>
c0267a59
AW
2515 </listitem>
2516 </varlistentry>
2517 <varlistentry>
2518 <term><varname>DistributedArpTable=</varname></term>
2519 <listitem>
2520 <para>Takes a boolean value. Enables or disables the distributed ARP table. Defaults to true.</para>
ec07c3c8
AK
2521
2522 <xi:include href="version-info.xml" xpointer="v248"/>
c0267a59
AW
2523 </listitem>
2524 </varlistentry>
2525 <varlistentry>
2526 <term><varname>Fragmentation=</varname></term>
2527 <listitem>
2528 <para>Takes a boolean value. Enables or disables fragmentation. Defaults to true.</para>
ec07c3c8
AK
2529
2530 <xi:include href="version-info.xml" xpointer="v248"/>
c0267a59
AW
2531 </listitem>
2532 </varlistentry>
2533 <varlistentry>
2534 <term><varname>HopPenalty=</varname></term>
2535 <listitem>
6eed65d4 2536 <para>The hop penalty setting allows one to modify
ba3dc451 2537 <citerefentry project='mankier'><refentrytitle>batctl</refentrytitle><manvolnum>8</manvolnum></citerefentry>
fa027117 2538 preference for multihop routes vs. short routes. This integer value is applied to the
c0267a59
AW
2539 TQ (Transmit Quality) of each forwarded OGM (Originator Message), thereby propagating the
2540 cost of an extra hop (the packet has to be received and retransmitted which costs airtime).
2541 A higher hop penalty will make it more unlikely that other nodes will choose this node as
2542 intermediate hop towards any given destination. The default hop penalty of '15' is a reasonable
2543 value for most setups and probably does not need to be changed. However, mobile nodes could
2544 choose a value of 255 (maximum value) to avoid being chosen as a router by other nodes.
2545 The minimum value is 0.
2546 </para>
ec07c3c8
AK
2547
2548 <xi:include href="version-info.xml" xpointer="v248"/>
c0267a59
AW
2549 </listitem>
2550 </varlistentry>
2551 <varlistentry>
2552 <term><varname>OriginatorIntervalSec=</varname></term>
2553 <listitem>
2554 <para>The value specifies the interval in seconds, unless another time unit is specified in which
2555 batman-adv floods the network with its protocol information.
2556 See <citerefentry><refentrytitle>systemd.time</refentrytitle><manvolnum>7</manvolnum></citerefentry>
2557 for more information.</para>
ec07c3c8
AK
2558
2559 <xi:include href="version-info.xml" xpointer="v248"/>
c0267a59
AW
2560 </listitem>
2561 </varlistentry>
2562 <varlistentry>
2563 <term><varname>GatewayBandwidthDown=</varname></term>
2564 <listitem>
2565 <para>If the node is a server, this
2566 parameter is used to inform other nodes in the network about
2567 this node's internet connection download bandwidth in bits per second. Just enter any number
2568 suffixed with K, M, G or T (base 1000) and the batman-adv
2569 module will propagate the entered value in the mesh.</para>
ec07c3c8
AK
2570
2571 <xi:include href="version-info.xml" xpointer="v248"/>
c0267a59
AW
2572 </listitem>
2573 </varlistentry>
2574 <varlistentry>
2575 <term><varname>GatewayBandwidthUp=</varname></term>
2576 <listitem>
2577 <para>If the node is a server, this
2578 parameter is used to inform other nodes in the network about
2579 this node's internet connection upload bandwidth in bits per second. Just enter any number
2580 suffixed with K, M, G or T (base 1000) and the batman-adv
2581 module will propagate the entered value in the mesh.</para>
ec07c3c8
AK
2582
2583 <xi:include href="version-info.xml" xpointer="v248"/>
c0267a59
AW
2584 </listitem>
2585 </varlistentry>
2586 <varlistentry>
2587 <term><varname>RoutingAlgorithm=</varname></term>
2588 <listitem>
2589 <para>This can be either <literal>batman-v</literal> or <literal>batman-iv</literal> and describes which routing_algo
ff9412c1 2590 of <citerefentry project='mankier'><refentrytitle>batctl</refentrytitle><manvolnum>8</manvolnum></citerefentry> to use. The algorithm
c0267a59
AW
2591 cannot be changed after interface creation. Defaults to <literal>batman-v</literal>.
2592 </para>
ec07c3c8
AK
2593
2594 <xi:include href="version-info.xml" xpointer="v248"/>
c0267a59
AW
2595 </listitem>
2596 </varlistentry>
2597 </variablelist>
2598 </refsect1>
2599
b90d0f83
YW
2600 <refsect1>
2601 <title>[IPoIB] Section Options</title>
2602 <para>The [IPoIB] section only applies for netdevs of kind <literal>ipoib</literal> and accepts the
2603 following keys:</para>
2604
2605 <variablelist class='network-directives'>
2606 <varlistentry>
2607 <term><varname>PartitionKey=</varname></term>
2608 <listitem>
2609 <para>Takes an integer in the range 1…0xffff, except for 0x8000. Defaults to unset, and the
2610 kernel's default is used.</para>
ec07c3c8
AK
2611
2612 <xi:include href="version-info.xml" xpointer="v250"/>
b90d0f83
YW
2613 </listitem>
2614 </varlistentry>
2615
2616 <varlistentry id='ipoib_mode'>
2617 <term><varname>Mode=</varname></term>
2618 <listitem>
2619 <para>Takes one of the special values <literal>datagram</literal> or
2620 <literal>connected</literal>. Defaults to unset, and the kernel's default is used.</para>
2621
2622 <para>When <literal>datagram</literal>, the Infiniband unreliable datagram (UD) transport is
2623 used, and so the interface MTU is equal to the IB L2 MTU minus the IPoIB encapsulation
2624 header (4 bytes). For example, in a typical IB fabric with a 2K MTU, the IPoIB MTU will be
2625 2048 - 4 = 2044 bytes.</para>
2626
2627 <para>When <literal>connected</literal>, the Infiniband reliable connected (RC) transport is
2628 used. Connected mode takes advantage of the connected nature of the IB transport and allows
2629 an MTU up to the maximal IP packet size of 64K, which reduces the number of IP packets needed
2630 for handling large UDP datagrams, TCP segments, etc and increases the performance for large
2631 messages.</para>
ec07c3c8
AK
2632
2633 <xi:include href="version-info.xml" xpointer="v250"/>
b90d0f83
YW
2634 </listitem>
2635 </varlistentry>
2636
2637 <varlistentry id='ipoib_umcast'>
2638 <term><varname>IgnoreUserspaceMulticastGroup=</varname></term>
2639 <listitem>
2640 <para>Takes an boolean value. When true, the kernel ignores multicast groups handled by
2641 userspace. Defaults to unset, and the kernel's default is used.</para>
ec07c3c8
AK
2642
2643 <xi:include href="version-info.xml" xpointer="v250"/>
b90d0f83
YW
2644 </listitem>
2645 </varlistentry>
2646 </variablelist>
2647 </refsect1>
2648
dedf2d00 2649 <refsect1>
ec4954d9
YW
2650 <title>[WLAN] Section Options</title>
2651 <para>The [WLAN] section only applies to WLAN interfaces, and accepts the following keys:</para>
dedf2d00
YW
2652
2653 <variablelist class='network-directives'>
2654 <varlistentry>
2655 <term><varname>PhysicalDevice=</varname></term>
2656 <listitem>
ec4954d9 2657 <para>Specifies the name or index of the physical WLAN device (e.g. <literal>0</literal> or
6a1d8f11 2658 <literal>phy0</literal>). The list of the physical WLAN devices that exist on the host can be
ec4954d9 2659 obtained by <command>iw phy</command> command. This option is mandatory.</para>
ec07c3c8
AK
2660
2661 <xi:include href="version-info.xml" xpointer="v251"/>
dedf2d00
YW
2662 </listitem>
2663 </varlistentry>
2664
2665 <varlistentry>
2666 <term><varname>Type=</varname></term>
2667 <listitem>
2668 <para>Specifies the type of the interface. Takes one of the <literal>ad-hoc</literal>,
2669 <literal>station</literal>, <literal>ap</literal>, <literal>ap-vlan</literal>,
2670 <literal>wds</literal>, <literal>monitor</literal>, <literal>mesh-point</literal>,
2671 <literal>p2p-client</literal>, <literal>p2p-go</literal>, <literal>p2p-device</literal>,
2672 <literal>ocb</literal>, and <literal>nan</literal>. This option is mandatory.</para>
ec07c3c8
AK
2673
2674 <xi:include href="version-info.xml" xpointer="v251"/>
dedf2d00
YW
2675 </listitem>
2676 </varlistentry>
2677
2678 <varlistentry>
2679 <term><varname>WDS=</varname></term>
2680 <listitem>
2681 <para>Enables the Wireless Distribution System (WDS) mode on the interface. The mode is also
2682 known as the <literal>4 address mode</literal>. Takes a boolean value. Defaults to unset, and
2683 the kernel's default will be used.</para>
ec07c3c8
AK
2684
2685 <xi:include href="version-info.xml" xpointer="v251"/>
dedf2d00
YW
2686 </listitem>
2687 </varlistentry>
2688 </variablelist>
2689 </refsect1>
2690
798d3a52 2691 <refsect1>
48847676 2692 <title>Examples</title>
798d3a52 2693 <example>
6c1695be 2694 <title>/etc/systemd/network/25-bridge.netdev</title>
798d3a52
ZJS
2695
2696 <programlisting>[NetDev]
eac684ef
TG
2697Name=bridge0
2698Kind=bridge</programlisting>
798d3a52 2699 </example>
eac684ef 2700
798d3a52 2701 <example>
6c1695be 2702 <title>/etc/systemd/network/25-vlan1.netdev</title>
eac684ef 2703
798d3a52 2704 <programlisting>[Match]
eac684ef
TG
2705Virtualization=no
2706
2707[NetDev]
2708Name=vlan1
2709Kind=vlan
2710
2711[VLAN]
2712Id=1</programlisting>
798d3a52
ZJS
2713 </example>
2714 <example>
6c1695be 2715 <title>/etc/systemd/network/25-ipip.netdev</title>
798d3a52 2716 <programlisting>[NetDev]
b35a2909
TG
2717Name=ipip-tun
2718Kind=ipip
2719MTUBytes=1480
2720
2721[Tunnel]
2722Local=192.168.223.238
2723Remote=192.169.224.239
2724TTL=64</programlisting>
798d3a52 2725 </example>
53cb501a
SS
2726 <example>
2727 <title>/etc/systemd/network/1-fou-tunnel.netdev</title>
2728 <programlisting>[NetDev]
2729Name=fou-tun
2730Kind=fou
2731
2732[FooOverUDP]
2733Port=5555
2734Protocol=4
2735 </programlisting>
2736 </example>
2737 <example>
2738 <title>/etc/systemd/network/25-fou-ipip.netdev</title>
2739 <programlisting>[NetDev]
53cb501a
SS
2740Name=ipip-tun
2741Kind=ipip
2742
2743[Tunnel]
964c4eda 2744Independent=yes
53cb501a
SS
2745Local=10.65.208.212
2746Remote=10.65.208.211
964c4eda 2747FooOverUDP=yes
53cb501a
SS
2748FOUDestinationPort=5555
2749 </programlisting>
2750 </example>
798d3a52 2751 <example>
6c1695be 2752 <title>/etc/systemd/network/25-tap.netdev</title>
798d3a52 2753 <programlisting>[NetDev]
30ae9dfd
SS
2754Name=tap-test
2755Kind=tap
2756
2757[Tap]
964c4eda
LP
2758MultiQueue=yes
2759PacketInfo=yes</programlisting> </example>
eac684ef 2760
798d3a52 2761 <example>
6c1695be 2762 <title>/etc/systemd/network/25-sit.netdev</title>
798d3a52 2763 <programlisting>[NetDev]
b35a2909
TG
2764Name=sit-tun
2765Kind=sit
2766MTUBytes=1480
2767
2768[Tunnel]
2769Local=10.65.223.238
2770Remote=10.65.223.239</programlisting>
798d3a52 2771 </example>
eac684ef 2772
d067cab3
DA
2773 <example>
2774 <title>/etc/systemd/network/25-6rd.netdev</title>
2775 <programlisting>[NetDev]
2776Name=6rd-tun
2777Kind=sit
2778MTUBytes=1480
2779
2780[Tunnel]
2781Local=10.65.223.238
2782IPv6RapidDeploymentPrefix=2602::/24</programlisting>
2783 </example>
2784
798d3a52 2785 <example>
6c1695be 2786 <title>/etc/systemd/network/25-gre.netdev</title>
798d3a52 2787 <programlisting>[NetDev]
b35a2909
TG
2788Name=gre-tun
2789Kind=gre
2790MTUBytes=1480
2791
2792[Tunnel]
2793Local=10.65.223.238
2794Remote=10.65.223.239</programlisting>
798d3a52 2795 </example>
b35a2909 2796
21bba27d 2797 <example>
2798 <title>/etc/systemd/network/25-ip6gre.netdev</title>
2799 <programlisting>[NetDev]
2800Name=ip6gre-tun
2801Kind=ip6gre
2802
2803[Tunnel]
2804Key=123</programlisting>
2805 </example>
2806
798d3a52 2807 <example>
6c1695be 2808 <title>/etc/systemd/network/25-vti.netdev</title>
b35a2909 2809
798d3a52 2810 <programlisting>[NetDev]
b35a2909
TG
2811Name=vti-tun
2812Kind=vti
2813MTUBytes=1480
2814
2815[Tunnel]
2816Local=10.65.223.238
2817Remote=10.65.223.239</programlisting>
798d3a52 2818 </example>
b35a2909 2819
798d3a52 2820 <example>
6c1695be 2821 <title>/etc/systemd/network/25-veth.netdev</title>
798d3a52 2822 <programlisting>[NetDev]
b35a2909
TG
2823Name=veth-test
2824Kind=veth
2825
2826[Peer]
2827Name=veth-peer</programlisting>
798d3a52 2828 </example>
b35a2909 2829
d94facdc 2830 <example>
6c1695be 2831 <title>/etc/systemd/network/25-bond.netdev</title>
d94facdc
MH
2832 <programlisting>[NetDev]
2833Name=bond1
2834Kind=bond
2835
2836[Bond]
2837Mode=802.3ad
2838TransmitHashPolicy=layer3+4
2839MIIMonitorSec=1s
2840LACPTransmitRate=fast
2841</programlisting>
2842 </example>
2843
798d3a52 2844 <example>
6c1695be 2845 <title>/etc/systemd/network/25-dummy.netdev</title>
798d3a52 2846 <programlisting>[NetDev]
9e358851
TG
2847Name=dummy-test
2848Kind=dummy
2849MACAddress=12:34:56:78:9a:bc</programlisting>
798d3a52 2850 </example>
20897a0d
AR
2851 <example>
2852 <title>/etc/systemd/network/25-vrf.netdev</title>
037a3ded 2853 <para>Create a VRF interface with table 42.</para>
20897a0d
AR
2854 <programlisting>[NetDev]
2855Name=vrf-test
2856Kind=vrf
798d3a52 2857
20897a0d 2858[VRF]
362f6336 2859Table=42</programlisting>
20897a0d 2860 </example>
42125eda
SS
2861
2862 <example>
2863 <title>/etc/systemd/network/25-macvtap.netdev</title>
2864 <para>Create a MacVTap device.</para>
2865 <programlisting>[NetDev]
2866Name=macvtap-test
2867Kind=macvtap
2868 </programlisting>
2869 </example>
e5719363
JT
2870 <example>
2871 <title>/etc/systemd/network/25-wireguard.netdev</title>
2872 <programlisting>[NetDev]
2873Name=wg0
2874Kind=wireguard
2875
2876[WireGuard]
2877PrivateKey=EEGlnEPYJV//kbvvIqxKkQwOiS+UENyPncC4bF46ong=
2878ListenPort=51820
2879
2880[WireGuardPeer]
2881PublicKey=RDf+LSpeEre7YEIKaxg+wbpsNV7du+ktR99uBEtIiCA=
2882AllowedIPs=fd31:bf08:57cb::/48,192.168.26.0/24
2883Endpoint=wireguard.example.com:51820</programlisting>
2884 </example>
98d20a17 2885
2886 <example>
2887 <title>/etc/systemd/network/27-xfrm.netdev</title>
a15e1a5d 2888 <programlisting>[NetDev]
98d20a17 2889Name=xfrm0
2890Kind=xfrm
2891
2892[Xfrm]
2893Independent=yes</programlisting>
2894 </example>
798d3a52 2895 </refsect1>
488d0ba1 2896
798d3a52
ZJS
2897 <refsect1>
2898 <title>See Also</title>
13a69c12
DT
2899 <para><simplelist type="inline">
2900 <member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
2901 <member><citerefentry><refentrytitle>systemd-networkd</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
2902 <member><citerefentry><refentrytitle>systemd.link</refentrytitle><manvolnum>5</manvolnum></citerefentry></member>
2903 <member><citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry></member>
2904 <member><citerefentry><refentrytitle>systemd-network-generator.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
2905 </simplelist></para>
798d3a52 2906 </refsect1>
eac684ef
TG
2907
2908</refentry>