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