Debian Codegraph @

man/systemd.netdev.xml

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