]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd.netdev.xml
network: add MACsec*Association.KeyFile= setting
[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"
12b42c76 3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
0307f791 4<!-- SPDX-License-Identifier: LGPL-2.1+ -->
eac684ef
TG
5
6<refentry id="systemd.netdev" conditional='ENABLE_NETWORKD'>
7
798d3a52
ZJS
8 <refentryinfo>
9 <title>systemd.network</title>
10 <productname>systemd</productname>
798d3a52
ZJS
11 </refentryinfo>
12
13 <refmeta>
14 <refentrytitle>systemd.netdev</refentrytitle>
15 <manvolnum>5</manvolnum>
16 </refmeta>
17
18 <refnamediv>
19 <refname>systemd.netdev</refname>
20 <refpurpose>Virtual Network Device configuration</refpurpose>
21 </refnamediv>
22
23 <refsynopsisdiv>
24 <para><filename><replaceable>netdev</replaceable>.netdev</filename></para>
25 </refsynopsisdiv>
26
27 <refsect1>
28 <title>Description</title>
29
30 <para>Network setup is performed by
31 <citerefentry><refentrytitle>systemd-networkd</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
32 </para>
33
bac150e9
ZJS
34 <para>The main Virtual Network Device file must have the extension <filename>.netdev</filename>;
35 other extensions are ignored. Virtual network devices are created as soon as networkd is
36 started. If a netdev with the specified name already exists, networkd will use that as-is rather
37 than create its own. Note that the settings of the pre-existing netdev will not be changed by
798d3a52
ZJS
38 networkd.</para>
39
bac150e9
ZJS
40 <para>The <filename>.netdev</filename> files are read from the files located in the system
41 network directory <filename>/usr/lib/systemd/network</filename>, the volatile runtime network
42 directory <filename>/run/systemd/network</filename> and the local administration network
43 directory <filename>/etc/systemd/network</filename>. All configuration files are collectively
44 sorted and processed in lexical order, regardless of the directories in which they live.
45 However, files with identical filenames replace each other. Files in <filename>/etc</filename>
46 have the highest priority, files in <filename>/run</filename> take precedence over files with
47 the same name in <filename>/usr/lib</filename>. This can be used to override a system-supplied
48 configuration file with a local file if needed. As a special case, an empty file (file size 0)
49 or symlink with the same name pointing to <filename>/dev/null</filename> disables the
50 configuration file entirely (it is "masked").</para>
51
52 <para>Along with the netdev file <filename>foo.netdev</filename>, a "drop-in" directory
53 <filename>foo.netdev.d/</filename> may exist. All files with the suffix <literal>.conf</literal>
54 from this directory will be parsed after the file itself is parsed. This is useful to alter or
55 add configuration settings, without having to modify the main configuration file. Each drop-in
56 file must have appropriate section headers.</para>
57
58 <para>In addition to <filename>/etc/systemd/network</filename>, drop-in <literal>.d</literal>
59 directories can be placed in <filename>/usr/lib/systemd/network</filename> or
60 <filename>/run/systemd/network</filename> directories. Drop-in files in
61 <filename>/etc</filename> take precedence over those in <filename>/run</filename> which in turn
62 take precedence over those in <filename>/usr/lib</filename>. Drop-in files under any of these
63 directories take precedence over the main netdev file wherever located. (Of course, since
64 <filename>/run</filename> is temporary and <filename>/usr/lib</filename> is for vendors, it is
65 unlikely drop-ins should be used in either of those places.)</para>
798d3a52
ZJS
66 </refsect1>
67
68 <refsect1>
69 <title>Supported netdev kinds</title>
70
71 <para>The following kinds of virtual network devices may be
72 configured in <filename>.netdev</filename> files:</para>
73
74 <table>
75 <title>Supported kinds of virtual network devices</title>
76
77 <tgroup cols='2'>
78 <colspec colname='kind' />
79 <colspec colname='explanation' />
80 <thead><row>
81 <entry>Kind</entry>
82 <entry>Description</entry>
83 </row></thead>
84 <tbody>
85 <row><entry><varname>bond</varname></entry>
86 <entry>A bond device is an aggregation of all its slave devices. See <ulink url="https://www.kernel.org/doc/Documentation/networking/bonding.txt">Linux Ethernet Bonding Driver HOWTO</ulink> for details.Local configuration</entry></row>
87
88 <row><entry><varname>bridge</varname></entry>
a8eaaee7 89 <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
90
91 <row><entry><varname>dummy</varname></entry>
92 <entry>A dummy device drops all packets sent to it.</entry></row>
93
94 <row><entry><varname>gre</varname></entry>
95 <entry>A Level 3 GRE tunnel over IPv4. See <ulink url="https://tools.ietf.org/html/rfc2784">RFC 2784</ulink> for details.</entry></row>
96
97 <row><entry><varname>gretap</varname></entry>
98 <entry>A Level 2 GRE tunnel over IPv4.</entry></row>
99
2266864b 100 <row><entry><varname>erspan</varname></entry>
d653a359 101 <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.</entry></row>
2266864b 102
798d3a52
ZJS
103 <row><entry><varname>ip6gre</varname></entry>
104 <entry>A Level 3 GRE tunnel over IPv6.</entry></row>
105
106 <row><entry><varname>ip6tnl</varname></entry>
107 <entry>An IPv4 or IPv6 tunnel over IPv6</entry></row>
108
109 <row><entry><varname>ip6gretap</varname></entry>
037a3ded 110 <entry>A Level 2 GRE tunnel over IPv6.</entry></row>
798d3a52
ZJS
111
112 <row><entry><varname>ipip</varname></entry>
113 <entry>An IPv4 over IPv4 tunnel.</entry></row>
114
115 <row><entry><varname>ipvlan</varname></entry>
116 <entry>An ipvlan device is a stacked device which receives packets from its underlying device based on IP address filtering.</entry></row>
117
118 <row><entry><varname>macvlan</varname></entry>
119 <entry>A macvlan device is a stacked device which receives packets from its underlying device based on MAC address filtering.</entry></row>
120
0371f2df
SS
121 <row><entry><varname>macvtap</varname></entry>
122 <entry>A macvtap device is a stacked device which receives packets from its underlying device based on MAC address filtering.</entry></row>
123
798d3a52
ZJS
124 <row><entry><varname>sit</varname></entry>
125 <entry>An IPv6 over IPv4 tunnel.</entry></row>
126
127 <row><entry><varname>tap</varname></entry>
128 <entry>A persistent Level 2 tunnel between a network device and a device node.</entry></row>
129
130 <row><entry><varname>tun</varname></entry>
131 <entry>A persistent Level 3 tunnel between a network device and a device node.</entry></row>
132
133 <row><entry><varname>veth</varname></entry>
a8eaaee7 134 <entry>An Ethernet tunnel between a pair of network devices.</entry></row>
798d3a52
ZJS
135
136 <row><entry><varname>vlan</varname></entry>
137 <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>
138
139 <row><entry><varname>vti</varname></entry>
140 <entry>An IPv4 over IPSec tunnel.</entry></row>
141
5cc0748e
SS
142 <row><entry><varname>vti6</varname></entry>
143 <entry>An IPv6 over IPSec tunnel.</entry></row>
144
798d3a52
ZJS
145 <row><entry><varname>vxlan</varname></entry>
146 <entry>A virtual extensible LAN (vxlan), for connecting Cloud computing deployments.</entry></row>
20897a0d 147
6598e046
SS
148 <row><entry><varname>geneve</varname></entry>
149 <entry>A GEneric NEtwork Virtualization Encapsulation (GENEVE) netdev driver.</entry></row>
150
3a56e697
SS
151 <row><entry><varname>l2tp</varname></entry>
152 <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>
153
81962db7
SS
154 <row><entry><varname>macsec</varname></entry>
155 <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>
156
20897a0d 157 <row><entry><varname>vrf</varname></entry>
92c918b0
SS
158 <entry>A Virtual Routing and Forwarding (<ulink url="https://www.kernel.org/doc/Documentation/networking/vrf.txt">VRF</ulink>) interface to create separate routing and forwarding domains.</entry></row>
159
160 <row><entry><varname>vcan</varname></entry>
ba9fa3bc 161 <entry>The virtual CAN driver (vcan). Similar to the network loopback devices, vcan offers a virtual local CAN interface.</entry></row>
20897a0d 162
d6df583c
SS
163 <row><entry><varname>vxcan</varname></entry>
164 <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.
165 </entry></row>
166
e5719363
JT
167 <row><entry><varname>wireguard</varname></entry>
168 <entry>WireGuard Secure Network Tunnel.</entry></row>
169
56e7fb50
SS
170 <row><entry><varname>netdevsim</varname></entry>
171 <entry> A simulator. This simulated networking device is used for testing various networking APIs and at this time is particularly focused on testing hardware offloading related interfaces.</entry></row>
53cb501a
SS
172
173 <row><entry><varname>fou</varname></entry>
174 <entry>Foo-over-UDP tunneling.</entry></row>
175
798d3a52
ZJS
176 </tbody>
177 </tgroup>
178 </table>
179
180 </refsect1>
181
182 <refsect1>
183 <title>[Match] Section Options</title>
184
185 <para>A virtual network device is only created if the
186 <literal>[Match]</literal> section matches the current
187 environment, or if the section is empty. The following keys are
188 accepted:</para>
189
190 <variablelist class='network-directives'>
191 <varlistentry>
192 <term><varname>Host=</varname></term>
193 <listitem>
d689bbca
YW
194 <para>Matches against the hostname or machine ID of the host. See
195 <literal>ConditionHost=</literal> in
798d3a52 196 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
d689bbca
YW
197 for details. When prefixed with an exclamation mark (<literal>!</literal>), the result is negated.
198 If an empty string is assigned, then previously assigned value is cleared.
798d3a52
ZJS
199 </para>
200 </listitem>
201 </varlistentry>
202 <varlistentry>
203 <term><varname>Virtualization=</varname></term>
204 <listitem>
d689bbca
YW
205 <para>Checks whether the system is executed in a virtualized environment and optionally test
206 whether it is a specific implementation. See <literal>ConditionVirtualization=</literal> in
798d3a52 207 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
d689bbca
YW
208 for details. When prefixed with an exclamation mark (<literal>!</literal>), the result is negated.
209 If an empty string is assigned, then previously assigned value is cleared.
798d3a52
ZJS
210 </para>
211 </listitem>
212 </varlistentry>
213 <varlistentry>
214 <term><varname>KernelCommandLine=</varname></term>
215 <listitem>
d689bbca 216 <para>Checks whether a specific kernel command line option is set. See
798d3a52
ZJS
217 <literal>ConditionKernelCommandLine=</literal> in
218 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
d689bbca
YW
219 for details. When prefixed with an exclamation mark (<literal>!</literal>), the result is negated.
220 If an empty string is assigned, then previously assigned value is cleared.
798d3a52
ZJS
221 </para>
222 </listitem>
223 </varlistentry>
5022f08a
LP
224 <varlistentry>
225 <term><varname>KernelVersion=</varname></term>
226 <listitem>
d689bbca
YW
227 <para>Checks whether the kernel version (as reported by <command>uname -r</command>) matches a
228 certain expression. See <literal>ConditionKernelVersion=</literal> in
229 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
230 for details. When prefixed with an exclamation mark (<literal>!</literal>), the result is negated.
231 If an empty string is assigned, then previously assigned value is cleared.
5022f08a
LP
232 </para>
233 </listitem>
234 </varlistentry>
798d3a52
ZJS
235 <varlistentry>
236 <term><varname>Architecture=</varname></term>
237 <listitem>
d689bbca
YW
238 <para>Checks whether the system is running on a specific architecture. See
239 <literal>ConditionArchitecture=</literal> in
798d3a52 240 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
d689bbca
YW
241 for details. When prefixed with an exclamation mark (<literal>!</literal>), the result is negated.
242 If an empty string is assigned, then previously assigned value is cleared.
798d3a52
ZJS
243 </para>
244 </listitem>
245 </varlistentry>
246 </variablelist>
247
248 </refsect1>
249
250 <refsect1>
251 <title>[NetDev] Section Options</title>
252
253 <para>The <literal>[NetDev]</literal> section accepts the
254 following keys:</para>
255
256 <variablelist class='network-directives'>
257 <varlistentry>
258 <term><varname>Description=</varname></term>
259 <listitem>
260 <para>A free-form description of the netdev.</para>
261 </listitem>
262 </varlistentry>
263 <varlistentry>
264 <term><varname>Name=</varname></term>
265 <listitem>
266 <para>The interface name used when creating the netdev.
267 This option is compulsory.</para>
268 </listitem>
269 </varlistentry>
270 <varlistentry>
271 <term><varname>Kind=</varname></term>
272 <listitem>
273 <para>The netdev kind. This option is compulsory. See the
274 <literal>Supported netdev kinds</literal> section for the
275 valid keys.</para>
276 </listitem>
277 </varlistentry>
278 <varlistentry>
279 <term><varname>MTUBytes=</varname></term>
280 <listitem>
48847676
YW
281 <para>The maximum transmission unit in bytes to set for the device. The usual suffixes K, M, G,
282 are supported and are understood to the base of 1024. For <literal>tun</literal> or
283 <literal>tap</literal> devices, <varname>MTUBytes=</varname> setting is not currently supported in
284 <literal>[NetDev]</literal> section. Please specify it in <literal>[Link]</literal> section of
285 corresponding
286 <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>
287 files.</para>
798d3a52
ZJS
288 </listitem>
289 </varlistentry>
290 <varlistentry>
291 <term><varname>MACAddress=</varname></term>
292 <listitem>
a61b550c
YW
293 <para>The MAC address to use for the device. For <literal>tun</literal> or <literal>tap</literal>
294 devices, setting <varname>MACAddress=</varname> in the <literal>[NetDev]</literal> section is not
295 supported. Please specify it in <literal>[Link]</literal> section of the corresponding
48847676 296 <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>
a61b550c
YW
297 file. If this option is not set, <literal>vlan</literal> devices inherit the MAC address of the
298 physical interface. For other kind of netdevs, if this option is not set, then MAC address is
299 generated based on the interface name and the
300 <citerefentry><refentrytitle>machine-id</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
301 </para>
798d3a52
ZJS
302 </listitem>
303 </varlistentry>
304 </variablelist>
305 </refsect1>
306
3428fe07
SS
307 <refsect1>
308 <title>[Bridge] Section Options</title>
309
310 <para>The <literal>[Bridge]</literal> section only applies for
311 netdevs of kind <literal>bridge</literal>, and accepts the
a8eaaee7 312 following keys:</para>
3428fe07
SS
313
314 <variablelist class='network-directives'>
315 <varlistentry>
316 <term><varname>HelloTimeSec=</varname></term>
317 <listitem>
a8eaaee7 318 <para>HelloTimeSec specifies the number of seconds between two hello packets
3428fe07
SS
319 sent out by the root bridge and the designated bridges. Hello packets are
320 used to communicate information about the topology throughout the entire
321 bridged local area network.</para>
322 </listitem>
323 </varlistentry>
324 <varlistentry>
325 <term><varname>MaxAgeSec=</varname></term>
326 <listitem>
327 <para>MaxAgeSec specifies the number of seconds of maximum message age.
328 If the last seen (received) hello packet is more than this number of
329 seconds old, the bridge in question will start the takeover procedure
330 in attempt to become the Root Bridge itself.</para>
331 </listitem>
332 </varlistentry>
333 <varlistentry>
334 <term><varname>ForwardDelaySec=</varname></term>
335 <listitem>
336 <para>ForwardDelaySec specifies the number of seconds spent in each
337 of the Listening and Learning states before the Forwarding state is entered.</para>
338 </listitem>
339 </varlistentry>
c7440e74
TJ
340 <varlistentry>
341 <term><varname>AgeingTimeSec=</varname></term>
342 <listitem>
343 <para>This specifies the number of seconds a MAC Address will be kept in
d23a0044 344 the forwarding database after having a packet received from this MAC Address.</para>
c7440e74
TJ
345 </listitem>
346 </varlistentry>
347 <varlistentry>
348 <term><varname>Priority=</varname></term>
349 <listitem>
350 <para>The priority of the bridge. An integer between 0 and 65535. A lower value
351 means higher priority. The bridge having the lowest priority will be elected as root bridge.</para>
352 </listitem>
353 </varlistentry>
c4819961
JC
354 <varlistentry>
355 <term><varname>GroupForwardMask=</varname></term>
356 <listitem>
357 <para>A 16-bit bitmask represented as an integer which allows forwarding of link
358 local frames with 802.1D reserved addresses (01:80:C2:00:00:0X). A logical AND
359 is performed between the specified bitmask and the exponentiation of 2^X, the
360 lower nibble of the last octet of the MAC address. For example, a value of 8
361 would allow forwarding of frames addressed to 01:80:C2:00:00:03 (802.1X PAE).</para>
362 </listitem>
363 </varlistentry>
c7440e74
TJ
364 <varlistentry>
365 <term><varname>DefaultPVID=</varname></term>
366 <listitem>
0d6c68eb
TJ
367 <para>This specifies the default port VLAN ID of a newly attached bridge port.
368 Set this to an integer in the range 1–4094 or <literal>none</literal> to disable the PVID.</para>
c7440e74
TJ
369 </listitem>
370 </varlistentry>
3fef7a3f
SS
371 <varlistentry>
372 <term><varname>MulticastQuerier=</varname></term>
373 <listitem>
9b6ffef3 374 <para>Takes a boolean. This setting controls the IFLA_BR_MCAST_QUERIER option in the kernel.
3fef7a3f
SS
375 If enabled, the kernel will send general ICMP queries from a zero source address.
376 This feature should allow faster convergence on startup, but it causes some
377 multicast-aware switches to misbehave and disrupt forwarding of multicast packets.
025314d9 378 When unset, the kernel's default will be used.
3fef7a3f
SS
379 </para>
380 </listitem>
381 </varlistentry>
6df6d898
SS
382 <varlistentry>
383 <term><varname>MulticastSnooping=</varname></term>
384 <listitem>
9b6ffef3 385 <para>Takes a boolean. This setting controls the IFLA_BR_MCAST_SNOOPING option in the kernel.
6df6d898 386 If enabled, IGMP snooping monitors the Internet Group Management Protocol (IGMP) traffic
025314d9 387 between hosts and multicast routers. When unset, the kernel's default will be used.
6df6d898
SS
388 </para>
389 </listitem>
390 </varlistentry>
c6f8d17d
TJ
391 <varlistentry>
392 <term><varname>VLANFiltering=</varname></term>
393 <listitem>
9b6ffef3 394 <para>Takes a boolean. This setting controls the IFLA_BR_VLAN_FILTERING option in the kernel.
025314d9 395 If enabled, the bridge will be started in VLAN-filtering mode. When unset, the kernel's default will be used.
c6f8d17d
TJ
396 </para>
397 </listitem>
398 </varlistentry>
b760a9af
SS
399 <varlistentry>
400 <term><varname>STP=</varname></term>
401 <listitem>
9b6ffef3 402 <para>Takes a boolean. This enables the bridge's Spanning Tree Protocol (STP).
025314d9 403 When unset, the kernel's default will be used.
b760a9af
SS
404 </para>
405 </listitem>
406 </varlistentry>
3428fe07 407 </variablelist>
3428fe07
SS
408 </refsect1>
409
798d3a52
ZJS
410 <refsect1>
411 <title>[VLAN] Section Options</title>
412
413 <para>The <literal>[VLAN]</literal> section only applies for
414 netdevs of kind <literal>vlan</literal>, and accepts the
415 following key:</para>
416
417 <variablelist class='network-directives'>
418 <varlistentry>
419 <term><varname>Id=</varname></term>
420 <listitem>
421 <para>The VLAN ID to use. An integer in the range 0–4094.
422 This option is compulsory.</para>
423 </listitem>
424 </varlistentry>
c8b21184
SS
425 <varlistentry>
426 <term><varname>GVRP=</varname></term>
427 <listitem>
9b6ffef3
YW
428 <para>Takes a boolean. The Generic VLAN Registration Protocol (GVRP) is a protocol that
429 allows automatic learning of VLANs on a network.
025314d9
YW
430 When unset, the kernel's default will be used.
431 </para>
c8b21184
SS
432 </listitem>
433 </varlistentry>
6c1ff21b
SS
434 <varlistentry>
435 <term><varname>MVRP=</varname></term>
436 <listitem>
9b6ffef3 437 <para>Takes a boolean. Multiple VLAN Registration Protocol (MVRP) formerly known as GARP VLAN
6c1ff21b
SS
438 Registration Protocol (GVRP) is a standards-based Layer 2 network protocol,
439 for automatic configuration of VLAN information on switches. It was defined
9b6ffef3 440 in the 802.1ak amendment to 802.1Q-2005. When unset, the kernel's default will be used.
025314d9 441 </para>
6c1ff21b
SS
442 </listitem>
443 </varlistentry>
444 <varlistentry>
445 <term><varname>LooseBinding=</varname></term>
446 <listitem>
9b6ffef3 447 <para>Takes a boolean. The VLAN loose binding mode, in which only the operational state is passed
6c1ff21b 448 from the parent to the associated VLANs, but the VLAN device state is not changed.
9b6ffef3 449 When unset, the kernel's default will be used.</para>
6c1ff21b
SS
450 </listitem>
451 </varlistentry>
452 <varlistentry>
453 <term><varname>ReorderHeader=</varname></term>
454 <listitem>
9b6ffef3
YW
455 <para>Takes a boolean. The VLAN reorder header is set VLAN interfaces behave like physical interfaces.
456 When unset, the kernel's default will be used.</para>
6c1ff21b
SS
457 </listitem>
458 </varlistentry>
798d3a52 459 </variablelist>
798d3a52
ZJS
460 </refsect1>
461
462 <refsect1>
463 <title>[MACVLAN] Section Options</title>
464
465 <para>The <literal>[MACVLAN]</literal> section only applies for
466 netdevs of kind <literal>macvlan</literal>, and accepts the
467 following key:</para>
468
469 <variablelist class='network-directives'>
470 <varlistentry>
471 <term><varname>Mode=</varname></term>
472 <listitem>
473 <para>The MACVLAN mode to use. The supported options are
474 <literal>private</literal>,
475 <literal>vepa</literal>,
476 <literal>bridge</literal>, and
477 <literal>passthru</literal>.
478 </para>
479 </listitem>
480 </varlistentry>
481 </variablelist>
482
483 </refsect1>
484
0371f2df
SS
485 <refsect1>
486 <title>[MACVTAP] Section Options</title>
487
488 <para>The <literal>[MACVTAP]</literal> section applies for
489 netdevs of kind <literal>macvtap</literal> and accepts the
96d49011 490 same key as <literal>[MACVLAN]</literal>.</para>
0371f2df
SS
491
492 </refsect1>
493
798d3a52
ZJS
494 <refsect1>
495 <title>[IPVLAN] Section Options</title>
496
497 <para>The <literal>[IPVLAN]</literal> section only applies for
498 netdevs of kind <literal>ipvlan</literal>, and accepts the
499 following key:</para>
500
501 <variablelist class='network-directives'>
502 <varlistentry>
503 <term><varname>Mode=</varname></term>
504 <listitem>
505 <para>The IPVLAN mode to use. The supported options are
d384826f
SS
506 <literal>L2</literal>,<literal>L3</literal> and <literal>L3S</literal>.
507 </para>
508 </listitem>
509 </varlistentry>
510 <varlistentry>
511 <term><varname>Flags=</varname></term>
512 <listitem>
513 <para>The IPVLAN flags to use. The supported options are
514 <literal>bridge</literal>,<literal>private</literal> and <literal>vepa</literal>.
798d3a52
ZJS
515 </para>
516 </listitem>
517 </varlistentry>
518 </variablelist>
519
520 </refsect1>
521
522 <refsect1>
523 <title>[VXLAN] Section Options</title>
524 <para>The <literal>[VXLAN]</literal> section only applies for
525 netdevs of kind <literal>vxlan</literal>, and accepts the
526 following keys:</para>
527
528 <variablelist class='network-directives'>
529 <varlistentry>
530 <term><varname>Id=</varname></term>
531 <listitem>
532 <para>The VXLAN ID to use.</para>
533 </listitem>
534 </varlistentry>
535 <varlistentry>
d35e5d37 536 <term><varname>Remote=</varname></term>
798d3a52 537 <listitem>
bf443be9 538 <para>Configures destination IP address.</para>
798d3a52
ZJS
539 </listitem>
540 </varlistentry>
541 <varlistentry>
d35e5d37
SS
542 <term><varname>Local=</varname></term>
543 <listitem>
544 <para>Configures local IP address.</para>
545 </listitem>
546 </varlistentry>
547 <varlistentry>
798d3a52
ZJS
548 <term><varname>TOS=</varname></term>
549 <listitem>
550 <para>The Type Of Service byte value for a vxlan interface.</para>
551 </listitem>
552 </varlistentry>
553 <varlistentry>
554 <term><varname>TTL=</varname></term>
555 <listitem>
556 <para>A fixed Time To Live N on Virtual eXtensible Local
b938cb90 557 Area Network packets. N is a number in the range 1–255. 0
798d3a52
ZJS
558 is a special value meaning that packets inherit the TTL
559 value.</para>
560 </listitem>
561 </varlistentry>
562 <varlistentry>
563 <term><varname>MacLearning=</varname></term>
564 <listitem>
9b6ffef3 565 <para>Takes a boolean. When true, enables dynamic MAC learning
798d3a52
ZJS
566 to discover remote MAC addresses.</para>
567 </listitem>
568 </varlistentry>
569 <varlistentry>
570 <term><varname>FDBAgeingSec=</varname></term>
571 <listitem>
572 <para>The lifetime of Forwarding Database entry learnt by
b938cb90 573 the kernel, in seconds.</para>
798d3a52
ZJS
574 </listitem>
575 </varlistentry>
576 <varlistentry>
3d276dd2
SS
577 <term><varname>MaximumFDBEntries=</varname></term>
578 <listitem>
579 <para>Configures maximum number of FDB entries.</para>
580 </listitem>
581 </varlistentry>
798d3a52 582 <varlistentry>
7dd6974c 583 <term><varname>ReduceARPProxy=</varname></term>
798d3a52 584 <listitem>
9b6ffef3 585 <para>Takes a boolean. When true, bridge-connected VXLAN tunnel
7dd6974c
SS
586 endpoint answers ARP requests from the local bridge on behalf
587 of remote Distributed Overlay Virtual Ethernet
588 <ulink url="https://en.wikipedia.org/wiki/Distributed_Overlay_Virtual_Ethernet">
589 (DVOE)</ulink> clients. Defaults to false.</para>
798d3a52
ZJS
590 </listitem>
591 </varlistentry>
592 <varlistentry>
593 <term><varname>L2MissNotification=</varname></term>
594 <listitem>
9b6ffef3 595 <para>Takes a boolean. When true, enables netlink LLADDR miss
798d3a52
ZJS
596 notifications.</para>
597 </listitem>
598 </varlistentry>
599 <varlistentry>
600 <term><varname>L3MissNotification=</varname></term>
601 <listitem>
9b6ffef3 602 <para>Takes a boolean. When true, enables netlink IP address miss
798d3a52
ZJS
603 notifications.</para>
604 </listitem>
605 </varlistentry>
606 <varlistentry>
607 <term><varname>RouteShortCircuit=</varname></term>
608 <listitem>
9b6ffef3 609 <para>Takes a boolean. When true, route short circuiting is turned
798d3a52
ZJS
610 on.</para>
611 </listitem>
612 </varlistentry>
cffacc74 613 <varlistentry>
53c06862 614 <term><varname>UDPChecksum=</varname></term>
cffacc74 615 <listitem>
9b6ffef3 616 <para>Takes a boolean. When true, transmitting UDP checksums when doing VXLAN/IPv4 is turned on.</para>
cffacc74
SS
617 </listitem>
618 </varlistentry>
619 <varlistentry>
620 <term><varname>UDP6ZeroChecksumTx=</varname></term>
621 <listitem>
9b6ffef3 622 <para>Takes a boolean. When true, sending zero checksums in VXLAN/IPv6 is turned on.</para>
cffacc74
SS
623 </listitem>
624 </varlistentry>
625 <varlistentry>
53c06862 626 <term><varname>UDP6ZeroChecksumRx=</varname></term>
cffacc74 627 <listitem>
9b6ffef3 628 <para>Takes a boolean. When true, receiving zero checksums in VXLAN/IPv6 is turned on.</para>
16441027
SS
629 </listitem>
630 </varlistentry>
631 <varlistentry>
53c06862 632 <term><varname>RemoteChecksumTx=</varname></term>
16441027 633 <listitem>
9b6ffef3 634 <para>Takes a boolean. When true, remote transmit checksum offload of VXLAN is turned on.</para>
16441027
SS
635 </listitem>
636 </varlistentry>
637 <varlistentry>
53c06862 638 <term><varname>RemoteChecksumRx=</varname></term>
16441027 639 <listitem>
9b6ffef3 640 <para>Takes a boolean. When true, remote receive checksum offload in VXLAN is turned on.</para>
cffacc74
SS
641 </listitem>
642 </varlistentry>
8b414e52
SS
643 <varlistentry>
644 <term><varname>GroupPolicyExtension=</varname></term>
645 <listitem>
9b6ffef3 646 <para>Takes a boolean. When true, it enables Group Policy VXLAN extension security label mechanism
b938cb90 647 across network peers based on VXLAN. For details about the Group Policy VXLAN, see the
8b414e52
SS
648 <ulink url="https://tools.ietf.org/html/draft-smith-vxlan-group-policy">
649 VXLAN Group Policy </ulink> document. Defaults to false.</para>
650 </listitem>
651 </varlistentry>
ea0288d1
SS
652 <varlistentry>
653 <term><varname>DestinationPort=</varname></term>
654 <listitem>
655 <para>Configures the default destination UDP port on a per-device basis.
656 If destination port is not specified then Linux kernel default will be used.
98616735
SS
657 Set destination port 4789 to get the IANA assigned value. If not set or if the
658 destination port is assigned the empty string the default port of 4789 is used.</para>
ea0288d1
SS
659 </listitem>
660 </varlistentry>
661 <varlistentry>
662 <term><varname>PortRange=</varname></term>
663 <listitem>
664 <para>Configures VXLAN port range. VXLAN bases source
665 UDP port based on flow to help the receiver to be able
666 to load balance based on outer header flow. It
667 restricts the port range to the normal UDP local
668 ports, and allows overriding via configuration.</para>
669 </listitem>
670 </varlistentry>
d8653945
SS
671 <varlistentry>
672 <term><varname>FlowLabel=</varname></term>
673 <listitem>
674 <para>Specifies the flow label to use in outgoing packets.
675 The valid range is 0-1048575.
676 </para>
677 </listitem>
678 </varlistentry>
798d3a52
ZJS
679 </variablelist>
680 </refsect1>
6598e046
SS
681 <refsect1>
682 <title>[GENEVE] Section Options</title>
683 <para>The <literal>[GENEVE]</literal> section only applies for
684 netdevs of kind <literal>geneve</literal>, and accepts the
685 following keys:</para>
686
687 <variablelist class='network-directives'>
688 <varlistentry>
689 <term><varname>Id=</varname></term>
690 <listitem>
785889e5 691 <para>Specifies the Virtual Network Identifier (VNI) to use. Ranges [0-16777215].</para>
6598e046
SS
692 </listitem>
693 </varlistentry>
694 <varlistentry>
695 <term><varname>Remote=</varname></term>
696 <listitem>
697 <para>Specifies the unicast destination IP address to use in outgoing packets.</para>
698 </listitem>
699 </varlistentry>
700 <varlistentry>
701 <term><varname>TOS=</varname></term>
702 <listitem>
98616735 703 <para>Specifies the TOS value to use in outgoing packets. Ranges [1-255].</para>
6598e046
SS
704 </listitem>
705 </varlistentry>
706 <varlistentry>
707 <term><varname>TTL=</varname></term>
708 <listitem>
98616735 709 <para>Specifies the TTL value to use in outgoing packets. Ranges [1-255].</para>
6598e046
SS
710 </listitem>
711 </varlistentry>
712 <varlistentry>
713 <term><varname>UDPChecksum=</varname></term>
714 <listitem>
9b6ffef3 715 <para>Takes a boolean. When true, specifies if UDP checksum is calculated for transmitted packets over IPv4.</para>
6598e046
SS
716 </listitem>
717 </varlistentry>
718 <varlistentry>
719 <term><varname>UDP6ZeroChecksumTx=</varname></term>
720 <listitem>
9b6ffef3 721 <para>Takes a boolean. When true, skip UDP checksum calculation for transmitted packets over IPv6.</para>
6598e046
SS
722 </listitem>
723 </varlistentry>
724 <varlistentry>
725 <term><varname>UDP6ZeroChecksumRx=</varname></term>
726 <listitem>
9b6ffef3 727 <para>Takes a boolean. When true, allows incoming UDP packets over IPv6 with zero checksum field.</para>
6598e046
SS
728 </listitem>
729 </varlistentry>
730 <varlistentry>
731 <term><varname>DestinationPort=</varname></term>
732 <listitem>
98616735
SS
733 <para>Specifies destination port. Defaults to 6081. If not set or assigned the empty string, the default
734 port of 6081 is used.</para>
6598e046
SS
735 </listitem>
736 </varlistentry>
737 <varlistentry>
738 <term><varname>FlowLabel=</varname></term>
739 <listitem>
740 <para>Specifies the flow label to use in outgoing packets.</para>
741 </listitem>
742 </varlistentry>
743 </variablelist>
744 </refsect1>
3a56e697
SS
745 <refsect1>
746 <title>[L2TP] Section Options</title>
747 <para>The <literal>[L2TP]</literal> section only applies for
748 netdevs of kind <literal>l2tp</literal>, and accepts the
749 following keys:</para>
750
751 <variablelist class='network-directives'>
752 <varlistentry>
753 <term><varname>TunnelId=</varname></term>
754 <listitem>
755 <para>Specifies the tunnel id. The value used must match the <literal>PeerTunnelId=</literal> value being used at the peer.
756 Ranges a number between 1 and 4294967295). This option is compulsory.</para>
757 </listitem>
758 </varlistentry>
759 <varlistentry>
760 <term><varname>PeerTunnelId=</varname></term>
761 <listitem>
762 <para>Specifies the peer tunnel id. The value used must match the <literal>PeerTunnelId=</literal> value being used at the peer.
763 Ranges a number between 1 and 4294967295). This option is compulsory.</para>
764 </listitem>
765 </varlistentry>
766 <varlistentry>
767 <term><varname>Remote=</varname></term>
768 <listitem>
769 <para>Specifies the IP address of the remote peer. This option is compulsory.</para>
770 </listitem>
771 </varlistentry>
772 <varlistentry>
773 <term><varname>Local=</varname></term>
774 <listitem>
d053d08a
YW
775 <para>Specifies the IP address of the local interface. Takes an IP address, or the special values
776 <literal>auto</literal>, <literal>static</literal>, or <literal>dynamic</literal>. When an address
777 is set, then the local interface must have the address. If <literal>auto</literal>, then one of the
778 addresses on the local interface is used. Similarly, if <literal>static</literal> or
779 <literal>dynamic</literal> is set, then one of the static or dynamic addresses on the local
780 interface is used. Defaults to <literal>auto</literal>.</para>
3a56e697
SS
781 </listitem>
782 </varlistentry>
783 <varlistentry>
784 <term><varname>EncapsulationType=</varname></term>
785 <listitem>
786 <para>Specifies the encapsulation type of the tunnel. Takes one of <literal>udp</literal> or <literal>ip</literal>.</para>
787 </listitem>
788 </varlistentry>
789 <varlistentry>
790 <term><varname>UDPSourcePort=</varname></term>
791 <listitem>
792 <para>Specifies the UDP source port to be used for the tunnel. When UDP encapsulation is selected it's mandotory. Ignored when ip
793 encapsulation is selected.</para>
794 </listitem>
795 </varlistentry>
796 <varlistentry>
797 <term><varname>DestinationPort=</varname></term>
798 <listitem>
799 <para>Specifies destination port. When UDP encapsulation is selected it's mandotory. Ignored when ip
800 encapsulation is selected.</para>
801 </listitem>
802 </varlistentry>
803 <varlistentry>
804 <term><varname>UDPChecksum=</varname></term>
805 <listitem>
806 <para>Takes a boolean. When true, specifies if UDP checksum is calculated for transmitted packets over IPv4.</para>
807 </listitem>
808 </varlistentry>
809 <varlistentry>
810 <term><varname>UDP6ZeroChecksumTx=</varname></term>
811 <listitem>
812 <para>Takes a boolean. When true, skip UDP checksum calculation for transmitted packets over IPv6.</para>
813 </listitem>
814 </varlistentry>
815 <varlistentry>
816 <term><varname>UDP6ZeroChecksumRx=</varname></term>
817 <listitem>
818 <para>Takes a boolean. When true, allows incoming UDP packets over IPv6 with zero checksum field.</para>
819 </listitem>
820 </varlistentry>
821 </variablelist>
822 </refsect1>
823 <refsect1>
824 <title>[L2TPSession] Section Options</title>
825 <para>The <literal>[L2TPSession]</literal> section only applies for
826 netdevs of kind <literal>l2tp</literal>, and accepts the
827 following keys:</para>
828 <variablelist class='network-directives'>
829 <varlistentry>
830 <term><varname>Name=</varname></term>
831 <listitem>
832 <para>Specifies the name of the sesssion. This option is compulsory.</para>
833 </listitem>
834 </varlistentry>
835 <varlistentry>
836 <term><varname>SessionId=</varname></term>
837 <listitem>
838 <para>Specifies the sesssion id. The value used must match the <literal>SessionId=</literal> value being used at the peer.
839 Ranges a number between 1 and 4294967295). This option is compulsory.</para>
840 </listitem>
841 </varlistentry>
842 <varlistentry>
843 <term><varname>PeerSessionId=</varname></term>
844 <listitem>
845 <para>Specifies the peer session id. The value used must match the <literal>PeerSessionId=</literal> value being used at the peer.
846 Ranges a number between 1 and 4294967295). This option is compulsory.</para>
847 </listitem>
848 </varlistentry>
849 <varlistentry>
850 <term><varname>Layer2SpecificHeader=</varname></term>
851 <listitem>
852 <para>Specifies layer2specific header type of the session. One of <literal>none</literal> or <literal>default</literal>. Defaults to <literal>default</literal>.</para>
853 </listitem>
854 </varlistentry>
855 </variablelist>
856 </refsect1>
81962db7
SS
857 <refsect1>
858 <title>[MACsec] Section Options</title>
859 <para>The <literal>[MACsec]</literal> section only applies for network devices of kind
860 <literal>macsec</literal>, and accepts the following keys:</para>
861
862 <variablelist class='network-directives'>
863 <varlistentry>
864 <term><varname>Port=</varname></term>
865 <listitem>
866 <para>Specifies the port to be used for the MACsec transmit channel. The port is used to make
867 secure channel identifier (SCI). Takes a value between 1 and 65535. Defaults to unset.
868 </para>
869 </listitem>
870 </varlistentry>
871 <varlistentry>
872 <term><varname>Encrypt=</varname></term>
873 <listitem>
874 <para>Takes a boolean. When true, enable encryption. Defaults to unset.</para>
875 </listitem>
876 </varlistentry>
877 </variablelist>
878 </refsect1>
879 <refsect1>
880 <title>[MACsecReceiveChannel] Section Options</title>
881 <para>The <literal>[MACsecReceiveChannel]</literal> section only applies for network devices of
882 kind <literal>macsec</literal>, and accepts the following keys:</para>
883
884 <variablelist class='network-directives'>
885 <varlistentry>
886 <term><varname>Port=</varname></term>
887 <listitem>
888 <para>Specifies the port to be used for the MACsec receive channel. The port is used to make
889 secure channel identifier (SCI). Takes a value between 1 and 65535. This option is
890 compulsory, and is not set by default.</para>
891 </listitem>
892 </varlistentry>
893 <varlistentry>
894 <term><varname>MACAddress=</varname></term>
895 <listitem>
896 <para>Specifies the MAC address to be used for the MACsec receive channel. The MAC address
897 used to make secure channel identifier (SCI). This option is compulsory, and is not set by
898 default.</para>
899 </listitem>
900 </varlistentry>
901 </variablelist>
902 </refsect1>
903 <refsect1>
904 <title>[MACsecTransmitAssociation] Section Options</title>
905 <para>The <literal>[MACsecTransmitAssociation]</literal> section only applies for network devices
906 of kind <literal>macsec</literal>, and accepts the following keys:</para>
907
908 <variablelist class='network-directives'>
909 <varlistentry>
910 <term><varname>PacketNumber=</varname></term>
911 <listitem>
912 <para>Specifies the packet number to be used for replay protection and the construction of
913 the initialization vector (along with the secure channel identifier [SCI]). Takes a value
914 between 1-4,294,967,295. Defaults to unset.
915 </para>
916 </listitem>
917 </varlistentry>
918 <varlistentry>
919 <term><varname>KeyId=</varname></term>
920 <listitem>
921 <para>Specifies the identification for the key. Takes a number between 0-255. This option
922 is compulsory, and is not set by default.</para>
923 </listitem>
924 </varlistentry>
925 <varlistentry>
926 <term><varname>Key=</varname></term>
927 <listitem>
928 <para>Specifies the encryption key used in the transmission channel. The same key must be
929 configured on the peer’s matching receive channel. This option is compulsory, and is not set
930 by default. Takes a 128-bit key encoded in a hexadecimal string, for example
931 <literal>dffafc8d7b9a43d5b9a3dfbbf6a30c16</literal>.</para>
932 </listitem>
933 </varlistentry>
eb4705fb
YW
934 <varlistentry>
935 <term><varname>KeyFile=</varname></term>
936 <listitem>
937 <para>Takes a absolute path to a file which contains a 128-bit key encoded in a hexadecimal
938 string, which will be used in the transmission channel. When this option is specified,
939 <varname>Key=</varname> is ignored. Note that the file must be readable by the user
940 <literal>systemd-network</literal>, so it should be, e.g., owned by
941 <literal>root:systemd-network</literal> with a <literal>0640</literal> file mode.</para>
942 </listitem>
943 </varlistentry>
81962db7
SS
944 </variablelist>
945 </refsect1>
946 <refsect1>
947 <title>[MACsecReceiveAssociation] Section Options</title>
948 <para>The <literal>[MACsecReceiveAssociation]</literal> section only applies for
949 network devices of kind <literal>macsec</literal>, and accepts the
950 following keys:</para>
951
952 <variablelist class='network-directives'>
953 <varlistentry>
954 <term><varname>Port=</varname></term>
955 <listitem>
956 <para>Accepts the same key in <literal>[MACsecReceiveChannel]</literal> section.</para>
957 </listitem>
958 </varlistentry>
959 <varlistentry>
960 <term><varname>MACAddress=</varname></term>
961 <listitem>
962 <para>Accepts the same key in <literal>[MACsecReceiveChannel]</literal> section.</para>
963 </listitem>
964 </varlistentry>
965 <varlistentry>
966 <term><varname>PacketNumber=</varname></term>
967 <listitem>
968 <para>Accepts the same key in <literal>[MACsecTransmitAssociation]</literal> section.</para>
969 </listitem>
970 </varlistentry>
971 <varlistentry>
972 <term><varname>KeyId=</varname></term>
973 <listitem>
974 <para>Accepts the same key in <literal>[MACsecTransmitAssociation]</literal> section.</para>
975 </listitem>
976 </varlistentry>
977 <varlistentry>
978 <term><varname>Key=</varname></term>
979 <listitem>
980 <para>Accepts the same key in <literal>[MACsecTransmitAssociation]</literal> section.</para>
981 </listitem>
982 </varlistentry>
eb4705fb
YW
983 <varlistentry>
984 <term><varname>KeyFile=</varname></term>
985 <listitem>
986 <para>Accepts the same key in <literal>[MACsecTransmitAssociation]</literal> section.</para>
987 </listitem>
988 </varlistentry>
81962db7
SS
989 </variablelist>
990 </refsect1>
798d3a52
ZJS
991 <refsect1>
992 <title>[Tunnel] Section Options</title>
993
994 <para>The <literal>[Tunnel]</literal> section only applies for
995 netdevs of kind
996 <literal>ipip</literal>,
997 <literal>sit</literal>,
998 <literal>gre</literal>,
999 <literal>gretap</literal>,
1000 <literal>ip6gre</literal>,
1001 <literal>ip6gretap</literal>,
5cc0748e 1002 <literal>vti</literal>,
af555aa3
YW
1003 <literal>vti6</literal>,
1004 <literal>ip6tnl</literal>, and
1005 <literal>erspan</literal> and accepts
798d3a52
ZJS
1006 the following keys:</para>
1007
1008 <variablelist class='network-directives'>
1009 <varlistentry>
1010 <term><varname>Local=</varname></term>
1011 <listitem>
8643885f
YW
1012 <para>A static local address for tunneled packets. It must be an address on another interface of
1013 this host, or the special value <literal>any</literal>.</para>
798d3a52
ZJS
1014 </listitem>
1015 </varlistentry>
1016 <varlistentry>
1017 <term><varname>Remote=</varname></term>
1018 <listitem>
8643885f
YW
1019 <para>The remote endpoint of the tunnel. Takes an IP address or the special value
1020 <literal>any</literal>.</para>
798d3a52
ZJS
1021 </listitem>
1022 </varlistentry>
1023 <varlistentry>
1024 <term><varname>TOS=</varname></term>
1025 <listitem>
1026 <para>The Type Of Service byte value for a tunnel interface.
b938cb90 1027 For details about the TOS, see the
798d3a52
ZJS
1028 <ulink url="http://tools.ietf.org/html/rfc1349"> Type of
1029 Service in the Internet Protocol Suite </ulink> document.
1030 </para>
1031 </listitem>
1032 </varlistentry>
1033 <varlistentry>
1034 <term><varname>TTL=</varname></term>
1035 <listitem>
1036 <para>A fixed Time To Live N on tunneled packets. N is a
b938cb90 1037 number in the range 1–255. 0 is a special value meaning that
798d3a52 1038 packets inherit the TTL value. The default value for IPv4
b938cb90 1039 tunnels is: inherit. The default value for IPv6 tunnels is
798d3a52
ZJS
1040 64.</para>
1041 </listitem>
1042 </varlistentry>
1043 <varlistentry>
1044 <term><varname>DiscoverPathMTU=</varname></term>
1045 <listitem>
9b6ffef3 1046 <para>Takes a boolean. When true, enables Path MTU Discovery on
798d3a52
ZJS
1047 the tunnel.</para>
1048 </listitem>
1049 </varlistentry>
276de526
SS
1050 <varlistentry>
1051 <term><varname>IPv6FlowLabel=</varname></term>
1052 <listitem>
a8eaaee7 1053 <para>Configures the 20-bit flow label (see <ulink url="https://tools.ietf.org/html/rfc6437">
276de526 1054 RFC 6437</ulink>) field in the IPv6 header (see <ulink url="https://tools.ietf.org/html/rfc2460">
a8eaaee7
JE
1055 RFC 2460</ulink>), which is used by a node to label packets of a flow.
1056 It is only used for IPv6 tunnels.
1057 A flow label of zero is used to indicate packets that have
1058 not been labeled.
1059 It can be configured to a value in the range 0–0xFFFFF, or be
1060 set to <literal>inherit</literal>, in which case the original flowlabel is used.</para>
276de526
SS
1061 </listitem>
1062 </varlistentry>
9b0ca30a 1063 <varlistentry>
a9b70f9d 1064 <term><varname>CopyDSCP=</varname></term>
9b0ca30a 1065 <listitem>
9b6ffef3 1066 <para>Takes a boolean. When true, the Differentiated Service Code
3cf4bcab 1067 Point (DSCP) field will be copied to the inner header from
a9b70f9d 1068 outer header during the decapsulation of an IPv6 tunnel
3cf4bcab
ZJS
1069 packet. DSCP is a field in an IP packet that enables different
1070 levels of service to be assigned to network traffic.
1071 Defaults to <literal>no</literal>.
9b0ca30a
SS
1072 </para>
1073 </listitem>
1074 </varlistentry>
dae398a8
SS
1075 <varlistentry>
1076 <term><varname>EncapsulationLimit=</varname></term>
1077 <listitem>
1078 <para>The Tunnel Encapsulation Limit option specifies how many additional
1079 levels of encapsulation are permitted to be prepended to the packet.
1080 For example, a Tunnel Encapsulation Limit option containing a limit
1081 value of zero means that a packet carrying that option may not enter
1082 another tunnel before exiting the current tunnel.
1083 (see <ulink url="https://tools.ietf.org/html/rfc2473#section-4.1.1"> RFC 2473</ulink>).
b938cb90 1084 The valid range is 0–255 and <literal>none</literal>. Defaults to 4.
dae398a8
SS
1085 </para>
1086 </listitem>
1087 </varlistentry>
1d710029
SS
1088 <varlistentry>
1089 <term><varname>Key=</varname></term>
1090 <listitem>
1091 <para>The <varname>Key=</varname> parameter specifies the same key to use in
1092 both directions (<varname>InputKey=</varname> and <varname>OutputKey=</varname>).
1093 The <varname>Key=</varname> is either a number or an IPv4 address-like dotted quad.
1094 It is used as mark-configured SAD/SPD entry as part of the lookup key (both in data
1095 and control path) in ip xfrm (framework used to implement IPsec protocol).
1096 See <ulink url="http://man7.org/linux/man-pages/man8/ip-xfrm.8.html">
c65c01c4
YW
1097 ip-xfrm — transform configuration</ulink> for details. It is only used for VTI/VTI6,
1098 GRE, GRETAP, and ERSPAN tunnels.</para>
1d710029
SS
1099 </listitem>
1100 </varlistentry>
1101 <varlistentry>
1102 <term><varname>InputKey=</varname></term>
1103 <listitem>
1104 <para>The <varname>InputKey=</varname> parameter specifies the key to use for input.
c65c01c4
YW
1105 The format is same as <varname>Key=</varname>. It is only used for VTI/VTI6, GRE, GRETAP,
1106 and ERSPAN tunnels.</para>
1d710029
SS
1107 </listitem>
1108 </varlistentry>
1109 <varlistentry>
1110 <term><varname>OutputKey=</varname></term>
1111 <listitem>
1112 <para>The <varname>OutputKey=</varname> parameter specifies the key to use for output.
c65c01c4
YW
1113 The format is same as <varname>Key=</varname>. It is only used for VTI/VTI6, GRE, GRETAP,
1114 and ERSPAN tunnels.</para>
1d710029
SS
1115 </listitem>
1116 </varlistentry>
798d3a52
ZJS
1117 <varlistentry>
1118 <term><varname>Mode=</varname></term>
1119 <listitem>
a8eaaee7 1120 <para>An <literal>ip6tnl</literal> tunnel can be in one of three
798d3a52
ZJS
1121 modes
1122 <literal>ip6ip6</literal> for IPv6 over IPv6,
1123 <literal>ipip6</literal> for IPv4 over IPv6 or
1124 <literal>any</literal> for either.
1125 </para>
1126 </listitem>
1127 </varlistentry>
4d7fa6de
SS
1128 <varlistentry>
1129 <term><varname>Independent=</varname></term>
1130 <listitem>
9b6ffef3 1131 <para>Takes a boolean. When true tunnel does not require .network file. Created as "tunnel@NONE".
4d7fa6de
SS
1132 Defaults to <literal>false</literal>.
1133 </para>
1134 </listitem>
1135 </varlistentry>
3a4f3e42
SS
1136 <varlistentry>
1137 <term><varname>AllowLocalRemote=</varname></term>
1138 <listitem>
9b6ffef3 1139 <para>Takes a boolean. When true allows tunnel traffic on <varname>ip6tnl</varname> devices where the remote endpoint is a local host address.
025314d9 1140 When unset, the kernel's default will be used.
3a4f3e42
SS
1141 </para>
1142 </listitem>
1143 </varlistentry>
53cb501a
SS
1144 <varlistentry>
1145 <term><varname>FooOverUDP=</varname></term>
1146 <listitem>
9b6ffef3 1147 <para>Takes a boolean. Specifies whether <varname>FooOverUDP=</varname> tunnel is to be configured.
0b145817
YW
1148 Defaults to false. This takes effects only for IPIP, SIT, GRE, and GRETAP tunnels.
1149 For more detail information see
53cb501a
SS
1150 <ulink url="https://lwn.net/Articles/614348">Foo over UDP</ulink></para>
1151 </listitem>
1152 </varlistentry>
1153 <varlistentry>
1154 <term><varname>FOUDestinationPort=</varname></term>
1155 <listitem>
6f520e74 1156 <para>This setting specifies the UDP destination port for encapsulation.
0b145817 1157 This field is mandatory when <varname>FooOverUDP=yes</varname>, and is not set by default.</para>
53cb501a
SS
1158 </listitem>
1159 </varlistentry>
1160 <varlistentry>
1161 <term><varname>FOUSourcePort=</varname></term>
1162 <listitem>
6f520e74
ZJS
1163 <para>This setting specifies the UDP source port for encapsulation. Defaults to <constant>0</constant>
1164 — that is, the source port for packets is left to the network stack to decide.</para>
53cb501a
SS
1165 </listitem>
1166 </varlistentry>
1167 <varlistentry>
1168 <term><varname>Encapsulation=</varname></term>
1169 <listitem>
0b145817 1170 <para>Accepts the same key as in the <literal>[FooOverUDP]</literal> section.</para>
53cb501a
SS
1171 </listitem>
1172 </varlistentry>
d067cab3
DA
1173 <varlistentry>
1174 <term><varname>IPv6RapidDeploymentPrefix=</varname></term>
1175 <listitem>
1176 <para>Reconfigure the tunnel for <ulink url="https://tools.ietf.org/html/rfc5569">IPv6 Rapid
1177 Deployment</ulink>, also known as 6rd. The value is an ISP-specific IPv6 prefix with a non-zero length. Only
1178 applicable to SIT tunnels.</para>
1179 </listitem>
1180 </varlistentry>
918049ad
SS
1181 <varlistentry>
1182 <term><varname>ISATAP=</varname></term>
1183 <listitem>
1184 <para>Takes a boolean. If set, configures the tunnel as Intra-Site Automatic Tunnel Addressing Protocol (ISATAP) tunnel.
1185 Only applicable to SIT tunnels. When unset, the kernel's default will be used.</para>
1186 </listitem>
1187 </varlistentry>
2266864b
SS
1188 <varlistentry>
1189 <term><varname>SerializeTunneledPackets=</varname></term>
1190 <listitem>
c65c01c4
YW
1191 <para>Takes a boolean. If set to yes, then packets are serialized. Only applies for GRE,
1192 GRETAP, and ERSPAN tunnels. When unset, the kernel's default will be used.
2266864b
SS
1193 </para>
1194 </listitem>
1195 </varlistentry>
1196 <varlistentry>
1197 <term><varname>ERSPANIndex=</varname></term>
1198 <listitem>
1199 <para>Specifies the ERSPAN index field for the interface, an integer in the range 1-1048575 associated with
1200 the ERSPAN traffic's source port and direction. This field is mandatory.
1201 </para>
1202 </listitem>
1203 </varlistentry>
798d3a52
ZJS
1204 </variablelist>
1205 </refsect1>
53cb501a
SS
1206
1207 <refsect1>
1208 <title>[FooOverUDP] Section Options</title>
1209
1210 <para>The <literal>[FooOverUDP]</literal> section only applies for
1211 netdevs of kind <literal>fou</literal> and accepts the
1212 following keys:</para>
1213
1214 <variablelist class='network-directives'>
53cb501a
SS
1215 <varlistentry>
1216 <term><varname>Encapsulation=</varname></term>
1217 <listitem>
1218 <para>Specifies the encapsulation mechanism used to store networking packets of various protocols inside the UDP packets. Supports the following values:
1219
1220 <literal>FooOverUDP</literal> provides the simplest no frills model of UDP encapsulation, it simply encapsulates
1221 packets directly in the UDP payload.
1222 <literal>GenericUDPEncapsulation</literal> is a generic and extensible encapsulation, it allows encapsulation of packets for any IP
1223 protocol and optional data as part of the encapsulation.
1224 For more detailed information see <ulink url="https://lwn.net/Articles/615044">Generic UDP Encapsulation</ulink>.
1225 Defaults to <literal>FooOverUDP</literal>.
1226 </para>
1227 </listitem>
1228 </varlistentry>
1229 <varlistentry>
1230 <term><varname>Port=</varname></term>
1231 <listitem>
1232 <para>Specifies the port number, where the IP encapsulation packets will arrive. Please take note that the packets
1233 will arrive with the encapsulation will be removed. Then they will be manually fed back into the network stack, and sent ahead
1234 for delivery to the real destination. This option is mandatory.</para>
1235 </listitem>
1236 </varlistentry>
0b145817
YW
1237 <varlistentry>
1238 <term><varname>Protocol=</varname></term>
1239 <listitem>
1240 <para>The <varname>Protocol=</varname> specifies the protocol number of the packets arriving
1241 at the UDP port. When <varname>Encapsulation=FooOverUDP</varname>, this field is mandatory
1242 and is not set by default. Takes an IP protocol name such as <literal>gre</literal> or
1243 <literal>ipip</literal>, or an integer within the range 1-255. When
1244 <varname>Encapsulation=GenericUDPEncapsulation</varname>, this must not be specified.</para>
1245 </listitem>
1246 </varlistentry>
1247 </variablelist>
53cb501a 1248 </refsect1>
798d3a52
ZJS
1249 <refsect1>
1250 <title>[Peer] Section Options</title>
1251
1252 <para>The <literal>[Peer]</literal> section only applies for
1253 netdevs of kind <literal>veth</literal> and accepts the
a8eaaee7 1254 following keys:</para>
798d3a52
ZJS
1255
1256 <variablelist class='network-directives'>
1257 <varlistentry>
1258 <term><varname>Name=</varname></term>
1259 <listitem>
1260 <para>The interface name used when creating the netdev.
1261 This option is compulsory.</para>
1262 </listitem>
1263 </varlistentry>
1264 <varlistentry>
1265 <term><varname>MACAddress=</varname></term>
1266 <listitem>
b938cb90 1267 <para>The peer MACAddress, if not set, it is generated in
798d3a52
ZJS
1268 the same way as the MAC address of the main
1269 interface.</para>
1270 </listitem>
1271 </varlistentry>
1272 </variablelist>
1273 </refsect1>
d6df583c
SS
1274 <refsect1>
1275 <title>[VXCAN] Section Options</title>
1276 <para>The <literal>[VXCAN]</literal> section only applies for
1277 netdevs of kind <literal>vxcan</literal> and accepts the
1278 following key:</para>
1279
1280 <variablelist class='network-directives'>
1281 <varlistentry>
1282 <term><varname>Peer=</varname></term>
1283 <listitem>
1284 <para>The peer interface name used when creating the netdev.
1285 This option is compulsory.</para>
1286 </listitem>
1287 </varlistentry>
1288 </variablelist>
1289 </refsect1>
798d3a52
ZJS
1290 <refsect1>
1291 <title>[Tun] Section Options</title>
1292
1293 <para>The <literal>[Tun]</literal> section only applies for
1294 netdevs of kind <literal>tun</literal>, and accepts the following
1295 keys:</para>
1296
1297 <variablelist class='network-directives'>
1298 <varlistentry>
1299 <term><varname>OneQueue=</varname></term>
9b6ffef3 1300 <listitem><para>Takes a boolean. Configures whether
798d3a52
ZJS
1301 all packets are queued at the device (enabled), or a fixed
1302 number of packets are queued at the device and the rest at the
1303 <literal>qdisc</literal>. Defaults to
1304 <literal>no</literal>.</para>
1305 </listitem>
1306 </varlistentry>
1307 <varlistentry>
1308 <term><varname>MultiQueue=</varname></term>
9b6ffef3 1309 <listitem><para>Takes a boolean. Configures whether
798d3a52
ZJS
1310 to use multiple file descriptors (queues) to parallelize
1311 packets sending and receiving. Defaults to
1312 <literal>no</literal>.</para>
1313 </listitem>
1314 </varlistentry>
1315 <varlistentry>
1316 <term><varname>PacketInfo=</varname></term>
9b6ffef3 1317 <listitem><para>Takes a boolean. Configures whether
ff9b60f3 1318 packets should be prepended with four extra bytes (two flag
b938cb90 1319 bytes and two protocol bytes). If disabled, it indicates that
798d3a52
ZJS
1320 the packets will be pure IP packets. Defaults to
1321 <literal>no</literal>.</para>
1322 </listitem>
1323 </varlistentry>
43f78da4 1324 <varlistentry>
2aba142e 1325 <term><varname>VNetHeader=</varname></term>
9b6ffef3 1326 <listitem><para>Takes a boolean. Configures
43f78da4
SS
1327 IFF_VNET_HDR flag for a tap device. It allows sending
1328 and receiving larger Generic Segmentation Offload (GSO)
1329 packets. This may increase throughput significantly.
1330 Defaults to
1331 <literal>no</literal>.</para>
1332 </listitem>
1333 </varlistentry>
798d3a52
ZJS
1334 <varlistentry>
1335 <term><varname>User=</varname></term>
1336 <listitem><para>User to grant access to the
1337 <filename>/dev/net/tun</filename> device.</para>
1338 </listitem>
1339 </varlistentry>
1340 <varlistentry>
1341 <term><varname>Group=</varname></term>
1342 <listitem><para>Group to grant access to the
1343 <filename>/dev/net/tun</filename> device.</para>
1344 </listitem>
1345 </varlistentry>
1346
1347 </variablelist>
1348
1349 </refsect1>
1350
1351 <refsect1>
1352 <title>[Tap] Section Options</title>
1353
1354 <para>The <literal>[Tap]</literal> section only applies for
1355 netdevs of kind <literal>tap</literal>, and accepts the same keys
1356 as the <literal>[Tun]</literal> section.</para>
1357 </refsect1>
1358
e5719363
JT
1359 <refsect1>
1360 <title>[WireGuard] Section Options</title>
1361
1362 <para>The <literal>[WireGuard]</literal> section accepts the following
1363 keys:</para>
1364
1365 <variablelist class='network-directives'>
1366 <varlistentry>
1367 <term><varname>PrivateKey=</varname></term>
1368 <listitem>
1369 <para>The Base64 encoded private key for the interface. It can be
1370 generated using the <command>wg genkey</command> command
1371 (see <citerefentry project="wireguard"><refentrytitle>wg</refentrytitle><manvolnum>8</manvolnum></citerefentry>).
76df7779 1372 This option or <varname>PrivateKeyFile=</varname> is mandatory to use WireGuard.
a8d6dbed 1373 Note that because this information is secret, you may want to set
bd277f53 1374 the permissions of the .netdev file to be owned by <literal>root:systemd-network</literal>
a8d6dbed 1375 with a <literal>0640</literal> file mode.</para>
e5719363
JT
1376 </listitem>
1377 </varlistentry>
76df7779
YW
1378 <varlistentry>
1379 <term><varname>PrivateKeyFile=</varname></term>
1380 <listitem>
a3945c63 1381 <para>Takes an absolute path to a file which contains the Base64 encoded private key for the interface.
cb31e7c8 1382 When this option is specified, then <varname>PrivateKey=</varname> is ignored.
76df7779
YW
1383 Note that the file must be readable by the user <literal>systemd-network</literal>, so it
1384 should be, e.g., owned by <literal>root:systemd-network</literal> with a
1385 <literal>0640</literal> file mode.</para>
1386 </listitem>
1387 </varlistentry>
e5719363
JT
1388 <varlistentry>
1389 <term><varname>ListenPort=</varname></term>
1390 <listitem>
1391 <para>Sets UDP port for listening. Takes either value between 1 and 65535
1392 or <literal>auto</literal>. If <literal>auto</literal> is specified,
1393 the port is automatically generated based on interface name.
1394 Defaults to <literal>auto</literal>.</para>
1395 </listitem>
1396 </varlistentry>
1397 <varlistentry>
1398 <term><varname>FwMark=</varname></term>
1399 <listitem>
3209474f 1400 <para>Sets a firewall mark on outgoing WireGuard packets from this interface.</para>
e5719363
JT
1401 </listitem>
1402 </varlistentry>
1403 </variablelist>
1404 </refsect1>
1405
1406 <refsect1>
1407 <title>[WireGuardPeer] Section Options</title>
1408
1409 <para>The <literal>[WireGuardPeer]</literal> section accepts the following
1410 keys:</para>
1411
1412 <variablelist class='network-directives'>
1413 <varlistentry>
1414 <term><varname>PublicKey=</varname></term>
1415 <listitem>
1416 <para>Sets a Base64 encoded public key calculated by <command>wg pubkey</command>
1417 (see <citerefentry project="wireguard"><refentrytitle>wg</refentrytitle><manvolnum>8</manvolnum></citerefentry>)
1418 from a private key, and usually transmitted out of band to the
1419 author of the configuration file. This option is mandatory for this
1420 section.</para>
1421 </listitem>
1422 </varlistentry>
1423 <varlistentry>
1424 <term><varname>PresharedKey=</varname></term>
1425 <listitem>
1426 <para>Optional preshared key for the interface. It can be generated
1427 by the <command>wg genpsk</command> command. This option adds an
1428 additional layer of symmetric-key cryptography to be mixed into the
1429 already existing public-key cryptography, for post-quantum
a8d6dbed
JD
1430 resistance.
1431 Note that because this information is secret, you may want to set
1432 the permissions of the .netdev file to be owned by <literal>root:systemd-networkd</literal>
1433 with a <literal>0640</literal> file mode.</para>
e5719363
JT
1434 </listitem>
1435 </varlistentry>
a3945c63
YW
1436 <varlistentry>
1437 <term><varname>PresharedKeyFile=</varname></term>
1438 <listitem>
1439 <para>Takes an absolute path to a file which contains the Base64 encoded preshared key for the
1440 peer. When this option is specified, then <varname>PresharedKey=</varname> is ignored.
1441 Note that the file must be readable by the user <literal>systemd-network</literal>, so it
1442 should be, e.g., owned by <literal>root:systemd-network</literal> with a
1443 <literal>0640</literal> file mode.</para>
1444 </listitem>
1445 </varlistentry>
e5719363
JT
1446 <varlistentry>
1447 <term><varname>AllowedIPs=</varname></term>
1448 <listitem>
1449 <para>Sets a comma-separated list of IP (v4 or v6) addresses with CIDR masks
1450 from which this peer is allowed to send incoming traffic and to
1451 which outgoing traffic for this peer is directed. The catch-all
1452 0.0.0.0/0 may be specified for matching all IPv4 addresses, and
1453 ::/0 may be specified for matching all IPv6 addresses. </para>
1454 </listitem>
1455 </varlistentry>
1456 <varlistentry>
1457 <term><varname>Endpoint=</varname></term>
1458 <listitem>
1459 <para>Sets an endpoint IP address or hostname, followed by a colon, and then
1460 a port number. This endpoint will be updated automatically once to
1461 the most recent source IP address and port of correctly
1462 authenticated packets from the peer at configuration time.</para>
1463 </listitem>
1464 </varlistentry>
1465 <varlistentry>
1466 <term><varname>PersistentKeepalive=</varname></term>
1467 <listitem>
1468 <para>Sets a seconds interval, between 1 and 65535 inclusive, of how often
1469 to send an authenticated empty packet to the peer for the purpose
1470 of keeping a stateful firewall or NAT mapping valid persistently.
1471 For example, if the interface very rarely sends traffic, but it
1472 might at anytime receive traffic from a peer, and it is behind NAT,
1473 the interface might benefit from having a persistent keepalive
1474 interval of 25 seconds. If set to 0 or "off", this option is
1475 disabled. By default or when unspecified, this option is off.
1476 Most users will not need this.</para>
1477 </listitem>
1478 </varlistentry>
1479 </variablelist>
1480 </refsect1>
1481
798d3a52
ZJS
1482 <refsect1>
1483 <title>[Bond] Section Options</title>
1484
1485 <para>The <literal>[Bond]</literal> section accepts the following
1486 key:</para>
1487
1488 <variablelist class='network-directives'>
1489 <varlistentry>
1490 <term><varname>Mode=</varname></term>
1491 <listitem>
1492 <para>Specifies one of the bonding policies. The default is
1493 <literal>balance-rr</literal> (round robin). Possible values are
1494 <literal>balance-rr</literal>,
1495 <literal>active-backup</literal>,
1496 <literal>balance-xor</literal>,
1497 <literal>broadcast</literal>,
1498 <literal>802.3ad</literal>,
1499 <literal>balance-tlb</literal>, and
1500 <literal>balance-alb</literal>.
1501 </para>
1502 </listitem>
1503 </varlistentry>
1504
1505 <varlistentry>
1506 <term><varname>TransmitHashPolicy=</varname></term>
1507 <listitem>
1508 <para>Selects the transmit hash policy to use for slave
1509 selection in balance-xor, 802.3ad, and tlb modes. Possible
1510 values are
1511 <literal>layer2</literal>,
1512 <literal>layer3+4</literal>,
1513 <literal>layer2+3</literal>,
4d89618a 1514 <literal>encap2+3</literal>, and
798d3a52
ZJS
1515 <literal>encap3+4</literal>.
1516 </para>
1517 </listitem>
1518 </varlistentry>
1519
1520 <varlistentry>
1521 <term><varname>LACPTransmitRate=</varname></term>
1522 <listitem>
1523 <para>Specifies the rate with which link partner transmits
1524 Link Aggregation Control Protocol Data Unit packets in
1525 802.3ad mode. Possible values are <literal>slow</literal>,
1526 which requests partner to transmit LACPDUs every 30 seconds,
1527 and <literal>fast</literal>, which requests partner to
1528 transmit LACPDUs every second. The default value is
1529 <literal>slow</literal>.</para>
1530 </listitem>
1531 </varlistentry>
1532
1533 <varlistentry>
1534 <term><varname>MIIMonitorSec=</varname></term>
1535 <listitem>
1536 <para>Specifies the frequency that Media Independent
1537 Interface link monitoring will occur. A value of zero
dd2b607b 1538 disables MII link monitoring. This value is rounded down to
798d3a52
ZJS
1539 the nearest millisecond. The default value is 0.</para>
1540 </listitem>
1541 </varlistentry>
1542
1543 <varlistentry>
1544 <term><varname>UpDelaySec=</varname></term>
1545 <listitem>
1546 <para>Specifies the delay before a link is enabled after a
1547 link up status has been detected. This value is rounded down
1548 to a multiple of MIIMonitorSec. The default value is
1549 0.</para>
1550 </listitem>
1551 </varlistentry>
1552
1553 <varlistentry>
1554 <term><varname>DownDelaySec=</varname></term>
1555 <listitem>
1556 <para>Specifies the delay before a link is disabled after a
1557 link down status has been detected. This value is rounded
1558 down to a multiple of MIIMonitorSec. The default value is
1559 0.</para>
1560 </listitem>
1561 </varlistentry>
1562
81bd37a8 1563 <varlistentry>
38422da7 1564 <term><varname>LearnPacketIntervalSec=</varname></term>
81bd37a8
SS
1565 <listitem>
1566 <para>Specifies the number of seconds between instances where the bonding
a8eaaee7
JE
1567 driver sends learning packets to each slave peer switch.
1568 The valid range is 1–0x7fffffff; the default value is 1. This option
1569 has an effect only for the balance-tlb and balance-alb modes.</para>
81bd37a8
SS
1570 </listitem>
1571 </varlistentry>
1572
1573 <varlistentry>
1574 <term><varname>AdSelect=</varname></term>
1575 <listitem>
1576 <para>Specifies the 802.3ad aggregation selection logic to use. Possible values are
1577 <literal>stable</literal>,
a8eaaee7
JE
1578 <literal>bandwidth</literal> and
1579 <literal>count</literal>.
81bd37a8
SS
1580 </para>
1581 </listitem>
1582 </varlistentry>
1583
99f68ef0 1584 <varlistentry>
db688b7e 1585 <term><varname>AdActorSystemPriority=</varname></term>
99f68ef0 1586 <listitem>
db688b7e 1587 <para>Specifies the 802.3ad actor system priority. Ranges [1-65535].</para>
99f68ef0
TJ
1588 </listitem>
1589 </varlistentry>
1590
1591 <varlistentry>
1592 <term><varname>AdUserPortKey=</varname></term>
1593 <listitem>
1594 <para>Specifies the 802.3ad user defined portion of the port key. Ranges [0-1023].</para>
1595 </listitem>
1596 </varlistentry>
1597
1598 <varlistentry>
1599 <term><varname>AdActorSystem=</varname></term>
1600 <listitem>
1601 <para>Specifies the 802.3ad system mac address. This can not be either NULL or Multicast.</para>
1602 </listitem>
1603 </varlistentry>
1604
81bd37a8 1605 <varlistentry>
38422da7 1606 <term><varname>FailOverMACPolicy=</varname></term>
81bd37a8 1607 <listitem>
a8eaaee7
JE
1608 <para>Specifies whether the active-backup mode should set all slaves to
1609 the same MAC address at the time of enslavement or, when enabled, to perform special handling of the
81bd37a8
SS
1610 bond's MAC address in accordance with the selected policy. The default policy is none.
1611 Possible values are
1612 <literal>none</literal>,
a8eaaee7
JE
1613 <literal>active</literal> and
1614 <literal>follow</literal>.
81bd37a8
SS
1615 </para>
1616 </listitem>
1617 </varlistentry>
1618
1619 <varlistentry>
38422da7 1620 <term><varname>ARPValidate=</varname></term>
81bd37a8
SS
1621 <listitem>
1622 <para>Specifies whether or not ARP probes and replies should be
38422da7 1623 validated in any mode that supports ARP monitoring, or whether
81bd37a8
SS
1624 non-ARP traffic should be filtered (disregarded) for link
1625 monitoring purposes. Possible values are
1626 <literal>none</literal>,
1627 <literal>active</literal>,
a8eaaee7
JE
1628 <literal>backup</literal> and
1629 <literal>all</literal>.
81bd37a8
SS
1630 </para>
1631 </listitem>
1632 </varlistentry>
1633
1634 <varlistentry>
38422da7 1635 <term><varname>ARPIntervalSec=</varname></term>
81bd37a8
SS
1636 <listitem>
1637 <para>Specifies the ARP link monitoring frequency in milliseconds.
1638 A value of 0 disables ARP monitoring. The default value is 0.
1639 </para>
1640 </listitem>
1641 </varlistentry>
1642
1643 <varlistentry>
38422da7 1644 <term><varname>ARPIPTargets=</varname></term>
81bd37a8
SS
1645 <listitem>
1646 <para>Specifies the IP addresses to use as ARP monitoring peers when
38422da7 1647 ARPIntervalSec is greater than 0. These are the targets of the ARP request
81bd37a8 1648 sent to determine the health of the link to the targets.
a8eaaee7 1649 Specify these values in IPv4 dotted decimal format. At least one IP
81bd37a8
SS
1650 address must be given for ARP monitoring to function. The
1651 maximum number of targets that can be specified is 16. The
1652 default value is no IP addresses.
1653 </para>
1654 </listitem>
1655 </varlistentry>
1656
1657 <varlistentry>
38422da7 1658 <term><varname>ARPAllTargets=</varname></term>
81bd37a8 1659 <listitem>
38422da7 1660 <para>Specifies the quantity of ARPIPTargets that must be reachable
81bd37a8
SS
1661 in order for the ARP monitor to consider a slave as being up.
1662 This option affects only active-backup mode for slaves with
38422da7 1663 ARPValidate enabled. Possible values are
a8eaaee7
JE
1664 <literal>any</literal> and
1665 <literal>all</literal>.
81bd37a8
SS
1666 </para>
1667 </listitem>
1668 </varlistentry>
1669
1670 <varlistentry>
38422da7 1671 <term><varname>PrimaryReselectPolicy=</varname></term>
81bd37a8
SS
1672 <listitem>
1673 <para>Specifies the reselection policy for the primary slave. This
1674 affects how the primary slave is chosen to become the active slave
1675 when failure of the active slave or recovery of the primary slave
1676 occurs. This option is designed to prevent flip-flopping between
1677 the primary slave and other slaves. Possible values are
1678 <literal>always</literal>,
a8eaaee7
JE
1679 <literal>better</literal> and
1680 <literal>failure</literal>.
81bd37a8
SS
1681 </para>
1682 </listitem>
1683 </varlistentry>
1684
1685 <varlistentry>
1686 <term><varname>ResendIGMP=</varname></term>
1687 <listitem>
1688 <para>Specifies the number of IGMP membership reports to be issued after
1689 a failover event. One membership report is issued immediately after
1690 the failover, subsequent packets are sent in each 200ms interval.
b938cb90 1691 The valid range is 0–255. Defaults to 1. A value of 0
81bd37a8
SS
1692 prevents the IGMP membership report from being issued in response
1693 to the failover event.
1694 </para>
1695 </listitem>
1696 </varlistentry>
1697
1698 <varlistentry>
1699 <term><varname>PacketsPerSlave=</varname></term>
1700 <listitem>
b938cb90
JE
1701 <para>Specify the number of packets to transmit through a slave before
1702 moving to the next one. When set to 0, then a slave is chosen at
1703 random. The valid range is 0–65535. Defaults to 1. This option
a8eaaee7 1704 only has effect when in balance-rr mode.
81bd37a8
SS
1705 </para>
1706 </listitem>
1707 </varlistentry>
1708
1709 <varlistentry>
38422da7 1710 <term><varname>GratuitousARP=</varname></term>
81bd37a8
SS
1711 <listitem>
1712 <para>Specify the number of peer notifications (gratuitous ARPs and
1713 unsolicited IPv6 Neighbor Advertisements) to be issued after a
b938cb90 1714 failover event. As soon as the link is up on the new slave,
81bd37a8
SS
1715 a peer notification is sent on the bonding device and each
1716 VLAN sub-device. This is repeated at each link monitor interval
38422da7 1717 (ARPIntervalSec or MIIMonitorSec, whichever is active) if the number is
a8eaaee7 1718 greater than 1. The valid range is 0–255. The default value is 1.
38422da7 1719 These options affect only the active-backup mode.
81bd37a8
SS
1720 </para>
1721 </listitem>
1722 </varlistentry>
1723
1724 <varlistentry>
1725 <term><varname>AllSlavesActive=</varname></term>
1726 <listitem>
9b6ffef3 1727 <para>Takes a boolean. Specifies that duplicate frames (received on inactive ports)
a8eaaee7 1728 should be dropped when false, or delivered when true. Normally, bonding will drop
81bd37a8
SS
1729 duplicate frames (received on inactive ports), which is desirable for
1730 most users. But there are some times it is nice to allow duplicate
1731 frames to be delivered. The default value is false (drop duplicate frames
1732 received on inactive ports).
1733 </para>
1734 </listitem>
1735 </varlistentry>
1736
fde60a42
SS
1737 <varlistentry>
1738 <term><varname>DynamicTransmitLoadBalancing=</varname></term>
1739 <listitem>
1740 <para>Takes a boolean. Specifies if dynamic shuffling of flows is enabled. Applies only
1741 for balance-tlb mode. Defaults to unset.
1742 </para>
1743 </listitem>
1744 </varlistentry>
1745
81bd37a8
SS
1746 <varlistentry>
1747 <term><varname>MinLinks=</varname></term>
1748 <listitem>
1749 <para>Specifies the minimum number of links that must be active before
1750 asserting carrier. The default value is 0.
1751 </para>
1752 </listitem>
1753 </varlistentry>
798d3a52 1754 </variablelist>
81bd37a8
SS
1755
1756 <para>For more detail information see
1757 <ulink url="https://www.kernel.org/doc/Documentation/networking/bonding.txt">
1758 Linux Ethernet Bonding Driver HOWTO</ulink></para>
1759
798d3a52
ZJS
1760 </refsect1>
1761
1762 <refsect1>
48847676 1763 <title>Examples</title>
798d3a52 1764 <example>
6c1695be 1765 <title>/etc/systemd/network/25-bridge.netdev</title>
798d3a52
ZJS
1766
1767 <programlisting>[NetDev]
eac684ef
TG
1768Name=bridge0
1769Kind=bridge</programlisting>
798d3a52 1770 </example>
eac684ef 1771
798d3a52 1772 <example>
6c1695be 1773 <title>/etc/systemd/network/25-vlan1.netdev</title>
eac684ef 1774
798d3a52 1775 <programlisting>[Match]
eac684ef
TG
1776Virtualization=no
1777
1778[NetDev]
1779Name=vlan1
1780Kind=vlan
1781
1782[VLAN]
1783Id=1</programlisting>
798d3a52
ZJS
1784 </example>
1785 <example>
6c1695be 1786 <title>/etc/systemd/network/25-ipip.netdev</title>
798d3a52 1787 <programlisting>[NetDev]
b35a2909
TG
1788Name=ipip-tun
1789Kind=ipip
1790MTUBytes=1480
1791
1792[Tunnel]
1793Local=192.168.223.238
1794Remote=192.169.224.239
1795TTL=64</programlisting>
798d3a52 1796 </example>
53cb501a
SS
1797 <example>
1798 <title>/etc/systemd/network/1-fou-tunnel.netdev</title>
1799 <programlisting>[NetDev]
1800Name=fou-tun
1801Kind=fou
1802
1803[FooOverUDP]
1804Port=5555
1805Protocol=4
1806 </programlisting>
1807 </example>
1808 <example>
1809 <title>/etc/systemd/network/25-fou-ipip.netdev</title>
1810 <programlisting>[NetDev]
53cb501a
SS
1811Name=ipip-tun
1812Kind=ipip
1813
1814[Tunnel]
964c4eda 1815Independent=yes
53cb501a
SS
1816Local=10.65.208.212
1817Remote=10.65.208.211
964c4eda 1818FooOverUDP=yes
53cb501a
SS
1819FOUDestinationPort=5555
1820 </programlisting>
1821 </example>
798d3a52 1822 <example>
6c1695be 1823 <title>/etc/systemd/network/25-tap.netdev</title>
798d3a52 1824 <programlisting>[NetDev]
30ae9dfd
SS
1825Name=tap-test
1826Kind=tap
1827
1828[Tap]
964c4eda
LP
1829MultiQueue=yes
1830PacketInfo=yes</programlisting> </example>
eac684ef 1831
798d3a52 1832 <example>
6c1695be 1833 <title>/etc/systemd/network/25-sit.netdev</title>
798d3a52 1834 <programlisting>[NetDev]
b35a2909
TG
1835Name=sit-tun
1836Kind=sit
1837MTUBytes=1480
1838
1839[Tunnel]
1840Local=10.65.223.238
1841Remote=10.65.223.239</programlisting>
798d3a52 1842 </example>
eac684ef 1843
d067cab3
DA
1844 <example>
1845 <title>/etc/systemd/network/25-6rd.netdev</title>
1846 <programlisting>[NetDev]
1847Name=6rd-tun
1848Kind=sit
1849MTUBytes=1480
1850
1851[Tunnel]
1852Local=10.65.223.238
1853IPv6RapidDeploymentPrefix=2602::/24</programlisting>
1854 </example>
1855
798d3a52 1856 <example>
6c1695be 1857 <title>/etc/systemd/network/25-gre.netdev</title>
798d3a52 1858 <programlisting>[NetDev]
b35a2909
TG
1859Name=gre-tun
1860Kind=gre
1861MTUBytes=1480
1862
1863[Tunnel]
1864Local=10.65.223.238
1865Remote=10.65.223.239</programlisting>
798d3a52 1866 </example>
b35a2909 1867
798d3a52 1868 <example>
6c1695be 1869 <title>/etc/systemd/network/25-vti.netdev</title>
b35a2909 1870
798d3a52 1871 <programlisting>[NetDev]
b35a2909
TG
1872Name=vti-tun
1873Kind=vti
1874MTUBytes=1480
1875
1876[Tunnel]
1877Local=10.65.223.238
1878Remote=10.65.223.239</programlisting>
798d3a52 1879 </example>
b35a2909 1880
798d3a52 1881 <example>
6c1695be 1882 <title>/etc/systemd/network/25-veth.netdev</title>
798d3a52 1883 <programlisting>[NetDev]
b35a2909
TG
1884Name=veth-test
1885Kind=veth
1886
1887[Peer]
1888Name=veth-peer</programlisting>
798d3a52 1889 </example>
b35a2909 1890
d94facdc 1891 <example>
6c1695be 1892 <title>/etc/systemd/network/25-bond.netdev</title>
d94facdc
MH
1893 <programlisting>[NetDev]
1894Name=bond1
1895Kind=bond
1896
1897[Bond]
1898Mode=802.3ad
1899TransmitHashPolicy=layer3+4
1900MIIMonitorSec=1s
1901LACPTransmitRate=fast
1902</programlisting>
1903 </example>
1904
798d3a52 1905 <example>
6c1695be 1906 <title>/etc/systemd/network/25-dummy.netdev</title>
798d3a52 1907 <programlisting>[NetDev]
9e358851
TG
1908Name=dummy-test
1909Kind=dummy
1910MACAddress=12:34:56:78:9a:bc</programlisting>
798d3a52 1911 </example>
20897a0d
AR
1912 <example>
1913 <title>/etc/systemd/network/25-vrf.netdev</title>
037a3ded 1914 <para>Create a VRF interface with table 42.</para>
20897a0d
AR
1915 <programlisting>[NetDev]
1916Name=vrf-test
1917Kind=vrf
798d3a52 1918
20897a0d 1919[VRF]
362f6336 1920Table=42</programlisting>
20897a0d 1921 </example>
42125eda
SS
1922
1923 <example>
1924 <title>/etc/systemd/network/25-macvtap.netdev</title>
1925 <para>Create a MacVTap device.</para>
1926 <programlisting>[NetDev]
1927Name=macvtap-test
1928Kind=macvtap
1929 </programlisting>
1930 </example>
e5719363
JT
1931 <example>
1932 <title>/etc/systemd/network/25-wireguard.netdev</title>
1933 <programlisting>[NetDev]
1934Name=wg0
1935Kind=wireguard
1936
1937[WireGuard]
1938PrivateKey=EEGlnEPYJV//kbvvIqxKkQwOiS+UENyPncC4bF46ong=
1939ListenPort=51820
1940
1941[WireGuardPeer]
1942PublicKey=RDf+LSpeEre7YEIKaxg+wbpsNV7du+ktR99uBEtIiCA=
1943AllowedIPs=fd31:bf08:57cb::/48,192.168.26.0/24
1944Endpoint=wireguard.example.com:51820</programlisting>
1945 </example>
798d3a52
ZJS
1946 </refsect1>
1947 <refsect1>
1948 <title>See Also</title>
1949 <para>
1950 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
1951 <citerefentry><refentrytitle>systemd-networkd</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
1952 <citerefentry><refentrytitle>systemd.link</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1953 <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>
1954 </para>
1955 </refsect1>
eac684ef
TG
1956
1957</refentry>