Debian Codegraph @

man/systemd.network.xml

raw
1 <?xml version='1.0'?>
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.network" 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.network</refentrytitle>
16 <manvolnum>5</manvolnum>
17 </refmeta>
18
19 <refnamediv>
20 <refname>systemd.network</refname>
21 <refpurpose>Network configuration</refpurpose>
22 </refnamediv>
23
24 <refsynopsisdiv>
25 <para><filename><replaceable>network</replaceable>.network</filename></para>
26 </refsynopsisdiv>
27
28 <refsect1>
29 <title>Description</title>
30
31 <para>A plain ini-style text file that encodes network configuration for matching network
32 interfaces, used by
33 <citerefentry><refentrytitle>systemd-networkd</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
34 See <citerefentry><refentrytitle>systemd.syntax</refentrytitle><manvolnum>7</manvolnum></citerefentry>
35 for a general description of the syntax.</para>
36
37 <para>The main network file must have the extension <filename>.network</filename>; other
38 extensions are ignored. Networks are applied to links whenever the links appear.</para>
39
40 <para>Note that not all settings and configurations can be made with <filename>.network</filename>
41 files, and that it may be necessary to use
42 <citerefentry><refentrytitle>systemd.link</refentrytitle><manvolnum>5</manvolnum></citerefentry>)
43 or
44 <citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>)
45 files in conjunction with <filename>.network</filename> files when working with physical and virtual
46 network devices respectively.</para>
47
48 <para>The <filename>.network</filename> files are read from the files located in the system network
49 directories <filename>/usr/lib/systemd/network</filename> and
50 <filename>/usr/local/lib/systemd/network</filename>
51 <xi:include href="standard-conf.xml" xpointer="usr-local-footnote" />,
52 the volatile runtime network directory <filename>/run/systemd/network</filename> and the local
53 administration network directory <filename>/etc/systemd/network</filename>. All configuration files are
54 collectively sorted and processed in alphanumeric order, regardless of the directories in which they
55 live. However, files with identical filenames replace each other. It is recommended that each filename is
56 prefixed with a number smaller than <literal>70</literal> (e.g. <filename>10-eth0.network</filename>).
57 Otherwise, the default <filename>.network</filename> files or those generated by
58 <citerefentry><refentrytitle>systemd-network-generator.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
59 may take precedence over user configured files. Files in <filename>/etc/</filename> have the highest
60 priority, files in <filename>/run/</filename> take precedence over files with the same name under
61 <filename>/usr/</filename>. This can be used to override a system-supplied configuration file with
62 a local file if needed. As a special case, an empty file (file size 0) or symlink with the same
63 name pointing to <filename>/dev/null</filename> disables the configuration file entirely (it is
64 "masked").</para>
65
66 <para>Along with the network file <filename>foo.network</filename>, a "drop-in" directory
67 <filename>foo.network.d/</filename> may exist. All files with the suffix
68 <literal>.conf</literal> from this directory will be merged in the alphanumeric order and parsed
69 after the main file itself has been parsed. This is useful to alter or add configuration settings,
70 without having to modify the main configuration file. Each drop-in file must have appropriate
71 section headers.</para>
72
73 <para>In addition to <filename>/etc/systemd/network</filename>, drop-in <literal>.d</literal>
74 directories can be placed in <filename>/usr/lib/systemd/network</filename> or
75 <filename>/run/systemd/network</filename> directories. Drop-in files in
76 <filename>/etc/</filename> take precedence over those in <filename>/run/</filename> which in turn
77 take precedence over those in <filename>/usr/lib/</filename>. Drop-in files under any of these
78 directories take precedence over the main network file wherever located.</para>
79 </refsect1>
80
81 <refsect1>
82 <title>[Match] Section Options</title>
83
84 <para>The network file contains a [Match] section, which determines if a given network file may
85 be applied to a given interface; and a [Network] section specifying how the interface should be
86 configured. The first (in alphanumeric order) of the network files that matches a given interface
87 is applied, all later files are ignored, even if they match as well.</para>
88
89 <para>Note that any network interfaces that have the <varname>ID_NET_MANAGED_BY=</varname> udev property
90 set will never be matched by any .network files – unless the property's value is the string
91 <literal>io.systemd.Network</literal> – even if the [Match] section would otherwise match. This may be
92 used to exclude specific network interfaces from
93 <citerefentry><refentrytitle>systemd-networkd</refentrytitle><manvolnum>8</manvolnum></citerefentry>'s
94 management, while keeping the [Match] section generic. The <varname>ID_NET_MANAGED_BY=</varname> property
95 thus declares intended <emphasis>ownership</emphasis> of the device, and permits ensuring that concurrent
96 network management implementations do not compete for management of specific devices.</para>
97
98 <para>A network file is said to match a network interface if all matches specified by the [Match]
99 section are satisfied. When a network file does not contain valid settings in [Match] section, then
100 the file will match all interfaces and <command>systemd-networkd</command> warns about that. Hint:
101 to avoid the warning and to make it clear that all interfaces shall be matched, add the following:
102 <programlisting>Name=*</programlisting> The following keys are accepted:</para>
103
104 <variablelist class='network-directives'>
105 <xi:include href="systemd.link.xml" xpointer="mac-address" />
106 <xi:include href="systemd.link.xml" xpointer="permanent-mac-address" />
107 <xi:include href="systemd.link.xml" xpointer="path" />
108 <xi:include href="systemd.link.xml" xpointer="driver" />
109 <xi:include href="systemd.link.xml" xpointer="type" />
110 <xi:include href="systemd.link.xml" xpointer="kind" />
111 <xi:include href="systemd.link.xml" xpointer="property" />
112
113 <varlistentry>
114 <term><varname>Name=</varname></term>
115 <listitem>
116 <para>A whitespace-separated list of shell-style globs matching the device name, as exposed
117 by the udev property <literal>INTERFACE</literal>, or device's alternative names. If the
118 list is prefixed with a "!", the test is inverted.</para>
119
120 <xi:include href="version-info.xml" xpointer="v211"/>
121 </listitem>
122 </varlistentry>
123
124 <varlistentry>
125 <term><varname>WLANInterfaceType=</varname></term>
126 <listitem>
127 <para>A whitespace-separated list of wireless network type. Supported values are
128 <literal>ad-hoc</literal>, <literal>station</literal>, <literal>ap</literal>,
129 <literal>ap-vlan</literal>, <literal>wds</literal>, <literal>monitor</literal>,
130 <literal>mesh-point</literal>, <literal>p2p-client</literal>, <literal>p2p-go</literal>,
131 <literal>p2p-device</literal>, <literal>ocb</literal>, and <literal>nan</literal>. If the
132 list is prefixed with a "!", the test is inverted. </para>
133
134 <xi:include href="version-info.xml" xpointer="v244"/>
135 </listitem>
136 </varlistentry>
137
138 <varlistentry>
139 <term><varname>SSID=</varname></term>
140 <listitem>
141 <para>A whitespace-separated list of shell-style globs matching the SSID of the currently
142 connected wireless LAN. If the list is prefixed with a "!", the test is inverted.</para>
143
144 <xi:include href="version-info.xml" xpointer="v244"/>
145 </listitem>
146 </varlistentry>
147
148 <varlistentry>
149 <term><varname>BSSID=</varname></term>
150 <listitem>
151 <para>A whitespace-separated list of hardware address of the currently connected wireless
152 LAN. Use full colon-, hyphen- or dot-delimited hexadecimal. See the example in
153 <varname>MACAddress=</varname>. This option may appear more than once, in which case the
154 lists are merged. If the empty string is assigned to this option, the list is reset.</para>
155
156 <xi:include href="version-info.xml" xpointer="v244"/>
157 </listitem>
158 </varlistentry>
159
160 <xi:include href="systemd.link.xml" xpointer="host" />
161 <xi:include href="systemd.link.xml" xpointer="virtualization" />
162 <xi:include href="systemd.link.xml" xpointer="kernel-command-line" />
163 <xi:include href="systemd.link.xml" xpointer="kernel-version" />
164 <xi:include href="systemd.link.xml" xpointer="version" />
165 <xi:include href="systemd.link.xml" xpointer="credential" />
166 <xi:include href="systemd.link.xml" xpointer="architecture" />
167 <xi:include href="systemd.link.xml" xpointer="firmware" />
168 </variablelist>
169 </refsect1>
170
171 <refsect1>
172 <title>[Link] Section Options</title>
173
174 <para>The [Link] section accepts the following keys:</para>
175
176 <variablelist class='network-directives'>
177 <varlistentry>
178 <term><varname>MACAddress=</varname></term>
179 <listitem>
180 <para>The hardware address to set for the device.</para>
181
182 <xi:include href="version-info.xml" xpointer="v218"/>
183 </listitem>
184 </varlistentry>
185
186 <varlistentry>
187 <term><varname>MTUBytes=</varname></term>
188 <listitem>
189 <para>The maximum transmission unit in bytes to set for the device. The usual suffixes K, M,
190 G, are supported and are understood to the base of 1024.</para>
191 <para>Note that if IPv6 is enabled on the interface, and the MTU is chosen below 1280 (the
192 minimum MTU for IPv6) it will automatically be increased to this value.</para>
193
194 <xi:include href="version-info.xml" xpointer="v218"/>
195 </listitem>
196 </varlistentry>
197
198 <varlistentry>
199 <term><varname>ARP=</varname></term>
200 <listitem>
201 <para>Takes a boolean. If set to true, the IPv4 ARP (low-level Address Resolution Protocol) and
202 IPv6 NDP (Neighbor Discovery Protocol) for this interface are enabled. For example, disabling ARP
203 is useful when creating multiple MACVLAN or VLAN virtual interfaces atop a single lower-level
204 physical interface, which will then only serve as a link/"bridge" device aggregating traffic to the
205 same physical link and not participate in the network otherwise. Defaults to unset, and enabled
206 when the IPv4 link-local addressing is enabled in <varname>LinkLocalAddressing=</varname> or an
207 IPv4 address with <varname>DuplicateAddressDetection=</varname> enabled is requested. Otherwise,
208 the kernel's default will be used.</para>
209
210 <xi:include href="version-info.xml" xpointer="v232"/>
211 </listitem>
212 </varlistentry>
213
214 <varlistentry>
215 <term><varname>Multicast=</varname></term>
216 <listitem>
217 <para>Takes a boolean. If set to true, the multicast flag on the device is enabled. Defaults
218 to unset and the flag is unchanged. When disabled, <varname>IPv6AcceptRA=</varname> and
219 <varname>IPv6SendRA=</varname> cannot be enabled.</para>
220
221 <xi:include href="version-info.xml" xpointer="v239"/>
222 </listitem>
223 </varlistentry>
224
225 <varlistentry>
226 <term><varname>AllMulticast=</varname></term>
227 <listitem>
228 <para>Takes a boolean. If set to true, the driver retrieves all multicast packets from the
229 network. This happens when multicast routing is enabled. Defaults to unset.</para>
230
231 <xi:include href="version-info.xml" xpointer="v239"/>
232 </listitem>
233 </varlistentry>
234
235 <varlistentry>
236 <term><varname>Promiscuous=</varname></term>
237 <listitem>
238 <para>Takes a boolean. If set to true, promiscuous mode of the interface is enabled. Defaults
239 to unset.</para>
240 <para>If this is set to false for the underlying link of a <literal>passthru</literal> mode
241 MACVLAN/MACVTAP, the virtual interface will be created with the <literal>nopromisc</literal>
242 flag set.</para>
243
244 <xi:include href="version-info.xml" xpointer="v248"/>
245 </listitem>
246 </varlistentry>
247
248 <varlistentry>
249 <term><varname>Unmanaged=</varname></term>
250 <listitem>
251 <para>Takes a boolean. When <literal>yes</literal>, no attempts are made to bring up or
252 configure matching links, equivalent to when there are no matching network files. Defaults to
253 <literal>no</literal>.</para>
254 <para>This is useful for preventing later matching network files from interfering with
255 certain interfaces that are fully controlled by other applications.</para>
256
257 <xi:include href="version-info.xml" xpointer="v233"/>
258 </listitem>
259 </varlistentry>
260
261 <varlistentry>
262 <term><varname>Group=</varname></term>
263 <listitem>
264 <para>Link groups are similar to port ranges found in managed switches. When network
265 interfaces are added to a numbered group, operations on all the interfaces from that group
266 can be performed at once. Takes an unsigned integer in the range 0…2147483647. Defaults to
267 unset.</para>
268
269 <xi:include href="version-info.xml" xpointer="v246"/>
270 </listitem>
271 </varlistentry>
272
273 <varlistentry>
274 <term><varname>RequiredForOnline=</varname></term>
275 <listitem>
276 <para>Takes a boolean, a minimum operational state (e.g., <literal>carrier</literal>), or a range
277 of operational state separated with a colon (e.g., <literal>degraded:routable</literal>).
278 Please see
279 <citerefentry><refentrytitle>networkctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
280 for possible operational states. When <literal>yes</literal>, the network is deemed required
281 when determining whether the system is online (including when running
282 <command>systemd-networkd-wait-online</command>). When <literal>no</literal>, the network is
283 ignored when determining the online state. When a minimum operational state and an optional
284 maximum operational state are set, <command>systemd-networkd-wait-online</command> deems that the
285 interface is online when the operational state is in the specified range.</para>
286
287 <para>Defaults to <literal>yes</literal> when <varname>ActivationPolicy=</varname> is not
288 set, or set to <literal>up</literal>, <literal>always-up</literal>, or
289 <literal>bound</literal>. Defaults to <literal>no</literal> when
290 <varname>ActivationPolicy=</varname> is set to <literal>manual</literal> or
291 <literal>down</literal>. This is forced to <literal>no</literal> when
292 <varname>ActivationPolicy=</varname> is set to <literal>always-down</literal>.</para>
293
294 <para>The network will be brought up normally (as configured by
295 <varname>ActivationPolicy=</varname>), but in the event that there is no address being
296 assigned by DHCP or the cable is not plugged in, the link will simply remain offline and be
297 skipped automatically by <command>systemd-networkd-wait-online</command> if
298 <literal>RequiredForOnline=no</literal>.</para>
299
300 <para>The boolean value <literal>yes</literal> is translated as follows;
301 <variablelist>
302 <varlistentry>
303 <term><option>CAN devices</option></term>
304 <listitem>
305 <para><literal>carrier</literal>,</para>
306 <xi:include href="version-info.xml" xpointer="v256"/>
307 </listitem>
308 </varlistentry>
309 <varlistentry>
310 <term><option>Master devices, e.g. bond or bridge</option></term>
311 <listitem>
312 <para><literal>degraded-carrier</literal> with <varname>RequiredFamilyForOnline=any</varname>,</para>
313 <xi:include href="version-info.xml" xpointer="v256"/>
314 </listitem>
315 </varlistentry>
316 <varlistentry>
317 <term><option>Bonding port interfaces</option></term>
318 <listitem>
319 <para><literal>enslaved</literal>,</para>
320 <xi:include href="version-info.xml" xpointer="v256"/>
321 </listitem>
322 </varlistentry>
323 <varlistentry>
324 <term><option>Other interfaces</option></term>
325 <listitem>
326 <para><literal>degraded</literal>.</para>
327 <xi:include href="version-info.xml" xpointer="v236"/>
328 </listitem>
329 </varlistentry>
330 </variablelist>
331 </para>
332
333 <para>This setting can be overridden by the command line option for
334 <command>systemd-networkd-wait-online</command>. See
335 <citerefentry><refentrytitle>systemd-networkd-wait-online.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
336 for more details.</para>
337
338 <xi:include href="version-info.xml" xpointer="v236"/>
339 </listitem>
340 </varlistentry>
341
342 <varlistentry>
343 <term><varname>RequiredFamilyForOnline=</varname></term>
344 <listitem>
345 <para>Takes an address family. When specified, an IP address in the given family is deemed
346 required when determining whether the link is online (including when running
347 <command>systemd-networkd-wait-online</command>). Takes one of <literal>ipv4</literal>,
348 <literal>ipv6</literal>, <literal>both</literal>, or <literal>any</literal>. Defaults to
349 <literal>no</literal>. Note that this option has no effect if
350 <literal>RequiredForOnline=no</literal>.</para>
351
352 <xi:include href="version-info.xml" xpointer="v249"/>
353 </listitem>
354 </varlistentry>
355
356 <varlistentry>
357 <term><varname>ActivationPolicy=</varname></term>
358 <listitem>
359 <para>Specifies the policy for <command>systemd-networkd</command> managing the link
360 administrative state. Specifically, this controls how <command>systemd-networkd</command>
361 changes the network device's <literal>IFF_UP</literal> flag, which is sometimes
362 controlled by system administrators by running e.g.,
363 <command>ip link set dev eth0 up</command> or <command>ip link set dev eth0 down</command>,
364 and can also be changed with <command>networkctl up eth0</command> or
365 <command>networkctl down eth0</command>.</para>
366
367 <para>Takes one of <literal>up</literal>, <literal>always-up</literal>,
368 <literal>manual</literal>, <literal>always-down</literal>, <literal>down</literal>,
369 or <literal>bound</literal>. When <literal>manual</literal>,
370 <command>systemd-networkd</command> will not change the link's admin state automatically;
371 the system administrator must bring the interface up or down manually, as desired. When
372 <literal>up</literal> (the default) or <literal>always-up</literal>, or
373 <literal>down</literal> or <literal>always-down</literal>,
374 <command>systemd-networkd</command> will set the link up or down, respectively, when the
375 interface is (re)configured. When <literal>always-up</literal> or
376 <literal>always-down</literal>, <command>systemd-networkd</command> will set the link up or
377 down, respectively, any time <command>systemd-networkd</command> detects a change in the
378 administrative state. When <varname>BindCarrier=</varname> is also set, this is automatically
379 set to <literal>bound</literal> and any other value is ignored.</para>
380
381 <para>When the policy is set to <literal>down</literal> or <literal>manual</literal>, the
382 default value of <varname>RequiredForOnline=</varname> is <literal>no</literal>. When the
383 policy is set to <literal>always-down</literal>, the value of
384 <varname>RequiredForOnline=</varname> forced to <literal>no</literal>.</para>
385
386 <para>The administrative state is not the same as the carrier state, so using
387 <literal>always-up</literal> does not mean the link will never lose carrier. The link carrier
388 depends on both the administrative state as well as the network device's physical connection.
389 However, to avoid reconfiguration failures, when using <literal>always-up</literal>,
390 <varname>IgnoreCarrierLoss=</varname> is forced to true.</para>
391
392 <xi:include href="version-info.xml" xpointer="v248"/>
393 </listitem>
394 </varlistentry>
395 </variablelist>
396 </refsect1>
397
398 <xi:include href="systemd.link.xml" xpointer="sr-iov" />
399
400 <refsect1>
401 <title>[Network] Section Options</title>
402
403 <para>The [Network] section accepts the following keys:</para>
404
405 <variablelist class='network-directives'>
406 <varlistentry>
407 <term><varname>Description=</varname></term>
408 <listitem>
409 <para>A description of the device. This is only used for presentation purposes.</para>
410
411 <xi:include href="version-info.xml" xpointer="v211"/>
412 </listitem>
413 </varlistentry>
414
415 <varlistentry>
416 <term><varname>DHCP=</varname></term>
417 <listitem>
418 <para>Enables DHCPv4 and/or DHCPv6 client support. Accepts <literal>yes</literal>,
419 <literal>no</literal>, <literal>ipv4</literal>, or <literal>ipv6</literal>. Defaults to
420 <literal>no</literal>.</para>
421
422 <para>Note that DHCPv6 will by default be triggered by Router Advertisements, if reception is
423 enabled, regardless of this parameter. By explicitly enabling DHCPv6 support here, the DHCPv6
424 client will be started in the mode specified by the <varname>WithoutRA=</varname> setting in the
425 [DHCPv6] section, regardless of the presence of routers on the link, or what flags the routers
426 pass. See <varname>IPv6AcceptRA=</varname>.</para>
427
428 <para>Furthermore, note that by default the domain name specified through DHCP is not used
429 for name resolution. See option <option>UseDomains=</option> below.</para>
430
431 <para>See the [DHCPv4] or [DHCPv6] sections below for further configuration options for the
432 DHCP client support.</para>
433
434 <xi:include href="version-info.xml" xpointer="v211"/>
435 </listitem>
436 </varlistentry>
437
438 <varlistentry>
439 <term><varname>DHCPRelay=</varname></term>
440 <listitem>
441 <para>Takes one of <literal>upstream</literal> or <literal>downstream</literal>. When specified,
442 the host acts as a DHCP relay agent. When set to <literal>upstream</literal>, the interface behaves
443 as an upstream interface of the DHCP relay agent. When set to <literal>downstream</literal>, the
444 interface behaves as a downstream interface of the DHCP relay agent. To make the DHCP relay agent
445 work, at least one upstream interface and one downstream interface must be configured on the host.
446 This requires <varname>ServerAddress=</varname> in the [DHCPRelay] section to be configured in
447 <filename>networkd.conf</filename>. If <varname>ServerAddress=</varname> is not configured, this
448 setting is ignored. See
449 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
450 for more details about <varname>ServerAddress=</varname> and other host-wide settings.
451 Also, further per-interface settings can be configured in the [DHCPRelay] section described below.
452 Defaults to unset, and the interface is not used for DHCP relay forwarding.</para>
453
454 <xi:include href="version-info.xml" xpointer="v261"/>
455 </listitem>
456 </varlistentry>
457
458 <varlistentry>
459 <term><varname>DHCPServer=</varname></term>
460 <listitem>
461 <para>Takes a boolean. If set to <literal>yes</literal>, DHCPv4 server will be started.
462 Defaults to <literal>no</literal>. Further settings for the DHCP server may be set in the
463 [DHCPServer] section described below.</para>
464
465 <para>Even if this is enabled, the DHCP server will not be started automatically and wait for the
466 persistent storage being ready to load/save leases in the storage, unless
467 <varname>PersistLeases=no/runtime</varname> is specified in the [DHCPServer] section. It will be
468 started after <filename>systemd-networkd-persistent-storage.service</filename> is started, which
469 calls <command>networkctl persistent-storage yes</command>. See
470 <citerefentry><refentrytitle>networkctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
471 for more details.</para>
472
473 <xi:include href="version-info.xml" xpointer="v215"/>
474 </listitem>
475 </varlistentry>
476
477 <varlistentry>
478 <term><varname>LinkLocalAddressing=</varname></term>
479 <listitem>
480 <para>Enables link-local address autoconfiguration. Accepts a boolean, <option>ipv4</option>,
481 and <option>ipv6</option>. An IPv6 link-local address is configured when <option>yes</option>
482 or <option>ipv6</option>. An IPv4 link-local address is configured when <option>yes</option>
483 or <option>ipv4</option> and when DHCPv4 autoconfiguration has been unsuccessful for some time.
484 (IPv4 link-local address autoconfiguration will usually happen in parallel with repeated attempts
485 to acquire a DHCPv4 lease).</para>
486
487 <para>Defaults to <option>no</option> when <varname>KeepMaster=</varname> or
488 <varname>Bridge=</varname> is set or when the specified
489 <varname>MACVLAN=</varname>/<varname>MACVTAP=</varname> has <varname>Mode=passthru</varname>,
490 or <option>ipv6</option> otherwise.</para>
491
492 <para>When IPv4 link-local addressing is enabled, <varname>ARP=</varname> is enabled unless if it
493 is explicitly configured.</para>
494
495 <xi:include href="version-info.xml" xpointer="v219"/>
496 </listitem>
497 </varlistentry>
498
499 <varlistentry>
500 <term><varname>IPv6LinkLocalAddressGenerationMode=</varname></term>
501 <listitem>
502 <para>Specifies how IPv6 link-local address is generated. Takes one of
503 <literal>eui64</literal>, <literal>none</literal>, <literal>stable-privacy</literal> and
504 <literal>random</literal>. When unset, <literal>stable-privacy</literal> is used if
505 <varname>IPv6StableSecretAddress=</varname> is specified, and if not,
506 <literal>eui64</literal> is used. Note that if <varname>LinkLocalAddressing=</varname> is
507 <literal>no</literal> or <literal>ipv4</literal>, then
508 <varname>IPv6LinkLocalAddressGenerationMode=</varname> will be ignored. Also, even if
509 <varname>LinkLocalAddressing=</varname> is <literal>yes</literal> or <literal>ipv6</literal>,
510 setting <varname>IPv6LinkLocalAddressGenerationMode=none</varname>
511 disables to configure an IPv6 link-local address.</para>
512
513 <xi:include href="version-info.xml" xpointer="v246"/>
514 </listitem>
515 </varlistentry>
516
517 <varlistentry>
518 <term><varname>IPv6StableSecretAddress=</varname></term>
519 <listitem>
520 <para>Takes an IPv6 address. The specified address will be used as a stable secret for
521 generating IPv6 link-local address. If this setting is specified, and
522 <varname>IPv6LinkLocalAddressGenerationMode=</varname> is unset, then
523 <varname>IPv6LinkLocalAddressGenerationMode=stable-privacy</varname> is implied.
524 If this setting is not specified, and <literal>stable-privacy</literal> is set to
525 <varname>IPv6LinkLocalAddressGenerationMode=</varname>,
526 then a stable secret address will be generated from the local machine ID and the interface
527 name.</para>
528
529 <xi:include href="version-info.xml" xpointer="v249"/>
530 </listitem>
531 </varlistentry>
532
533 <varlistentry>
534 <term><varname>IPv4LLStartAddress=</varname></term>
535 <listitem>
536 <para>Specifies the first IPv4 link-local address to try. Takes an IPv4 address for example
537 169.254.1.2, from the link-local address range: 169.254.0.0/16 except for 169.254.0.0/24 and
538 169.254.255.0/24. This setting may be useful if the device should always have the same address
539 as long as there is no address conflict. When unset, a random address will be automatically
540 selected. Defaults to unset.</para>
541
542 <xi:include href="version-info.xml" xpointer="v252"/>
543 </listitem>
544 </varlistentry>
545
546 <varlistentry>
547 <term><varname>IPv4LLRoute=</varname></term>
548 <listitem>
549 <para>Takes a boolean. If set to true, sets up the route needed for non-IPv4LL hosts to
550 communicate with IPv4LL-only hosts. Defaults to false.</para>
551
552 <xi:include href="version-info.xml" xpointer="v216"/>
553 </listitem>
554 </varlistentry>
555
556 <varlistentry>
557 <term><varname>DefaultRouteOnDevice=</varname></term>
558 <listitem>
559 <para>Takes a boolean. If set to true, sets up the IPv4 default route bound to the interface.
560 Defaults to false. This is useful when creating routes on point-to-point interfaces. This is
561 equivalent to e.g. the following,
562 <programlisting>ip route add default dev veth99</programlisting>
563 or,
564 <programlisting>[Route]
565 Gateway=0.0.0.0</programlisting></para>
566 <para>Currently, there are no way to specify e.g., the table for the route configured by this
567 setting. To configure the default route with such an additional property, please use the
568 following instead:
569 <programlisting>[Route]
570 Gateway=0.0.0.0
571 Table=1234</programlisting></para>
572 <para>If you'd like to create an IPv6 default route bound to the interface, please use the
573 following:
574 <programlisting>[Route]
575 Gateway=::
576 Table=1234</programlisting></para>
577
578 <xi:include href="version-info.xml" xpointer="v243"/>
579 </listitem>
580 </varlistentry>
581
582 <varlistentry>
583 <term><varname>LLMNR=</varname></term>
584 <listitem>
585 <para>Takes a boolean or <literal>resolve</literal>. When true, enables
586 <ulink url="https://tools.ietf.org/html/rfc4795">Link-Local Multicast Name Resolution</ulink>
587 on the link. When set to <literal>resolve</literal>, only resolution is enabled, but not host
588 registration and announcement. Defaults to true. This setting is read by
589 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
590 </para>
591
592 <xi:include href="version-info.xml" xpointer="v216"/>
593 </listitem>
594 </varlistentry>
595
596 <varlistentry>
597 <term><varname>MulticastDNS=</varname></term>
598 <listitem>
599 <para>Takes a boolean or <literal>resolve</literal>. When true, enables
600 <ulink url="https://tools.ietf.org/html/rfc6762">Multicast DNS</ulink> support on the link.
601 When set to <literal>resolve</literal>, only resolution is enabled, but not host or service
602 registration and announcement. Defaults to false. This setting is read by
603 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
604 </para>
605
606 <xi:include href="version-info.xml" xpointer="v229"/>
607 </listitem>
608 </varlistentry>
609
610 <varlistentry>
611 <term><varname>DNSOverTLS=</varname></term>
612 <listitem>
613 <para>Takes a boolean or <literal>opportunistic</literal>. When true, enables
614 <ulink url="https://tools.ietf.org/html/rfc7858">DNS-over-TLS</ulink> support on the link.
615 When set to <literal>opportunistic</literal>, compatibility with non-DNS-over-TLS servers is
616 increased, by automatically turning off DNS-over-TLS servers in this case. This option
617 defines a per-interface setting for
618 <citerefentry><refentrytitle>resolved.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>'s
619 global <varname>DNSOverTLS=</varname> option. Defaults to unset, and the global setting will
620 be used. This setting is read by
621 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
622 </para>
623
624 <xi:include href="version-info.xml" xpointer="v239"/>
625 </listitem>
626 </varlistentry>
627
628 <varlistentry>
629 <term><varname>DNSSEC=</varname></term>
630 <listitem>
631 <para>Takes a boolean or <literal>allow-downgrade</literal>. When true, enables
632 <ulink url="https://tools.ietf.org/html/rfc4033">DNSSEC</ulink> DNS validation support on the
633 link. When set to <literal>allow-downgrade</literal>, compatibility with non-DNSSEC capable
634 networks is increased, by automatically turning off DNSSEC in this case. This option defines
635 a per-interface setting for
636 <citerefentry><refentrytitle>resolved.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>'s
637 global <varname>DNSSEC=</varname> option. Defaults to unset, and the global setting will be
638 used. This setting is read by
639 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
640 </para>
641
642 <xi:include href="version-info.xml" xpointer="v229"/>
643 </listitem>
644 </varlistentry>
645
646 <varlistentry>
647 <term><varname>DNSSECNegativeTrustAnchors=</varname></term>
648 <listitem>
649 <para>A space-separated list of DNSSEC negative trust anchor domains. If specified and DNSSEC
650 is enabled, look-ups done via the interface's DNS server will be subject to the list of
651 negative trust anchors, and not require authentication for the specified domains, or anything
652 below it. Use this to disable DNSSEC authentication for specific private domains, that cannot
653 be proven valid using the Internet DNS hierarchy. Defaults to the empty list. This setting is
654 read by
655 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
656 </para>
657
658 <xi:include href="version-info.xml" xpointer="v229"/>
659 </listitem>
660 </varlistentry>
661
662 <varlistentry>
663 <term><varname>LLDP=</varname></term>
664 <listitem>
665 <para>Controls support for Ethernet LLDP packet reception. LLDP is a link-layer protocol
666 commonly implemented on professional routers and bridges which announces which physical port
667 a system is connected to, as well as other related data. Accepts a boolean or the special
668 value <literal>routers-only</literal>. When true, incoming LLDP packets are accepted and a
669 database of all LLDP neighbors maintained. If <literal>routers-only</literal> is set only
670 LLDP data of various types of routers is collected and LLDP data about other types of devices
671 ignored (such as stations, telephones and others). If false, LLDP reception is disabled.
672 Defaults to <literal>routers-only</literal>. Use
673 <citerefentry><refentrytitle>networkctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
674 to query the collected neighbor data. LLDP is only available on Ethernet links. See
675 <varname>EmitLLDP=</varname> below for enabling LLDP packet emission from the local system.
676 </para>
677
678 <xi:include href="version-info.xml" xpointer="v219"/>
679 </listitem>
680 </varlistentry>
681
682 <varlistentry>
683 <term><varname>EmitLLDP=</varname></term>
684 <listitem>
685 <para>Controls support for Ethernet LLDP packet emission. Accepts a boolean parameter or the
686 special values <literal>nearest-bridge</literal>, <literal>non-tpmr-bridge</literal> and
687 <literal>customer-bridge</literal>. Defaults to false, which turns off LLDP packet emission.
688 If not false, a short LLDP packet with information about the local system is sent out in
689 regular intervals on the link. The LLDP packet will contain information about the local
690 hostname, the local machine ID (as stored in
691 <citerefentry><refentrytitle>machine-id</refentrytitle><manvolnum>5</manvolnum></citerefentry>)
692 and the local interface name, as well as the pretty hostname of the system (as set in
693 <citerefentry><refentrytitle>machine-info</refentrytitle><manvolnum>5</manvolnum></citerefentry>).
694 LLDP emission is only available on Ethernet links. Note that this setting passes data
695 suitable for identification of host to the network and should thus not be enabled on
696 untrusted networks, where such identification data should not be made available. Use this
697 option to permit other systems to identify on which interfaces they are connected to this
698 system. The three special values control propagation of the LLDP packets. The
699 <literal>nearest-bridge</literal> setting permits propagation only to the nearest connected
700 bridge, <literal>non-tpmr-bridge</literal> permits propagation across Two-Port MAC Relays,
701 but not any other bridges, and <literal>customer-bridge</literal> permits propagation until
702 a customer bridge is reached. For details about these concepts, see
703 <ulink url="https://standards.ieee.org/findstds/standard/802.1AB-2016.html">IEEE 802.1AB-2016</ulink>.
704 Note that configuring this setting to true is equivalent to
705 <literal>nearest-bridge</literal>, the recommended and most restricted level of propagation.
706 See <varname>LLDP=</varname> above for an option to enable LLDP reception.</para>
707
708 <xi:include href="version-info.xml" xpointer="v230"/>
709 </listitem>
710 </varlistentry>
711
712 <varlistentry>
713 <term><varname>BindCarrier=</varname></term>
714 <listitem>
715 <para>A link name or a list of link names. When set, controls the behavior of the current
716 link. When all links in the list are in an operational down state, the current link is
717 brought down. When at least one link has carrier, the current interface is brought up.</para>
718
719 <para>This forces <varname>ActivationPolicy=</varname> to be set to <literal>bound</literal>.
720 </para>
721
722 <xi:include href="version-info.xml" xpointer="v220"/>
723 </listitem>
724 </varlistentry>
725
726 <varlistentry>
727 <term><varname>Address=</varname></term>
728 <listitem>
729 <para>A static IPv4 or IPv6 address and its prefix length, separated by a
730 <literal>/</literal> character. Specify this key more than once to configure several
731 addresses. The format of the address must be as described in
732 <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
733 This is a short-hand for an [Address] section only containing an Address key (see below).
734 This option may be specified more than once.</para>
735
736 <para>If the specified address is <literal>0.0.0.0</literal> (for IPv4) or
737 <literal>::</literal> (for IPv6), a new address range of the requested size is automatically
738 allocated from a system-wide pool of unused ranges. Note that the prefix length must be equal
739 or larger than 8 for IPv4, and 64 for IPv6. The allocated range is checked against all
740 current network interfaces and all known network configuration files to avoid address range
741 conflicts. The default system-wide pool consists of 192.168.0.0/16, 172.16.0.0/12 and
742 10.0.0.0/8 for IPv4, and fd00::/8 for IPv6. This functionality is useful to manage a large
743 number of dynamically created network interfaces with the same network configuration and
744 automatic address range assignment.</para>
745
746 <para>If an IPv4 link-local address (169.254.0.0/16) is specified, IPv4 Address Conflict
747 Detection (<ulink url="https://tools.ietf.org/html/rfc5227">RFC 5227</ulink>) is enabled for the
748 address. To assign an IPv4 link-local address without IPv4 Address Conflict Detection, please use
749 [Address] section to configure the address and disable <varname>DuplicateAddressDetection=</varname>.
750 <programlisting>[Address]
751 Address=169.254.10.1/24
752 DuplicateAddressDetection=none</programlisting></para>
753
754 <para>If an empty string is specified, then the all previous assignments in both [Network] and
755 [Address] sections are cleared.</para>
756
757 <xi:include href="version-info.xml" xpointer="v211"/>
758 </listitem>
759 </varlistentry>
760
761 <varlistentry>
762 <term><varname>Gateway=</varname></term>
763 <listitem>
764 <para>The gateway address, which must be in the format described in
765 <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
766 This is a short-hand for a [Route] section only containing a <varname>Gateway=</varname> key.
767 This option may be specified more than once.</para>
768
769 <para>If an empty string is specified, then the all previous assignments in both [Network] and
770 [Route] sections are cleared.</para>
771
772 <xi:include href="version-info.xml" xpointer="v211"/>
773 </listitem>
774 </varlistentry>
775
776 <varlistentry>
777 <term><varname>DNS=</varname></term>
778 <listitem>
779 <para>A DNS server address, which must be in the format described in
780 <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
781 This option may be specified more than once. Each address can optionally take a port number
782 separated with <literal>:</literal>, a network interface name or index separated with
783 <literal>%</literal>, and a Server Name Indication (SNI) separated with <literal>#</literal>.
784 When IPv6 address is specified with a port number, then the address must be in the square
785 brackets. That is, the acceptable full formats are
786 <literal>111.222.333.444:9953%ifname#example.com</literal> for IPv4 and
787 <literal>[1111:2222::3333]:9953%ifname#example.com</literal> for IPv6. If an empty string is
788 assigned, then the all previous assignments are cleared. This setting is read by
789 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
790 </para>
791
792 <xi:include href="version-info.xml" xpointer="v211"/>
793 </listitem>
794 </varlistentry>
795
796 <varlistentry>
797 <term><varname>UseDomains=</varname></term>
798 <listitem>
799 <para>Specifies the protocol-independent default value for the same settings in
800 [IPv6AcceptRA], [DHCPv4], and [DHCPv6] sections below. Takes a boolean, or the special value
801 <option>route</option>. See also the same setting in [DHCPv4] below. Defaults to unset.</para>
802
803 <xi:include href="version-info.xml" xpointer="v256"/>
804 </listitem>
805 </varlistentry>
806
807 <varlistentry>
808 <term><varname>Domains=</varname></term>
809 <listitem>
810 <para>A whitespace-separated list of domains which should be resolved using the DNS servers
811 on this link. Each item in the list should be a domain name, optionally prefixed with a tilde
812 (<literal>~</literal>). The domains with the prefix are called "routing-only domains". The
813 domains without the prefix are called "search domains" and are first used as search suffixes
814 for extending single-label hostnames (hostnames containing no dots) to become fully qualified
815 domain names (FQDNs). If a single-label hostname is resolved on this interface, each of the
816 specified search domains are appended to it in turn, converting it into a fully qualified
817 domain name, until one of them may be successfully resolved.</para>
818
819 <para>Both "search" and "routing-only" domains are used for routing of DNS queries: look-ups
820 for hostnames ending in those domains (hence also single label names, if any "search domains"
821 are listed), are routed to the DNS servers configured for this interface. The domain routing
822 logic is particularly useful on multi-homed hosts with DNS servers serving particular private
823 DNS zones on each interface.</para>
824
825 <para>The "routing-only" domain <literal>~.</literal> (the tilde indicating definition of a
826 routing domain, the dot referring to the DNS root domain which is the implied suffix of all
827 valid DNS names) has special effect. It causes all DNS traffic which does not match another
828 configured domain routing entry to be routed to DNS servers specified for this interface.
829 This setting is useful to prefer a certain set of DNS servers if a link on which they are
830 connected is available.</para>
831
832 <para>This setting is read by
833 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
834 "Search domains" correspond to the <varname>domain</varname> and <varname>search</varname>
835 entries in
836 <citerefentry project='man-pages'><refentrytitle>resolv.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
837 Domain name routing has no equivalent in the traditional glibc API, which has no concept of
838 domain name servers limited to a specific link.</para>
839
840 <xi:include href="version-info.xml" xpointer="v216"/>
841 </listitem>
842 </varlistentry>
843
844 <varlistentry>
845 <term><varname>DNSDefaultRoute=</varname></term>
846 <listitem>
847 <para>Takes a boolean argument. If true, this link's configured DNS servers are used for
848 resolving domain names that do not match any link's configured <varname>Domains=</varname>
849 setting. If false, this link's configured DNS servers are never used for such domains, and
850 are exclusively used for resolving names that match at least one of the domains configured on
851 this link. If not specified, defaults to an automatic mode: queries not matching any link's
852 configured domains will be routed to this link if it has no routing-only domains configured.
853 </para>
854
855 <xi:include href="version-info.xml" xpointer="v240"/>
856 </listitem>
857 </varlistentry>
858
859 <varlistentry>
860 <term><varname>NTP=</varname></term>
861 <listitem>
862 <para>An NTP server address (either an IP address, or a hostname). This option may be
863 specified more than once. This setting is read by
864 <citerefentry><refentrytitle>systemd-timesyncd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
865 </para>
866
867 <xi:include href="version-info.xml" xpointer="v216"/>
868 </listitem>
869 </varlistentry>
870
871 <varlistentry>
872 <term><varname>IPv4Forwarding=</varname></term>
873 <listitem>
874 <para>Configures IPv4 packet forwarding for the interface. Takes a boolean value. This controls the
875 <filename>net.ipv4.conf.<replaceable>INTERFACE</replaceable>.forwarding</filename> sysctl option of
876 the network interface. See
877 <ulink url="https://docs.kernel.org/networking/ip-sysctl.html">IP Sysctl</ulink>
878 for more details about the sysctl option. Defaults to true if <varname>IPMasquerade=</varname> is
879 enabled for IPv4, otherwise the value specified to the same setting in
880 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
881 will be used. If none of them are specified, the sysctl option will not be changed.</para>
882
883 <para>To control the global setting, use the same setting in
884 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
885 </para>
886
887 <xi:include href="version-info.xml" xpointer="v256"/>
888 </listitem>
889 </varlistentry>
890
891 <varlistentry>
892 <term><varname>IPv6Forwarding=</varname></term>
893 <listitem>
894 <para>Configures interface-specific host/router behaviour. Takes a boolean value. This controls the
895 <filename>net.ipv6.conf.<replaceable>INTERFACE</replaceable>.forwarding</filename> sysctl option of
896 the network interface. See
897 <ulink url="https://docs.kernel.org/networking/ip-sysctl.html">IP Sysctl</ulink>
898 for more details about the sysctl option. Defaults to true if <varname>IPMasquerade=</varname> is
899 enabled for IPv6 or <varname>IPv6SendRA=</varname> is enabled, otherwise the value specified to the
900 same setting in
901 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
902 will be used. If none of them are specified, the sysctl option will not be changed.</para>
903
904 <para>To control the global setting, use the same setting in
905 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
906 </para>
907
908 <para>Note, unlike <varname>IPv4Forwarding=</varname>, enabling per-interface
909 <varname>IPv6Forwarding=</varname> on two or more interfaces <emphasis>DOES NOT</emphasis> make IPv6
910 packets forwarded within the interfaces. This setting just controls the per-interface sysctl value,
911 and the sysctl value is not directly correlated to whether packets are forwarded. To ensure IPv6
912 packets forwarded, the global setting in
913 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
914 needs to be enabled.</para>
915
916 <xi:include href="version-info.xml" xpointer="v256"/>
917 </listitem>
918 </varlistentry>
919
920 <varlistentry>
921 <term><varname>IPMasquerade=</varname></term>
922 <listitem>
923 <para>Configures IP masquerading for the network interface. If enabled, packets forwarded
924 from the network interface will appear as coming from the local host. Typically, this should be
925 enabled on the downstream interface of routers. Takes one of <literal>ipv4</literal>,
926 <literal>ipv6</literal>, <literal>both</literal>, or <literal>no</literal>. Defaults to
927 <literal>no</literal>. Note that any positive boolean values such as <literal>yes</literal> or
928 <literal>true</literal> are now deprecated. Please use one of the values above. Specifying
929 <literal>ipv4</literal> or <literal>both</literal> implies <varname>IPv4Forwarding=</varname>
930 settings in both .network file for this interface and the global
931 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
932 unless they are explicitly specified. Similarly for <varname>IPv6Forwarding=</varname> when
933 <literal>ipv6</literal> or <literal>both</literal> is specified. See
934 <varname>IPv4Forwarding=</varname>/<varname>IPv6Forwarding=</varname> in the above for the per-link
935 settings, and
936 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
937 for the global settings.</para>
938
939 <xi:include href="version-info.xml" xpointer="v219"/>
940 </listitem>
941 </varlistentry>
942
943 <varlistentry>
944 <term><varname>IPv6PrivacyExtensions=</varname></term>
945 <listitem>
946 <para>Configures use of stateless temporary addresses that change over time (see
947 <ulink url="https://tools.ietf.org/html/rfc4941">RFC 4941</ulink>,
948 Privacy Extensions for Stateless Address Autoconfiguration in IPv6). Takes a boolean or the
949 special values <literal>prefer-public</literal> and <literal>kernel</literal>. When true,
950 enables the privacy extensions and prefers temporary addresses over public addresses. When
951 <literal>prefer-public</literal>, enables the privacy extensions, but prefers public
952 addresses over temporary addresses. When false, the privacy extensions remain disabled. When
953 <literal>kernel</literal>, the kernel's default setting will be left in place. When unspecified,
954 the value specified in the same setting in
955 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
956 which defaults to <literal>no</literal>, will be used.</para>
957
958 <xi:include href="version-info.xml" xpointer="v222"/>
959 </listitem>
960 </varlistentry>
961
962 <varlistentry>
963 <term><varname>IPv6AcceptRA=</varname></term>
964 <listitem>
965 <para>Takes a boolean. Controls IPv6 Router Advertisement (RA) reception support for the interface.
966 If true, RAs are accepted; if false, RAs are ignored. When RAs are accepted, they may trigger the
967 start of the DHCPv6 client if the relevant flags are set in the RA data, or if no routers are found
968 on the link.</para>
969
970 <para>This cannot be enabled on devices aggregated in a bond device, or when IPv6 link-local
971 addressing (see <varname>LinkLocalAddressing=</varname>) or multicasting (see
972 <varname>Multicast=</varname>) is disabled. Note, multicasting is disabled by default for some
973 configurations, e.g. bridge ports. Hence, in that case <varname>Multicast=</varname> needs to be
974 explicitly enabled to make this feature usable. When <varname>IPv6SendRA=</varname>,
975 <varname>IPv6Forwarding=</varname>, or <varname>IPMasquerade=</varname> is enabled, this feature is
976 disabled by default, but can be overridden by explicitly enabling this setting. Note,
977 <varname>IPv6Forwarding=</varname> may be indirectly enabled when the global setting with the same
978 name is enabled, or when <varname>IPMasquerade=</varname> is enabled on <emphasis>any other
979 interfaces</emphasis>. See also <varname>IPv6Forwarding=</varname> and
980 <varname>IPMasquerade=</varname> for more details. Enabled by default otherwise.</para>
981
982 <para>Further settings for the IPv6 RA support may be configured in the [IPv6AcceptRA]
983 section, see below.</para>
984
985 <para>Also see
986 <ulink url="https://docs.kernel.org/networking/ip-sysctl.html">IP Sysctl</ulink>
987 in the kernel documentation regarding <literal>accept_ra</literal>, but note that systemd's
988 setting of <constant>1</constant> (i.e. true) corresponds to kernel's setting of
989 <constant>2</constant>.</para>
990
991 <para>Note that kernel's implementation of the IPv6 RA protocol is always disabled,
992 regardless of this setting. If this option is enabled, a userspace implementation of the IPv6
993 RA protocol is used, and the kernel's own implementation remains disabled, since
994 <command>systemd-networkd</command> needs to know all details supplied in the advertisements,
995 and these are not available from the kernel if the kernel's own implementation is used.
996 </para>
997
998 <xi:include href="version-info.xml" xpointer="v231"/>
999 </listitem>
1000 </varlistentry>
1001
1002 <varlistentry>
1003 <term><varname>IPv6DuplicateAddressDetection=</varname></term>
1004 <listitem>
1005 <para>Configures the amount of IPv6 Duplicate Address Detection (DAD) probes to send. When
1006 unset, the kernel's default will be used.</para>
1007
1008 <xi:include href="version-info.xml" xpointer="v228"/>
1009 </listitem>
1010 </varlistentry>
1011
1012 <varlistentry>
1013 <term><varname>IPv6HopLimit=</varname></term>
1014 <listitem>
1015 <para>Configures IPv6 Hop Limit. Takes an integer in the range 1…255. For each router that
1016 forwards the packet, the hop limit is decremented by 1. When the hop limit field reaches zero, the
1017 packet is discarded. When unset, the kernel's default will be used.</para>
1018
1019 <xi:include href="version-info.xml" xpointer="v228"/>
1020 </listitem>
1021 </varlistentry>
1022
1023 <varlistentry>
1024 <term><varname>IPv6RetransmissionTimeSec=</varname></term>
1025 <listitem>
1026 <para>Configures IPv6 Retransmission Time. The time between retransmitted Neighbor
1027 Solicitation messages. Used by address resolution and the Neighbor Unreachability
1028 Detection algorithm. A value of zero is ignored and the kernel's current value
1029 will be used. Defaults to unset, and the kernel's current value will be used.</para>
1030
1031 <xi:include href="version-info.xml" xpointer="v256"/>
1032 </listitem>
1033 </varlistentry>
1034
1035 <varlistentry>
1036 <term><varname>IPv4DuplicateAddressDetectionTimeoutSec=</varname></term>
1037 <listitem>
1038 <para>Configures the maximum timeout for IPv4 Duplicate Address Detection (RFC 5227). Must be a
1039 value between 1 millisecond and 60 seconds. If set, Duplicate Address Detection takes a randomized
1040 time between 57% (4/7) and 100% of the given value. If unset, defaults to 200 milliseconds.</para>
1041
1042 <xi:include href="version-info.xml" xpointer="v258"/>
1043 </listitem>
1044 </varlistentry>
1045
1046 <varlistentry>
1047 <term><varname>IPv4ReversePathFilter=</varname></term>
1048 <listitem>
1049 <para>Configure IPv4 Reverse Path Filtering. If enabled, when an IPv4 packet is received, the machine will first check
1050 whether the <emphasis>source</emphasis> of the packet would be routed through the interface it came in. If there is no
1051 route to the source on that interface, the machine will drop the packet. Takes one of
1052 <literal>no</literal>, <literal>strict</literal>, or <literal>loose</literal>. When <literal>no</literal>,
1053 no source validation will be done. When <literal>strict</literal>, each incoming packet is tested against the FIB and
1054 if the incoming interface is not the best reverse path, the packet check will fail. By default, failed packets are discarded.
1055 When <literal>loose</literal>, each incoming packet's source address is tested against the FIB. The packet is dropped
1056 only if the source address is not reachable via any interface on that router.
1057 See <ulink url="https://tools.ietf.org/html/rfc1027">RFC 3704</ulink>.
1058 When unset, the kernel's default will be used.</para>
1059
1060 <xi:include href="version-info.xml" xpointer="v255"/>
1061 </listitem>
1062 </varlistentry>
1063
1064 <varlistentry>
1065 <term><varname>MulticastIGMPVersion=</varname></term>
1066 <listitem>
1067 <para>Configures IPv4 Multicast IGMP Version to be used, and controls the value of
1068 <filename>/proc/sys/net/ipv4/conf/<replaceable>INTERFACE</replaceable>/force_igmp_version</filename>.
1069 Takes one of <literal>no</literal>,
1070 <literal>v1</literal>, <literal>v2</literal>, or <literal>v3</literal>.
1071 When <literal>no</literal>, no enforcement of an IGMP version is applied. IGMPv1/v2 fallbacks are allowed, and
1072 <command>systemd-networkd</command> will return to
1073 IGMPv3 mode after all IGMPv1/v2 Querier Present timers have expired.
1074 When <literal>v1</literal>, use of IGMP version 1 is enforced. An IGMPv1 report will be returned even if IGMPv2/v3
1075 queries are received.
1076 When <literal>v2</literal>, use of IGMP version 2 is enforced. An IGMPv2 report will be returned if an IGMPv2/v3 query
1077 is received. <command>systemd-networkd</command> will fall back to IGMPv1 if an IGMPv1 query is received.
1078 When <literal>v3</literal>, use of IGMP version 3 is enforced, and the response is the same as with <literal>no</literal>.
1079 Defaults to unset — the sysctl is not set.
1080 </para>
1081
1082 <xi:include href="version-info.xml" xpointer="v257"/>
1083 </listitem>
1084 </varlistentry>
1085
1086 <varlistentry>
1087 <term><varname>IPv4AcceptLocal=</varname></term>
1088 <listitem>
1089 <para>Takes a boolean. Accept packets with local source addresses. In combination with
1090 suitable routing, this can be used to direct packets between two local interfaces over the
1091 wire and have them accepted properly. When unset, the kernel's default will be used.</para>
1092
1093 <xi:include href="version-info.xml" xpointer="v246"/>
1094 </listitem>
1095 </varlistentry>
1096
1097 <varlistentry>
1098 <term><varname>IPv4RouteLocalnet=</varname></term>
1099 <listitem>
1100 <para>Takes a boolean. When true, the kernel does not consider loopback addresses as martian
1101 source or destination while routing. This enables the use of 127.0.0.0/8 for local routing
1102 purposes. When unset, the kernel's default will be used.</para>
1103
1104 <xi:include href="version-info.xml" xpointer="v248"/>
1105 </listitem>
1106 </varlistentry>
1107
1108 <varlistentry>
1109 <term><varname>IPv4SrcValidMark=</varname></term>
1110 <listitem>
1111 <para>Takes a boolean. When enabled, the packet's firewall mark (fwmark) is included in the
1112 reverse path filter route lookup for source address validation on this interface. This is
1113 particularly useful for policy routing setups where packets may arrive with source addresses
1114 that are only valid in routing tables selected by their fwmark. When unset, the kernel's
1115 default will be used.</para>
1116
1117 <xi:include href="version-info.xml" xpointer="v261"/>
1118 </listitem>
1119 </varlistentry>
1120
1121 <varlistentry>
1122 <term><varname>IPv4ProxyARP=</varname></term>
1123 <listitem>
1124 <para>Takes a boolean. Configures proxy ARP for IPv4. Proxy ARP is the technique in which one
1125 host, usually a router, answers ARP requests intended for another machine. By "faking" its
1126 identity, the router accepts responsibility for routing packets to the "real" destination.
1127 See <ulink url="https://tools.ietf.org/html/rfc1027">RFC 1027</ulink>. When unset, the
1128 kernel's default will be used.</para>
1129
1130 <xi:include href="version-info.xml" xpointer="v233"/>
1131 </listitem>
1132 </varlistentry>
1133
1134 <varlistentry>
1135 <term><varname>IPv4ProxyARPPrivateVLAN=</varname></term>
1136 <listitem>
1137 <para>Takes a boolean. Configures proxy ARP private VLAN for IPv4, also known as VLAN aggregation,
1138 private VLAN, source-port filtering, port-isolation, or MAC-forced forwarding.</para>
1139
1140 <para>This variant of the ARP proxy technique will allow the ARP proxy to reply back to the same
1141 interface.</para>
1142
1143 <para>See <ulink url="https://tools.ietf.org/html/rfc3069">RFC 3069</ulink>. When unset,
1144 the kernel's default will be used.</para>
1145 <xi:include href="version-info.xml" xpointer="v256"/>
1146 </listitem>
1147 </varlistentry>
1148
1149 <varlistentry>
1150 <term><varname>IPv6ProxyNDP=</varname></term>
1151 <listitem>
1152 <para>Takes a boolean. Configures proxy NDP for IPv6. Proxy NDP (Neighbor Discovery Protocol)
1153 is a technique for IPv6 to allow routing of addresses to a different destination when peers
1154 expect them to be present on a certain physical link. In this case, a router answers Neighbour
1155 Advertisement messages intended for another machine by offering its own MAC address as
1156 destination. Unlike proxy ARP for IPv4, it is not enabled globally, but will only send
1157 Neighbour Advertisement messages for addresses in the IPv6 neighbor proxy table, which can
1158 also be shown by <command>ip -6 neighbour show proxy</command>.
1159 <command>systemd-networkd</command> will control the per-interface `proxy_ndp` switch for each
1160 configured interface depending on this option. When unset, the kernel's default will be used.
1161 </para>
1162
1163 <xi:include href="version-info.xml" xpointer="v234"/>
1164 </listitem>
1165 </varlistentry>
1166
1167 <varlistentry>
1168 <term><varname>IPv6ProxyNDPAddress=</varname></term>
1169 <listitem>
1170 <para>An IPv6 address, for which Neighbour Advertisement messages will be proxied. This
1171 option may be specified more than once. <command>systemd-networkd</command> will add the
1172 <varname>IPv6ProxyNDPAddress=</varname> entries to the kernel's IPv6 neighbor proxy table.
1173 This setting implies <varname>IPv6ProxyNDP=yes</varname> but has no effect if
1174 <varname>IPv6ProxyNDP=</varname> has been set to false. When unset, the kernel's default will
1175 be used.</para>
1176
1177 <xi:include href="version-info.xml" xpointer="v233"/>
1178 </listitem>
1179 </varlistentry>
1180
1181 <varlistentry>
1182 <term><varname>IPv6SendRA=</varname></term>
1183 <listitem>
1184 <para>Whether to enable or disable Router Advertisement sending on a link. Takes a boolean
1185 value. When enabled, prefixes configured in [IPv6Prefix] sections and routes configured in
1186 the [IPv6RoutePrefix] sections are distributed as defined in the [IPv6SendRA] section. If
1187 <varname>DHCPPrefixDelegation=</varname> is enabled, then the delegated prefixes are also
1188 distributed. See <varname>DHCPPrefixDelegation=</varname> setting and the [IPv6SendRA],
1189 [IPv6Prefix], [IPv6RoutePrefix], and [DHCPPrefixDelegation] sections for more configuration
1190 options.</para>
1191 <para>If enabled, <varname>IPv6Forwarding=</varname> on this interface is also enabled, unless
1192 the setting is explicitly specified. See <varname>IPv6Forwarding=</varname> in the above for more
1193 details.</para>
1194
1195 <xi:include href="version-info.xml" xpointer="v247"/>
1196 </listitem>
1197 </varlistentry>
1198
1199 <varlistentry>
1200 <term><varname>DHCPPrefixDelegation=</varname></term>
1201 <listitem>
1202 <para>Takes a boolean value. When enabled, requests subnet prefixes on another link via the DHCPv6
1203 protocol or via the 6RD option in the DHCPv4 protocol. An address within each delegated prefix will
1204 be assigned, and the prefixes will be announced through IPv6 Router Advertisement if
1205 <varname>IPv6SendRA=</varname> is enabled. This behaviour can be configured in the
1206 [DHCPPrefixDelegation] section. Defaults to disabled.</para>
1207
1208 <xi:include href="version-info.xml" xpointer="v250"/>
1209 </listitem>
1210 </varlistentry>
1211
1212 <varlistentry>
1213 <term><varname>IPv6MTUBytes=</varname></term>
1214 <listitem>
1215 <para>Configures IPv6 maximum transmission unit (MTU). An integer greater than or equal to
1216 1280 bytes. When unset, the kernel's default will be used.</para>
1217
1218 <xi:include href="version-info.xml" xpointer="v239"/>
1219 </listitem>
1220 </varlistentry>
1221
1222 <varlistentry>
1223 <term><varname>MPLSRouting=</varname></term>
1224 <listitem>
1225 <para>Control whether Multi-protocol Label Switching (MPLS) routing is enabled on this interface.
1226 This configures <filename>/proc/sys/net/mpls/conf/<replaceable>INTERFACE</replaceable>/input</filename>.
1227 Takes a boolean. Defaults to unset, and the kernel's default will be used.</para>
1228
1229 <para>Note, <command>systemd-networkd</command> does <emphasis>not</emphasis> load any required
1230 kernel modules for MPLS. To enable the feature, <filename>mpls_router</filename> kernel module must
1231 be loaded before <filename>systemd-networkd.service</filename> is started. Consider adding the
1232 kernel module to
1233 <citerefentry><refentrytitle>modules-load.d</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
1234 </para>
1235
1236 <xi:include href="version-info.xml" xpointer="v258"/>
1237 </listitem>
1238 </varlistentry>
1239
1240 <varlistentry>
1241 <term><varname>KeepMaster=</varname></term>
1242 <listitem>
1243 <para>Takes a boolean value. When enabled, the current master interface index will not be
1244 changed, and <varname>BatmanAdvanced=</varname>, <varname>Bond=</varname>,
1245 <varname>Bridge=</varname>, and <varname>VRF=</varname> settings are ignored. This may be
1246 useful when a netdev with a master interface is created by another program, e.g.
1247 <citerefentry><refentrytitle>systemd-nspawn</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
1248 Defaults to false.</para>
1249
1250 <xi:include href="version-info.xml" xpointer="v250"/>
1251 </listitem>
1252 </varlistentry>
1253
1254 <varlistentry>
1255 <term><varname>BatmanAdvanced=</varname></term>
1256 <term><varname>Bond=</varname></term>
1257 <term><varname>Bridge=</varname></term>
1258 <term><varname>VRF=</varname></term>
1259 <listitem>
1260 <para>The name of the B.A.T.M.A.N. Advanced, bond, bridge, or VRF interface to add the link
1261 to. See
1262 <citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
1263 </para>
1264
1265 <xi:include href="version-info.xml" xpointer="v211"/>
1266 </listitem>
1267 </varlistentry>
1268
1269 <varlistentry>
1270 <term><varname>IPoIB=</varname></term>
1271 <term><varname>IPVLAN=</varname></term>
1272 <term><varname>IPVTAP=</varname></term>
1273 <term><varname>MACsec=</varname></term>
1274 <term><varname>MACVLAN=</varname></term>
1275 <term><varname>MACVTAP=</varname></term>
1276 <term><varname>Tunnel=</varname></term>
1277 <term><varname>VLAN=</varname></term>
1278 <term><varname>VXLAN=</varname></term>
1279 <term><varname>Xfrm=</varname></term>
1280 <listitem>
1281 <para>The name of an IPoIB, IPVLAN, IPVTAP, MACsec, MACVLAN, MACVTAP, tunnel, VLAN,
1282 VXLAN, or Xfrm to be created on the link. See
1283 <citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
1284 This option may be specified more than once.</para>
1285
1286 <xi:include href="version-info.xml" xpointer="v211"/>
1287 </listitem>
1288 </varlistentry>
1289
1290 <varlistentry>
1291 <term><varname>ActiveSlave=</varname></term>
1292 <listitem>
1293 <para>Takes a boolean. Specifies the new active slave. The <literal>ActiveSlave=</literal>
1294 option is only valid for following modes: <literal>active-backup</literal>,
1295 <literal>balance-alb</literal>, and <literal>balance-tlb</literal>. Defaults to false.</para>
1296
1297 <xi:include href="version-info.xml" xpointer="v235"/>
1298 </listitem>
1299 </varlistentry>
1300
1301 <varlistentry>
1302 <term><varname>PrimarySlave=</varname></term>
1303 <listitem>
1304 <para>Takes a boolean. Specifies which slave is the primary device. The specified device will
1305 always be the active slave while it is available. Only when the primary is off-line will
1306 alternate devices be used. This is useful when one slave is preferred over another, e.g.
1307 when one slave has higher throughput than another. The <literal>PrimarySlave=</literal>
1308 option is only valid for following modes: <literal>active-backup</literal>,
1309 <literal>balance-alb</literal>, and <literal>balance-tlb</literal>. Defaults to false.</para>
1310
1311 <xi:include href="version-info.xml" xpointer="v235"/>
1312 </listitem>
1313 </varlistentry>
1314
1315 <varlistentry>
1316 <term><varname>ConfigureWithoutCarrier=</varname></term>
1317 <listitem>
1318 <para>Takes a boolean. Allows <command>systemd-networkd</command> to configure a specific link even
1319 if it has no carrier. Defaults to false. If enabled, and the <varname>IgnoreCarrierLoss=</varname>
1320 setting is not explicitly set, then it is enabled as well.</para>
1321
1322 <para>With this enabled, to make the interface enter the <literal>configured</literal> state,
1323 which is required to make <command>systemd-networkd-wait-online</command> work properly for the
1324 interface, all dynamic address configuration mechanisms like <varname>DHCP=</varname> and
1325 <varname>IPv6AcceptRA=</varname> (which is enabled by default in most cases) need to be disabled.
1326 Also, <varname>DuplicateAddressDetection=</varname> (which is enabled by default for IPv4
1327 link-local addresses and all IPv6 addresses) needs to be disabled for all static address
1328 configurations. Otherwise, without carrier, the interface will be stuck in the
1329 <literal>configuring</literal> state, and <command>systemd-networkd-wait-online</command> for the
1330 interface will timeout. Also, it is recommended to set
1331 <varname>RequiredForOnline=no-carrier</varname> to make
1332 <command>systemd-networkd-wait-online</command> work for the interface.</para>
1333
1334 <xi:include href="version-info.xml" xpointer="v235"/>
1335 </listitem>
1336 </varlistentry>
1337
1338 <varlistentry>
1339 <term><varname>IgnoreCarrierLoss=</varname></term>
1340 <listitem>
1341 <para>Takes a boolean or a timespan. When true, <command>systemd-networkd</command> retains
1342 both the static and dynamic configuration of the interface even if its carrier is lost. When
1343 false, <command>systemd-networkd</command> drops both the static and dynamic configuration of
1344 the interface. When a timespan is specified, <command>systemd-networkd</command> waits for
1345 the specified timespan, and ignores the carrier loss if the link regain its carrier within
1346 the timespan. Setting 0 seconds is equivalent to <literal>no</literal>, and
1347 <literal>infinite</literal> is equivalent to <literal>yes</literal>.</para>
1348
1349 <para>Setting a finite timespan may be useful when e.g. in the following cases:
1350 <itemizedlist>
1351 <listitem>
1352 <para>A wireless interface connecting to a network which has multiple access points with
1353 the same SSID.</para>
1354 </listitem>
1355 <listitem>
1356 <para>Enslaving a wireless interface to a bond interface, which may disconnect from the
1357 connected access point and causes its carrier to be lost.</para>
1358 </listitem>
1359 <listitem>
1360 <para>The driver of the interface resets when the MTU is changed.</para>
1361 </listitem>
1362 </itemizedlist>
1363 </para>
1364
1365 <para>When <varname>Bond=</varname> is specified to a wireless interface, defaults to 3
1366 seconds. When the DHCPv4 client is enabled and <varname>UseMTU=</varname> in the [DHCPv4]
1367 section enabled, defaults to 5 seconds. Otherwise, defaults to the value specified with
1368 <varname>ConfigureWithoutCarrier=</varname>. When <varname>ActivationPolicy=</varname> is set
1369 to <literal>always-up</literal>, this is forced to <literal>yes</literal>, and ignored any
1370 user specified values.</para>
1371
1372 <xi:include href="version-info.xml" xpointer="v242"/>
1373 </listitem>
1374 </varlistentry>
1375
1376 <varlistentry>
1377 <term><varname>KeepConfiguration=</varname></term>
1378 <listitem>
1379 <para>Takes a boolean or one of <literal>static</literal>, <literal>dynamic-on-stop</literal>, and
1380 <literal>dynamic</literal>. When <literal>static</literal>, <command>systemd-networkd</command>
1381 will not drop statically configured addresses and routes on starting up process. When
1382 <literal>dynamic-on-stop</literal>, the dynamically configured addresses and routes, such as
1383 DHCPv4, DHCPv6, SLAAC, and IPv4 link-local address, will not be dropped when
1384 <command>systemd-networkd</command> is being stopped. When <literal>dynamic</literal>, the
1385 dynamically configured addresses and routes will never be dropped, and the lifetime of DHCPv4
1386 leases will be ignored. This is contrary to the DHCP specification, but may be the best choice if,
1387 e.g., the root filesystem relies on this connection. The setting <literal>dynamic</literal> implies
1388 <literal>dynamic-on-stop</literal>, and <literal>yes</literal> implies <literal>dynamic</literal>
1389 and <literal>static</literal>. Defaults to <literal>dynamic-on-stop</literal> when
1390 <command>systemd-networkd</command> is running in initrd, <literal>yes</literal> when the root
1391 filesystem is a network filesystem, and <literal>no</literal> otherwise.</para>
1392
1393 <xi:include href="version-info.xml" xpointer="v257"/>
1394 </listitem>
1395 </varlistentry>
1396 </variablelist>
1397 </refsect1>
1398
1399 <refsect1>
1400 <title>[Address] Section Options</title>
1401
1402 <para>An [Address] section accepts the following keys. Specify several [Address] sections to
1403 configure several addresses.</para>
1404
1405 <variablelist class='network-directives'>
1406 <varlistentry>
1407 <term><varname>Address=</varname></term>
1408 <listitem>
1409 <para>As in the [Network] section. This setting is mandatory. Each [Address] section can
1410 contain one <varname>Address=</varname> setting.</para>
1411
1412 <xi:include href="version-info.xml" xpointer="v211"/>
1413 </listitem>
1414 </varlistentry>
1415
1416 <varlistentry>
1417 <term><varname>Peer=</varname></term>
1418 <listitem>
1419 <para>The peer address in a point-to-point connection. Accepts the same format as the
1420 <varname>Address=</varname> setting.</para>
1421
1422 <xi:include href="version-info.xml" xpointer="v216"/>
1423 </listitem>
1424 </varlistentry>
1425
1426 <varlistentry>
1427 <term><varname>Broadcast=</varname></term>
1428 <listitem>
1429 <para>Takes an IPv4 address or boolean value. The address must be in the format described in
1430 <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
1431 If set to true, then the IPv4 broadcast address will be derived from the
1432 <varname>Address=</varname> setting. If set to false, then the broadcast address will not be
1433 set. Defaults to true, except for wireguard interfaces, where it defaults to false.</para>
1434
1435 <xi:include href="version-info.xml" xpointer="v211"/>
1436 </listitem>
1437 </varlistentry>
1438
1439 <varlistentry>
1440 <term><varname>Label=</varname></term>
1441 <listitem>
1442 <para>Specifies the label for the IPv4 address. The label must be a 7-bit ASCII string with
1443 a length of 1…15 characters. Defaults to unset.</para>
1444
1445 <xi:include href="version-info.xml" xpointer="v211"/>
1446 </listitem>
1447 </varlistentry>
1448
1449 <varlistentry>
1450 <term><varname>PreferredLifetime=</varname></term>
1451 <listitem>
1452 <para>Allows the default "preferred lifetime" of the address to be overridden. Only three
1453 settings are accepted: <literal>forever</literal>, <literal>infinity</literal>, which is the
1454 default and means that the address never expires, and <literal>0</literal>, which means that
1455 the address is considered immediately "expired" and will not be used, unless explicitly
1456 requested. A setting of <option>PreferredLifetime=0</option> is useful for addresses which
1457 are added to be used only by a specific application, which is then configured to use them
1458 explicitly.</para>
1459
1460 <xi:include href="version-info.xml" xpointer="v230"/>
1461 </listitem>
1462 </varlistentry>
1463
1464 <varlistentry>
1465 <term><varname>Scope=</varname></term>
1466 <listitem>
1467 <para>The scope of the address, which can be <literal>global</literal> (valid everywhere on
1468 the network, even through a gateway), <literal>link</literal> (only valid on this device,
1469 will not traverse a gateway) or <literal>host</literal> (only valid within the device itself,
1470 e.g. 127.0.0.1) or an integer in the range 0…255. Defaults to <literal>global</literal>.
1471 IPv4 only - IPv6 scope is automatically assigned by the kernel and cannot be set manually.
1472 </para>
1473
1474 <xi:include href="version-info.xml" xpointer="v235"/>
1475 </listitem>
1476 </varlistentry>
1477
1478 <varlistentry>
1479 <term><varname>RouteMetric=</varname></term>
1480 <listitem>
1481 <para>The metric of the prefix route, which is pointing to the subnet of the configured IP
1482 address, taking the configured prefix length into account. Takes an unsigned integer in the
1483 range 0…4294967295. When unset or set to 0, the kernel's default value is used. This
1484 setting will be ignored when <varname>AddPrefixRoute=</varname> is false.</para>
1485
1486 <xi:include href="version-info.xml" xpointer="v246"/>
1487 </listitem>
1488 </varlistentry>
1489
1490 <varlistentry>
1491 <term><varname>HomeAddress=</varname></term>
1492 <listitem>
1493 <para>Takes a boolean. Designates this address the "home address" as defined in
1494 <ulink url="https://tools.ietf.org/html/rfc6275">RFC 6275</ulink>. Supported only on IPv6.
1495 Defaults to false.</para>
1496
1497 <xi:include href="version-info.xml" xpointer="v232"/>
1498 </listitem>
1499 </varlistentry>
1500
1501 <varlistentry>
1502 <term><varname>DuplicateAddressDetection=</varname></term>
1503 <listitem>
1504 <para>Takes one of <literal>ipv4</literal>, <literal>ipv6</literal>, <literal>both</literal>,
1505 or <literal>none</literal>. When <literal>ipv4</literal>, performs IPv4 Address Conflict
1506 Detection. See <ulink url="https://tools.ietf.org/html/rfc5227">RFC 5227</ulink>.
1507 When <literal>ipv6</literal>, performs IPv6 Duplicate Address Detection. See
1508 <ulink url="https://tools.ietf.org/html/rfc4862">RFC 4862</ulink>. Defaults to
1509 <literal>ipv4</literal> for IPv4 link-local addresses (169.254.0.0/16), <literal>ipv6</literal>
1510 for IPv6 addresses, and <literal>none</literal> otherwise.</para>
1511
1512 <para>When enabled, regardless implicitly or not, <varname>ARP=</varname> is enabled unless it is
1513 explicitly configured.</para>
1514
1515 <xi:include href="version-info.xml" xpointer="v232"/>
1516 </listitem>
1517 </varlistentry>
1518
1519 <varlistentry>
1520 <term><varname>ManageTemporaryAddress=</varname></term>
1521 <listitem>
1522 <para>Takes a boolean. If true the kernel manage temporary addresses created from this one as
1523 template on behalf of Privacy Extensions
1524 <ulink url="https://tools.ietf.org/html/rfc3041">RFC 3041</ulink>. For this to become active,
1525 the use_tempaddr sysctl setting has to be set to a value greater than zero. The given address
1526 needs to have a prefix length of 64. This flag allows using privacy extensions in a manually
1527 configured network, just like if stateless auto-configuration was active. Defaults to false.
1528 </para>
1529
1530 <xi:include href="version-info.xml" xpointer="v232"/>
1531 </listitem>
1532 </varlistentry>
1533
1534 <varlistentry>
1535 <term><varname>AddPrefixRoute=</varname></term>
1536 <listitem>
1537 <para>Takes a boolean. When true, the prefix route for the address is automatically added.
1538 Defaults to true.</para>
1539
1540 <xi:include href="version-info.xml" xpointer="v245"/>
1541 </listitem>
1542 </varlistentry>
1543
1544 <varlistentry>
1545 <term><varname>AutoJoin=</varname></term>
1546 <listitem>
1547 <para>Takes a boolean. Joining multicast group on ethernet level via
1548 <command>ip maddr</command> command would not work if we have an Ethernet switch that does
1549 IGMP snooping since the switch would not replicate multicast packets on ports that did not
1550 have IGMP reports for the multicast addresses. Linux vxlan interfaces created via
1551 <command>ip link add vxlan</command> or <command>systemd-networkd</command>'s netdev kind vxlan
1552 have the group option that enables them to do the required join. By extending
1553 <command>ip address</command> command with option <literal>autojoin</literal> we can get similar
1554 functionality for openvswitch (OVS) vxlan interfaces as well as other tunneling mechanisms that
1555 need to receive multicast traffic. Defaults to <literal>no</literal>.</para>
1556
1557 <xi:include href="version-info.xml" xpointer="v232"/>
1558 </listitem>
1559 </varlistentry>
1560
1561 <varlistentry>
1562 <term><varname>NetLabel=</varname><replaceable>label</replaceable></term>
1563 <listitem>
1564
1565 <para>This setting provides a method for integrating static and dynamic network configuration into
1566 Linux <ulink url="https://docs.kernel.org/netlabel/index.html">NetLabel</ulink> subsystem rules,
1567 used by <ulink url="https://en.wikipedia.org/wiki/Linux_Security_Modules">Linux Security Modules
1568 (LSMs)</ulink> for network access control. The label, with suitable LSM rules, can be used to
1569 control connectivity of (for example) a service with peers in the local network. At least with
1570 SELinux, only the ingress can be controlled but not egress. The benefit of using this setting is
1571 that it may be possible to apply interface independent part of NetLabel configuration at very early
1572 stage of system boot sequence, at the time when the network interfaces are not available yet, with
1573 <citerefentry
1574 project='man-pages'><refentrytitle>netlabelctl</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
1575 and the per-interface configuration with <command>systemd-networkd</command> once the interfaces
1576 appear later. Currently this feature is only implemented for SELinux.</para>
1577
1578 <para>The option expects a single NetLabel label. The label must conform to lexicographic restrictions of
1579 LSM labels. When an interface is configured with IP addresses, the addresses and subnetwork masks
1580 will be appended to the <ulink
1581 url="https://github.com/SELinuxProject/selinux-notebook/blob/main/src/network_support.md">NetLabel
1582 Fallback Peer Labeling</ulink> rules. They will be removed when the interface is
1583 deconfigured. Failures to manage the labels will be ignored.</para>
1584
1585 <warning>
1586 <para>Once labeling is enabled for network traffic, a lot of LSM access control points in
1587 Linux networking stack go from dormant to active. Care should be taken to avoid getting into a
1588 situation where for example remote connectivity is broken, when the security policy has not been
1589 updated to consider LSM per-packet access controls and no rules would allow any network
1590 traffic. Also note that additional configuration with <citerefentry
1591 project='man-pages'><refentrytitle>netlabelctl</refentrytitle><manvolnum>8</manvolnum></citerefentry>
1592 is needed.</para>
1593 </warning>
1594
1595 <para>Example:
1596 <programlisting>[Address]
1597 NetLabel=system_u:object_r:localnet_peer_t:s0</programlisting>
1598
1599 With the example rules applying for interface <literal>eth0</literal>, when the interface is
1600 configured with an IPv4 address of 10.0.0.123/8, <command>systemd-networkd</command> performs the
1601 equivalent of <command>netlabelctl</command> operation
1602
1603 <programlisting>netlabelctl unlbl add interface eth0 address:10.0.0.0/8 label:system_u:object_r:localnet_peer_t:s0</programlisting>
1604
1605 and the reverse operation when the IPv4 address is deconfigured. The configuration can be used with
1606 LSM rules; in case of SELinux to allow a SELinux domain to receive data from objects of SELinux
1607 <literal>peer</literal> class. For example:
1608
1609 <programlisting>type localnet_peer_t;
1610 allow my_server_t localnet_peer_t:peer recv;</programlisting>
1611
1612 The effect of the above configuration and rules (in absence of other rules as may be the case) is
1613 to only allow <literal>my_server_t</literal> (and nothing else) to receive data from local subnet
1614 10.0.0.0/8 of interface <literal>eth0</literal>.
1615 </para>
1616
1617 <xi:include href="version-info.xml" xpointer="v252"/>
1618 </listitem>
1619 </varlistentry>
1620
1621 <varlistentry>
1622 <term><varname>NFTSet=</varname><replaceable>source</replaceable>:<replaceable>family</replaceable>:<replaceable>table</replaceable>:<replaceable>set</replaceable></term>
1623 <listitem>
1624 <para>This setting provides a method for integrating network configuration into firewall rules with
1625 <ulink url="https://netfilter.org/projects/nftables/index.html">NFT</ulink> sets. The benefit of
1626 using the setting is that static network configuration (or dynamically obtained network addresses,
1627 see similar directives in other sections) can be used in firewall rules with the indirection of NFT
1628 set types. For example, access could be granted for hosts in the local subnetwork only. Firewall
1629 rules using IP address of an interface are also instantly updated when the network configuration
1630 changes, for example via DHCP.</para>
1631
1632 <para>This option expects a whitespace separated list of NFT set definitions. Each definition
1633 consists of a colon-separated tuple of source type (one of <literal>address</literal>,
1634 <literal>prefix</literal> or <literal>ifindex</literal>), NFT address family (one of
1635 <literal>arp</literal>, <literal>bridge</literal>, <literal>inet</literal>, <literal>ip</literal>,
1636 <literal>ip6</literal>, or <literal>netdev</literal>), table name and set name. The names of tables
1637 and sets must conform to lexicographic restrictions of NFT table names. The type of the element used in
1638 the NFT filter must match the type implied by the directive (<literal>address</literal>,
1639 <literal>prefix</literal> or <literal>ifindex</literal>) and address type (IPv4 or IPv6) as shown
1640 in the table below.</para>
1641
1642 <table>
1643 <title>Defined <varname>source type</varname> values</title>
1644 <tgroup cols='3'>
1645 <colspec colname='source type'/>
1646 <colspec colname='description'/>
1647 <colspec colname='NFT type name'/>
1648 <thead>
1649 <row>
1650 <entry>Source type</entry>
1651 <entry>Description</entry>
1652 <entry>Corresponding NFT type name</entry>
1653 </row>
1654 </thead>
1655
1656 <tbody>
1657 <row>
1658 <entry><literal>address</literal></entry>
1659 <entry>host IP address</entry>
1660 <entry><literal>ipv4_addr</literal> or <literal>ipv6_addr</literal></entry>
1661 </row>
1662 <row>
1663 <entry><literal>prefix</literal></entry>
1664 <entry>network prefix</entry>
1665 <entry><literal>ipv4_addr</literal> or <literal>ipv6_addr</literal>, with <literal>flags interval</literal></entry>
1666 </row>
1667 <row>
1668 <entry><literal>ifindex</literal></entry>
1669 <entry>interface index</entry>
1670 <entry><literal>iface_index</literal></entry>
1671 </row>
1672 </tbody>
1673 </tgroup>
1674 </table>
1675
1676 <para>When an interface is configured with IP addresses, the addresses, subnetwork masks or
1677 interface index will be appended to the NFT sets. The information will be removed when the
1678 interface is deconfigured. <command>systemd-networkd</command> only inserts elements to (or removes
1679 from) the sets, so the related NFT rules, tables and sets must be prepared elsewhere in
1680 advance. Failures to manage the sets will be ignored.</para>
1681
1682 <para>Example:
1683 <programlisting>[Address]
1684 NFTSet=prefix:netdev:filter:eth_ipv4_prefix</programlisting>
1685 Corresponding NFT rules:
1686 <programlisting>table netdev filter {
1687 set eth_ipv4_prefix {
1688 type ipv4_addr
1689 flags interval
1690 }
1691 chain eth_ingress {
1692 type filter hook ingress device "eth0" priority filter; policy drop;
1693 ip daddr != @eth_ipv4_prefix drop
1694 accept
1695 }
1696 }</programlisting>
1697 </para>
1698
1699 <xi:include href="version-info.xml" xpointer="v255"/>
1700 </listitem>
1701 </varlistentry>
1702 </variablelist>
1703 </refsect1>
1704
1705 <refsect1>
1706 <title>[Neighbor] Section Options</title>
1707
1708 <para>A [Neighbor] section accepts the following keys. The neighbor section adds a permanent,
1709 static entry to the neighbor table (IPv6) or ARP table (IPv4) for the given hardware address on the
1710 links matched for the network. Specify several [Neighbor] sections to configure several static
1711 neighbors.</para>
1712
1713 <variablelist class='network-directives'>
1714 <varlistentry>
1715 <term><varname>Address=</varname></term>
1716 <listitem>
1717 <para>The IP address of the neighbor.</para>
1718
1719 <xi:include href="version-info.xml" xpointer="v240"/>
1720 </listitem>
1721 </varlistentry>
1722
1723 <varlistentry>
1724 <term><varname>LinkLayerAddress=</varname></term>
1725 <listitem>
1726 <para>The link layer address (MAC address or IP address) of the neighbor.</para>
1727
1728 <xi:include href="version-info.xml" xpointer="v243"/>
1729 </listitem>
1730 </varlistentry>
1731 </variablelist>
1732 </refsect1>
1733
1734 <refsect1>
1735 <title>[IPv6AddressLabel] Section Options</title>
1736
1737 <para>An [IPv6AddressLabel] section accepts the following keys. Specify several [IPv6AddressLabel]
1738 sections to configure several address labels. IPv6 address labels are used for address selection.
1739 See <ulink url="https://tools.ietf.org/html/rfc3484">RFC 3484</ulink>. Precedence is managed by
1740 userspace, and only the label itself is stored in the kernel.</para>
1741
1742 <variablelist class='network-directives'>
1743 <varlistentry>
1744 <term><varname>Label=</varname></term>
1745 <listitem>
1746 <para>The label for the prefix. Takes an unsigned integer in the range 0…4294967294 (0xfffffffe).
1747 4294967295 (0xffffffff) is reserved. This setting is mandatory.</para>
1748
1749 <xi:include href="version-info.xml" xpointer="v234"/>
1750 </listitem>
1751 </varlistentry>
1752
1753 <varlistentry>
1754 <term><varname>Prefix=</varname></term>
1755 <listitem>
1756 <para>Takes an IPv6 address with a prefix length, separated by a slash
1757 <literal>/</literal> character. This setting is mandatory.</para>
1758
1759 <xi:include href="version-info.xml" xpointer="v234"/>
1760 </listitem>
1761 </varlistentry>
1762 </variablelist>
1763 </refsect1>
1764
1765 <refsect1>
1766 <title>[RoutingPolicyRule] Section Options</title>
1767
1768 <para>An [RoutingPolicyRule] section accepts the following settings. Specify several
1769 [RoutingPolicyRule] sections to configure several rules.</para>
1770
1771 <variablelist class='network-directives'>
1772 <varlistentry>
1773 <term><varname>TypeOfService=</varname></term>
1774 <listitem>
1775 <para>
1776 This specifies the Type of Service (ToS) field of packets to match;
1777 it takes an unsigned integer in the range 0…255.
1778 The field can be used to specify precedence (the first 3 bits) and ToS (the next 3 bits).
1779 The field can be also used to specify Differentiated Services Code Point (DSCP) (the first 6 bits) and
1780 Explicit Congestion Notification (ECN) (the last 2 bits).
1781 See <ulink url="https://en.wikipedia.org/wiki/Type_of_service">Type of Service</ulink>
1782 and <ulink url="https://en.wikipedia.org/wiki/Differentiated_services">Differentiated services</ulink>
1783 for more details.
1784 </para>
1785
1786 <xi:include href="version-info.xml" xpointer="v235"/>
1787 </listitem>
1788 </varlistentry>
1789
1790 <varlistentry>
1791 <term><varname>From=</varname></term>
1792 <listitem>
1793 <para>Specifies the source address prefix to match. Possibly followed by a slash and the
1794 prefix length.</para>
1795
1796 <xi:include href="version-info.xml" xpointer="v235"/>
1797 </listitem>
1798 </varlistentry>
1799
1800 <varlistentry>
1801 <term><varname>To=</varname></term>
1802 <listitem>
1803 <para>Specifies the destination address prefix to match. Possibly followed by a slash and the
1804 prefix length.</para>
1805
1806 <xi:include href="version-info.xml" xpointer="v235"/>
1807 </listitem>
1808 </varlistentry>
1809
1810 <varlistentry>
1811 <term><varname>FirewallMark=</varname></term>
1812 <listitem>
1813 <para>Specifies the iptables firewall mark value to match (a number in the range
1814 0…4294967295). Optionally, the firewall mask (also a number between 0…4294967295) can be
1815 suffixed with a slash (<literal>/</literal>), e.g., <literal>7/255</literal>. When the
1816 mark value is non-zero and no mask is explicitly specified, all bits of the mark are
1817 compared. </para>
1818
1819 <xi:include href="version-info.xml" xpointer="v235"/>
1820 </listitem>
1821 </varlistentry>
1822
1823 <varlistentry>
1824 <term><varname>Table=</varname></term>
1825 <listitem>
1826 <para>Specifies the routing table identifier to look up if the rule selector matches. Takes
1827 one of predefined names <literal>default</literal>, <literal>main</literal>, and
1828 <literal>local</literal>, and names defined in <varname>RouteTable=</varname> in
1829 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1830 or a number between 1 and 4294967295. Defaults to <literal>main</literal>.
1831 Ignored if <varname>L3MasterDevice=</varname> is true.</para>
1832
1833 <xi:include href="version-info.xml" xpointer="v235"/>
1834 </listitem>
1835 </varlistentry>
1836
1837 <varlistentry>
1838 <term><varname>Priority=</varname></term>
1839 <listitem>
1840 <para>Specifies the priority of this rule. <varname>Priority=</varname> is an integer in the
1841 range 0…4294967295. Higher number means lower priority, and rules get processed in order of
1842 increasing number. Defaults to unset, and the kernel will pick a value dynamically.</para>
1843
1844 <xi:include href="version-info.xml" xpointer="v235"/>
1845 </listitem>
1846 </varlistentry>
1847
1848 <varlistentry>
1849 <term><varname>GoTo=</varname></term>
1850 <listitem>
1851 <para>Specifies the target priority used by the <literal>goto</literal> type of rule. Takes an
1852 integer in the range 1…4294967295. This must be larger than the priority of the rule specified in
1853 <varname>Priority=</varname>. When specified, <varname>Type=goto</varname> is implied. This is
1854 mandatory when <varname>Type=goto</varname>.</para>
1855
1856 <xi:include href="version-info.xml" xpointer="v257"/>
1857 </listitem>
1858 </varlistentry>
1859
1860 <varlistentry>
1861 <term><varname>IncomingInterface=</varname></term>
1862 <listitem>
1863 <para>Specifies incoming device to match. If the interface is loopback, the rule only matches
1864 packets originating from this host.</para>
1865
1866 <xi:include href="version-info.xml" xpointer="v236"/>
1867 </listitem>
1868 </varlistentry>
1869
1870 <varlistentry>
1871 <term><varname>OutgoingInterface=</varname></term>
1872 <listitem>
1873 <para>Specifies the outgoing device to match. The outgoing interface is only available for
1874 packets originating from local sockets that are bound to a device.</para>
1875
1876 <xi:include href="version-info.xml" xpointer="v236"/>
1877 </listitem>
1878 </varlistentry>
1879
1880 <varlistentry>
1881 <term><varname>L3MasterDevice=</varname></term>
1882 <listitem>
1883 <para>Takes a boolean. Specifies whether the rule is to direct lookups to the tables associated with
1884 level 3 master devices (also known as Virtual Routing and Forwarding or VRF devices).
1885 For further details see <ulink url="https://docs.kernel.org/networking/vrf.html">
1886 Virtual Routing and Forwarding (VRF)</ulink>. Defaults to false.</para>
1887
1888 <xi:include href="version-info.xml" xpointer="v256"/>
1889 </listitem>
1890 </varlistentry>
1891
1892 <varlistentry>
1893 <term><varname>SourcePort=</varname></term>
1894 <listitem>
1895 <para>Specifies the source IP port or IP port range match in forwarding information base
1896 (FIB) rules. A port range is specified by the lower and upper port separated by a dash.
1897 Defaults to unset.</para>
1898
1899 <xi:include href="version-info.xml" xpointer="v240"/>
1900 </listitem>
1901 </varlistentry>
1902
1903 <varlistentry>
1904 <term><varname>DestinationPort=</varname></term>
1905 <listitem>
1906 <para>Specifies the destination IP port or IP port range match in forwarding information base
1907 (FIB) rules. A port range is specified by the lower and upper port separated by a dash.
1908 Defaults to unset.</para>
1909
1910 <xi:include href="version-info.xml" xpointer="v240"/>
1911 </listitem>
1912 </varlistentry>
1913
1914 <varlistentry>
1915 <term><varname>IPProtocol=</varname></term>
1916 <listitem>
1917 <para>Specifies the IP protocol to match in forwarding information base (FIB) rules. Takes IP
1918 protocol name such as <literal>tcp</literal>, <literal>udp</literal> or
1919 <literal>sctp</literal>, or IP protocol number such as <literal>6</literal> for
1920 <literal>tcp</literal> or <literal>17</literal> for <literal>udp</literal>. Defaults to unset.
1921 </para>
1922
1923 <xi:include href="version-info.xml" xpointer="v240"/>
1924 </listitem>
1925 </varlistentry>
1926
1927 <varlistentry>
1928 <term><varname>InvertRule=</varname></term>
1929 <listitem>
1930 <para>A boolean. Specifies whether the rule is to be inverted. Defaults to false.</para>
1931
1932 <xi:include href="version-info.xml" xpointer="v240"/>
1933 </listitem>
1934 </varlistentry>
1935
1936 <varlistentry>
1937 <term><varname>Family=</varname></term>
1938 <listitem>
1939 <para>Takes a special value <literal>ipv4</literal>, <literal>ipv6</literal>, or
1940 <literal>both</literal>. By default, the address family is determined by the address
1941 specified in <varname>To=</varname> or <varname>From=</varname>. If neither
1942 <varname>To=</varname> nor <varname>From=</varname> are specified, then defaults to
1943 <literal>ipv4</literal>.</para>
1944
1945 <xi:include href="version-info.xml" xpointer="v243"/>
1946 </listitem>
1947 </varlistentry>
1948
1949 <varlistentry>
1950 <term><varname>User=</varname></term>
1951 <listitem>
1952 <para>Takes a username, a user ID, or a range of user IDs separated by a dash. Defaults to
1953 unset.</para>
1954
1955 <xi:include href="version-info.xml" xpointer="v245"/>
1956 </listitem>
1957 </varlistentry>
1958
1959 <varlistentry>
1960 <term><varname>SuppressPrefixLength=</varname></term>
1961 <listitem>
1962 <para>Takes a number <replaceable>N</replaceable> in the range 0…128 and rejects routing
1963 decisions that have a prefix length of <replaceable>N</replaceable> or less. Defaults to
1964 unset.</para>
1965
1966 <xi:include href="version-info.xml" xpointer="v245"/>
1967 </listitem>
1968 </varlistentry>
1969
1970 <varlistentry>
1971 <term><varname>SuppressInterfaceGroup=</varname></term>
1972 <listitem>
1973 <para>Takes an integer in the range 0…2147483647 and rejects routing decisions that have
1974 an interface with the same group id. It has the same meaning as
1975 <option>suppress_ifgroup</option> in <command>ip rule</command>. Defaults to unset.</para>
1976
1977 <xi:include href="version-info.xml" xpointer="v250"/>
1978 </listitem>
1979 </varlistentry>
1980
1981 <varlistentry>
1982 <term><varname>Type=</varname></term>
1983 <listitem>
1984 <para>Specifies Routing Policy Database (RPDB) rule type. Takes one of
1985 <literal>table</literal>, <literal>goto</literal>, <literal>nop</literal>,
1986 <literal>blackhole</literal>, <literal>unreachable</literal>, or <literal>prohibit</literal>.
1987 When <literal>goto</literal>, the target priority must be specified in <varname>GoTo=</varname>.
1988 Defaults to <literal>table</literal>.</para>
1989
1990 <xi:include href="version-info.xml" xpointer="v248"/>
1991 </listitem>
1992 </varlistentry>
1993 </variablelist>
1994 </refsect1>
1995
1996 <refsect1>
1997 <title>[NextHop] Section Options</title>
1998
1999 <para>The [NextHop] section is used to manipulate entries in the kernel's "nexthop" tables. The
2000 [NextHop] section accepts the following settings. Specify several [NextHop] sections to configure
2001 several hops.</para>
2002
2003 <variablelist class='network-directives'>
2004 <varlistentry>
2005 <term><varname>Id=</varname></term>
2006 <listitem>
2007 <para>The id of the next hop. Takes an integer in the range 1…4294967295.
2008 This is mandatory if <varname>ManageForeignNextHops=no</varname> is specified in
2009 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
2010 Otherwise, if unspecified, an unused ID will be automatically picked.</para>
2011
2012 <xi:include href="version-info.xml" xpointer="v244"/>
2013 </listitem>
2014 </varlistentry>
2015
2016 <varlistentry>
2017 <term><varname>Gateway=</varname></term>
2018 <listitem>
2019 <para>As in the [Network] section.</para>
2020
2021 <xi:include href="version-info.xml" xpointer="v244"/>
2022 </listitem>
2023 </varlistentry>
2024
2025 <varlistentry>
2026 <term><varname>Family=</varname></term>
2027 <listitem>
2028 <para>Takes one of the special values <literal>ipv4</literal> or <literal>ipv6</literal>.
2029 By default, the family is determined by the address specified in
2030 <varname>Gateway=</varname>. If <varname>Gateway=</varname> is not specified, then defaults
2031 to <literal>ipv4</literal>.</para>
2032
2033 <xi:include href="version-info.xml" xpointer="v248"/>
2034 </listitem>
2035 </varlistentry>
2036
2037 <varlistentry>
2038 <term><varname>OnLink=</varname></term>
2039 <listitem>
2040 <para>Takes a boolean. If set to true, the kernel does not have to check if the gateway is
2041 reachable directly by the current machine (i.e., attached to the local network), so that we
2042 can insert the nexthop in the kernel table without it being complained about. Defaults to
2043 <literal>no</literal>.</para>
2044
2045 <xi:include href="version-info.xml" xpointer="v248"/>
2046 </listitem>
2047 </varlistentry>
2048
2049 <varlistentry>
2050 <term><varname>Blackhole=</varname></term>
2051 <listitem>
2052 <para>Takes a boolean. If enabled, packets to the corresponding routes are discarded
2053 silently, and <varname>Gateway=</varname> cannot be specified. Defaults to
2054 <literal>no</literal>.</para>
2055
2056 <xi:include href="version-info.xml" xpointer="v248"/>
2057 </listitem>
2058 </varlistentry>
2059
2060 <varlistentry>
2061 <term><varname>Group=</varname></term>
2062 <listitem>
2063 <para>Takes a whitespace separated list of nexthop IDs. Each ID must be in the range
2064 1…4294967295. Optionally, each nexthop ID can take a weight after a colon
2065 (<literal><replaceable>id</replaceable><optional>:<replaceable>weight</replaceable></optional></literal>).
2066 The weight must be in the range 1…255. If the weight is not specified, then it is assumed
2067 that the weight is 1. This setting cannot be specified with <varname>Gateway=</varname>,
2068 <varname>Family=</varname>, <varname>Blackhole=</varname>. This setting can be specified
2069 multiple times. If an empty string is assigned, then the all previous assignments are
2070 cleared. Defaults to unset.</para>
2071
2072 <xi:include href="version-info.xml" xpointer="v249"/>
2073 </listitem>
2074 </varlistentry>
2075 </variablelist>
2076 </refsect1>
2077
2078 <refsect1>
2079 <title>[Route] Section Options</title>
2080
2081 <para>The [Route] section accepts the following settings. Specify several [Route] sections to
2082 configure several routes.</para>
2083
2084 <variablelist class='network-directives'>
2085 <varlistentry>
2086 <term><varname>Gateway=</varname></term>
2087 <listitem>
2088 <para>Takes the gateway address or the special values <literal>_dhcp4</literal> and
2089 <literal>_ipv6ra</literal>. If <literal>_dhcp4</literal> or <literal>_ipv6ra</literal> is set, then
2090 the gateway address provided by DHCPv4 or IPv6 RA is used. When<literal>_dhcp4</literal>, the
2091 acquired DHCPv4 address will be used as the preferred source address of the route, unless it is
2092 explicitly configured in <varname>PreferredSource=</varname>.</para>
2093
2094 <xi:include href="version-info.xml" xpointer="v211"/>
2095 </listitem>
2096 </varlistentry>
2097
2098 <varlistentry>
2099 <term><varname>GatewayOnLink=</varname></term>
2100 <listitem>
2101 <para>Takes a boolean. If set to true, the kernel does not have to check if the gateway is
2102 reachable directly by the current machine (i.e., attached to the local network), so that we
2103 can insert the route in the kernel table without it being complained about. Defaults to
2104 <literal>no</literal>.</para>
2105
2106 <xi:include href="version-info.xml" xpointer="v234"/>
2107 </listitem>
2108 </varlistentry>
2109
2110 <varlistentry>
2111 <term><varname>Destination=</varname></term>
2112 <listitem>
2113 <para>The destination prefix of the route. Possibly followed by a slash and the prefix
2114 length. If omitted, a full-length host route is assumed.</para>
2115
2116 <xi:include href="version-info.xml" xpointer="v211"/>
2117 </listitem>
2118 </varlistentry>
2119
2120 <varlistentry>
2121 <term><varname>Source=</varname></term>
2122 <listitem>
2123 <para>The source prefix of the route. Possibly followed by a slash and the prefix length. If
2124 omitted, a full-length host route is assumed.</para>
2125
2126 <xi:include href="version-info.xml" xpointer="v218"/>
2127 </listitem>
2128 </varlistentry>
2129
2130 <varlistentry>
2131 <term><varname>Metric=</varname></term>
2132 <listitem>
2133 <para>The metric of the route. Takes an unsigned integer in the range 0…4294967295. Defaults
2134 to unset, and the kernel's default will be used.</para>
2135
2136 <xi:include href="version-info.xml" xpointer="v216"/>
2137 </listitem>
2138 </varlistentry>
2139
2140 <varlistentry>
2141 <term><varname>IPv6Preference=</varname></term>
2142 <listitem>
2143 <para>Specifies the route preference as defined in
2144 <ulink url="https://tools.ietf.org/html/rfc4191">RFC 4191</ulink> for Router Discovery
2145 messages. Which can be one of <literal>low</literal> the route has a lowest priority,
2146 <literal>medium</literal> the route has a default priority or <literal>high</literal> the
2147 route has a highest priority.</para>
2148
2149 <xi:include href="version-info.xml" xpointer="v234"/>
2150 </listitem>
2151 </varlistentry>
2152
2153 <varlistentry>
2154 <term><varname>Scope=</varname></term>
2155 <listitem>
2156 <para>The scope of the IPv4 route, which can be <literal>global</literal>,
2157 <literal>site</literal>, <literal>link</literal>, <literal>host</literal>, or
2158 <literal>nowhere</literal>:</para>
2159 <itemizedlist>
2160 <listitem>
2161 <para><literal>global</literal> means the route can reach hosts more than one hop away.
2162 </para>
2163 </listitem>
2164
2165 <listitem>
2166 <para><literal>site</literal> means an interior route in the local autonomous system.
2167 </para>
2168 </listitem>
2169
2170 <listitem>
2171 <para><literal>link</literal> means the route can only reach hosts on the local network
2172 (one hop away).</para>
2173 </listitem>
2174
2175 <listitem>
2176 <para><literal>host</literal> means the route will not leave the local machine (used for
2177 internal addresses like 127.0.0.1).</para>
2178 </listitem>
2179
2180 <listitem>
2181 <para><literal>nowhere</literal> means the destination does not exist.</para>
2182 </listitem>
2183 </itemizedlist>
2184
2185 <para>For IPv4 route, defaults to <literal>host</literal> if <varname>Type=</varname> is
2186 <literal>local</literal> or <literal>nat</literal>, and <literal>link</literal> if
2187 <varname>Type=</varname> is <literal>broadcast</literal>, <literal>multicast</literal>,
2188 <literal>anycast</literal>, or <literal>unicast</literal>. In other cases,
2189 defaults to <literal>global</literal>. The value is not used for IPv6.</para>
2190
2191 <xi:include href="version-info.xml" xpointer="v219"/>
2192 </listitem>
2193 </varlistentry>
2194
2195 <varlistentry>
2196 <term><varname>PreferredSource=</varname></term>
2197 <listitem>
2198 <para>The preferred source address of the route. Takes <literal>no</literal> or an address
2199 in the format described in
2200 <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
2201 If <varname>Gateway=_dhcp4</varname> is specified, defaults to the acquired DHCPv4 address.
2202 Otherwise, defaults to unset. The value <literal>no</literal> may be useful to configure a route
2203 with <varname>Gateway=_dhcp4</varname> without setting preferred source route address.</para>
2204
2205 <xi:include href="version-info.xml" xpointer="v227"/>
2206 </listitem>
2207 </varlistentry>
2208
2209 <varlistentry>
2210 <term><varname>Table=</varname></term>
2211 <listitem>
2212 <para>The table identifier for the route. Takes one of predefined names
2213 <literal>default</literal>, <literal>main</literal>, and <literal>local</literal>, and names
2214 defined in <varname>RouteTable=</varname> in
2215 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
2216 or a number between 1 and 4294967295. The table can be retrieved using
2217 <command>ip route show table <replaceable>num</replaceable></command>. If unset and
2218 <varname>Type=</varname> is <literal>local</literal>, <literal>broadcast</literal>,
2219 <literal>anycast</literal>, or <literal>nat</literal>, then <literal>local</literal> is used.
2220 In other cases, defaults to <literal>main</literal>.</para>
2221
2222 <xi:include href="version-info.xml" xpointer="v230"/>
2223 </listitem>
2224 </varlistentry>
2225
2226 <varlistentry>
2227 <term><varname>HopLimit=</varname></term>
2228 <listitem>
2229 <para>Configures per route hop limit. Takes an integer in the range 1…255. See also
2230 <varname>IPv6HopLimit=</varname>.</para>
2231
2232 <xi:include href="version-info.xml" xpointer="v255"/>
2233 </listitem>
2234 </varlistentry>
2235
2236 <varlistentry>
2237 <term><varname>Protocol=</varname></term>
2238 <listitem>
2239 <para>The protocol identifier for the route. Takes a number between 0 and 255 or the special
2240 values <literal>kernel</literal>, <literal>boot</literal>, <literal>static</literal>,
2241 <literal>ra</literal> and <literal>dhcp</literal>. Defaults to <literal>static</literal>.
2242 </para>
2243
2244 <xi:include href="version-info.xml" xpointer="v234"/>
2245 </listitem>
2246 </varlistentry>
2247
2248 <varlistentry>
2249 <term><varname>Type=</varname></term>
2250 <listitem>
2251 <para>Specifies the type for the route. Takes one of <literal>unicast</literal>,
2252 <literal>local</literal>, <literal>broadcast</literal>, <literal>anycast</literal>,
2253 <literal>multicast</literal>, <literal>blackhole</literal>, <literal>unreachable</literal>,
2254 <literal>prohibit</literal>, <literal>throw</literal>, <literal>nat</literal>, and
2255 <literal>xresolve</literal>. If <literal>unicast</literal>, a regular route is defined, i.e.
2256 a route indicating the path to take to a destination network address. If
2257 <literal>blackhole</literal>, packets to the defined route are discarded silently. If
2258 <literal>unreachable</literal>, packets to the defined route are discarded and the ICMP
2259 message "Host Unreachable" is generated. If <literal>prohibit</literal>, packets to the
2260 defined route are discarded and the ICMP message "Communication Administratively Prohibited"
2261 is generated. If <literal>throw</literal>, route lookup in the current routing table will
2262 fail and the route selection process will return to Routing Policy Database (RPDB). Defaults
2263 to <literal>unicast</literal>.</para>
2264
2265 <xi:include href="version-info.xml" xpointer="v235"/>
2266 </listitem>
2267 </varlistentry>
2268
2269 <varlistentry>
2270 <term><varname>InitialCongestionWindow=</varname></term>
2271 <listitem>
2272 <para>The TCP initial congestion window is used during the start of a TCP connection.
2273 During the start of a TCP session, when a client requests a resource, the server's initial
2274 congestion window determines how many packets will be sent during the initial burst of data
2275 without waiting for acknowledgement. Takes a number between 1 and 1023. Note that 100 is
2276 considered an extremely large value for this option. When unset, the kernel's default
2277 (typically 10) will be used.</para>
2278
2279 <xi:include href="version-info.xml" xpointer="v237"/>
2280 </listitem>
2281 </varlistentry>
2282
2283 <varlistentry>
2284 <term><varname>InitialAdvertisedReceiveWindow=</varname></term>
2285 <listitem>
2286 <para>The TCP initial advertised receive window is the amount of receive data (in bytes)
2287 that can initially be buffered at one time on a connection. The sending host can send only
2288 that amount of data before waiting for an acknowledgment and window update from the
2289 receiving host. Takes a number between 1 and 1023. Note that 100 is considered an extremely
2290 large value for this option. When unset, the kernel's default will be used.</para>
2291
2292 <xi:include href="version-info.xml" xpointer="v237"/>
2293 </listitem>
2294 </varlistentry>
2295
2296 <varlistentry>
2297 <term><varname>QuickAck=</varname></term>
2298 <listitem>
2299 <para>Takes a boolean. When true, the TCP quick ACK mode for the route is enabled. When unset,
2300 the kernel's default will be used.</para>
2301
2302 <xi:include href="version-info.xml" xpointer="v237"/>
2303 </listitem>
2304 </varlistentry>
2305
2306 <varlistentry>
2307 <term><varname>FastOpenNoCookie=</varname></term>
2308 <listitem>
2309 <para>Takes a boolean. When true enables TCP fastopen without a cookie on a per-route basis.
2310 When unset, the kernel's default will be used.</para>
2311
2312 <xi:include href="version-info.xml" xpointer="v243"/>
2313 </listitem>
2314 </varlistentry>
2315
2316 <varlistentry>
2317 <term><varname>MTUBytes=</varname></term>
2318 <listitem>
2319 <para>The maximum transmission unit in bytes to set for the route. The usual suffixes K, M,
2320 G, are supported and are understood to the base of 1024.</para>
2321
2322 <xi:include href="version-info.xml" xpointer="v239"/>
2323 </listitem>
2324 </varlistentry>
2325
2326 <varlistentry>
2327 <term><varname>TCPAdvertisedMaximumSegmentSize=</varname></term>
2328 <listitem>
2329 <para>Specifies the Path MSS (in bytes) hints given on TCP layer. The usual suffixes K, M, G,
2330 are supported and are understood to the base of 1024. An unsigned integer in the range
2331 1…4294967294. When unset, the kernel's default will be used.</para>
2332
2333 <xi:include href="version-info.xml" xpointer="v248"/>
2334 </listitem>
2335 </varlistentry>
2336
2337 <varlistentry>
2338 <term><varname>TCPCongestionControlAlgorithm=</varname></term>
2339 <listitem>
2340 <para>Specifies the TCP congestion control algorithm for the route. Takes a name of the algorithm,
2341 e.g. <literal>bbr</literal>, <literal>dctcp</literal>, or <literal>vegas</literal>. When unset,
2342 the kernel's default will be used.</para>
2343
2344 <xi:include href="version-info.xml" xpointer="v252"/>
2345 </listitem>
2346 </varlistentry>
2347
2348 <varlistentry>
2349 <term><varname>TCPRetransmissionTimeoutSec=</varname></term>
2350 <listitem>
2351 <para>Specifies the TCP Retransmission Timeout (RTO) for the route. Takes time values in seconds.
2352 This value specifies the timeout of an alive TCP connection, when retransmissions remain
2353 unacknowledged. When unset, the kernel's default will be used.</para>
2354
2355 <xi:include href="version-info.xml" xpointer="v255"/>
2356 </listitem>
2357 </varlistentry>
2358
2359 <varlistentry>
2360 <term><varname>MultiPathRoute=</varname></term>
2361 <listitem>
2362 <para>Configures multipath route. Multipath routing is the technique of using multiple
2363 alternative paths through a network. Takes a gateway address and/or a network interface
2364 name or index (prefixed with <literal>@</literal>). At least one of these must be specified.
2365 Optionally, a weight in 1..256 can be specified, separated with whitespace. This setting
2366 can be specified multiple times. If an empty string is assigned, then all previous
2367 assignments are cleared.</para>
2368
2369 <para>Examples:</para>
2370 <programlisting>MultiPathRoute=10.0.0.1@eth0 20
2371 MultiPathRoute=192.168.1.1 50
2372 MultiPathRoute=@wg0 15
2373 MultiPathRoute=2001:db8::1@eth0</programlisting>
2374
2375 <xi:include href="version-info.xml" xpointer="v245"/>
2376 </listitem>
2377 </varlistentry>
2378
2379 <varlistentry>
2380 <term><varname>NextHop=</varname></term>
2381 <listitem>
2382 <para>Specifies the nexthop id. Takes an unsigned integer in the range 1…4294967295. If set,
2383 the corresponding [NextHop] section must be configured. Defaults to unset.</para>
2384
2385 <xi:include href="version-info.xml" xpointer="v248"/>
2386 </listitem>
2387 </varlistentry>
2388 </variablelist>
2389 </refsect1>
2390
2391 <refsect1>
2392 <title>[DHCPv4] Section Options</title>
2393
2394 <para>The [DHCPv4] section configures the DHCPv4 client, if it is enabled with the
2395 <varname>DHCP=</varname> setting described above:</para>
2396
2397 <variablelist class='network-directives'>
2398
2399 <!-- DHCP packet contents -->
2400
2401 <varlistentry>
2402 <term><varname>RequestAddress=</varname></term>
2403 <listitem>
2404 <para>Takes an IPv4 address. When specified, the Requested IP Address option (option code 50) is
2405 added with it to the initial DHCPDISCOVER message sent by the DHCP client. Defaults to unset, and
2406 an already assigned dynamic address to the interface is automatically picked.</para>
2407
2408 <xi:include href="version-info.xml" xpointer="v255"/>
2409 </listitem>
2410 </varlistentry>
2411
2412 <varlistentry>
2413 <term><varname>SendHostname=</varname></term>
2414 <listitem>
2415 <para>When true (the default), the machine's hostname (or the value specified with
2416 <varname>Hostname=</varname>, described below) will be sent to the DHCP server. Note that the
2417 hostname must consist only of 7-bit ASCII lower-case characters and no spaces, and be
2418 formatted as a valid DNS domain name. A single-label hostname is sent as DHCP option 12
2419 (Host Name, <ulink url="https://tools.ietf.org/html/rfc2132">RFC 2132</ulink>);
2420 a multi-label hostname (FQDN) is sent instead as DHCP option 81 (Client FQDN,
2421 <ulink url="https://tools.ietf.org/html/rfc4702">RFC 4702</ulink>).
2422 Otherwise, the hostname is not sent even if this option is true.</para>
2423
2424 <xi:include href="version-info.xml" xpointer="v215"/>
2425 </listitem>
2426 </varlistentry>
2427
2428 <varlistentry>
2429 <term><varname>Hostname=</varname></term>
2430 <listitem>
2431 <para>Use this value for the hostname which is sent to the DHCP server, instead of machine's
2432 hostname. Note that the specified hostname must consist only of 7-bit ASCII lower-case
2433 characters and no spaces, and be formatted as a valid DNS domain name. Multi-label hostnames
2434 (FQDNs) are acceptable; see <varname>SendHostname=</varname> above for details.</para>
2435
2436 <xi:include href="version-info.xml" xpointer="v223"/>
2437 </listitem>
2438 </varlistentry>
2439
2440 <varlistentry>
2441 <term><varname>MUDURL=</varname></term>
2442 <listitem>
2443 <para>When configured, the specified Manufacturer Usage Description (MUD) URL will be sent
2444 to the DHCPv4 server. Takes a URL of length up to 255 characters. A superficial verification
2445 that the string is a valid URL will be performed. DHCPv4 clients are intended to have at most
2446 one MUD URL associated with them. See
2447 <ulink url="https://tools.ietf.org/html/rfc8520">RFC 8520</ulink>.</para>
2448
2449 <para>MUD is an embedded software standard defined by the IETF that allows IoT device makers
2450 to advertise device specifications, including the intended communication patterns for their
2451 device when it connects to the network. The network can then use this to author a
2452 context-specific access policy, so the device functions only within those parameters.</para>
2453
2454 <xi:include href="version-info.xml" xpointer="v246"/>
2455 </listitem>
2456 </varlistentry>
2457
2458 <varlistentry>
2459 <term><varname>ClientIdentifier=</varname></term>
2460 <listitem>
2461 <para>The DHCPv4 client identifier to use. Takes one of <option>mac</option> or
2462 <option>duid</option>. If set to <option>mac</option>, the MAC address of the link is used. If set
2463 to <option>duid</option>, an RFC4361-compliant Client ID, which is the combination of IAID and
2464 DUID, is used. IAID can be configured by <varname>IAID=</varname>. DUID can be configured by
2465 <varname>DUIDType=</varname> and <varname>DUIDRawData=</varname>. When
2466 <varname>Anonymize=</varname> is enabled, <option>mac</option> is unconditionally used and the
2467 specified value will be ignored. When unspecified, the value specified in the same setting in
2468 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
2469 will be used.</para>
2470
2471 <xi:include href="version-info.xml" xpointer="v220"/>
2472 </listitem>
2473 </varlistentry>
2474
2475 <varlistentry>
2476 <term><varname>VendorClassIdentifier=</varname></term>
2477 <listitem>
2478 <para>The vendor class identifier used to identify vendor type and configuration.</para>
2479
2480 <xi:include href="version-info.xml" xpointer="v216"/>
2481 </listitem>
2482 </varlistentry>
2483
2484 <varlistentry>
2485 <term><varname>UserClass=</varname></term>
2486 <listitem>
2487 <para>A DHCPv4 client can use UserClass option to identify the type or category of user or
2488 applications it represents. The information contained in this option is a string that
2489 represents the user class of which the client is a member. Each class sets an identifying
2490 string of information to be used by the DHCP service to classify clients. Takes a
2491 whitespace-separated list of strings.</para>
2492
2493 <xi:include href="version-info.xml" xpointer="v239"/>
2494 </listitem>
2495 </varlistentry>
2496
2497 <varlistentry>
2498 <term><varname>DUIDType=</varname></term>
2499 <listitem>
2500 <para>Override the global <varname>DUIDType=</varname> setting for this network. See
2501 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
2502 for a description of possible values.</para>
2503
2504 <xi:include href="version-info.xml" xpointer="v230"/>
2505 </listitem>
2506 </varlistentry>
2507
2508 <varlistentry>
2509 <term><varname>DUIDRawData=</varname></term>
2510 <listitem>
2511 <para>Override the global <varname>DUIDRawData=</varname> setting for this network. See
2512 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
2513 for a description of possible values.</para>
2514
2515 <xi:include href="version-info.xml" xpointer="v230"/>
2516 </listitem>
2517 </varlistentry>
2518
2519 <varlistentry>
2520 <term><varname>IAID=</varname></term>
2521 <listitem>
2522 <para>The DHCP Identity Association Identifier (IAID) for the interface, a 32-bit unsigned
2523 integer.</para>
2524
2525 <xi:include href="version-info.xml" xpointer="v230"/>
2526 </listitem>
2527 </varlistentry>
2528
2529 <varlistentry>
2530 <term><varname>RapidCommit=</varname></term>
2531 <listitem>
2532 <para>Takes a boolean. The DHCPv4 client can obtain configuration parameters from a DHCPv4 server
2533 through a rapid two-message exchange (discover and ack). When the rapid commit option is set by
2534 both the DHCPv4 client and the DHCPv4 server, the two-message exchange is used. Otherwise, the
2535 four-message exchange (discover, offer, request, and ack) is used. The two-message exchange
2536 provides faster client configuration. See
2537 <ulink url="https://tools.ietf.org/html/rfc4039">RFC 4039</ulink> for details.
2538 Defaults to true when <varname>Anonymize=no</varname> and neither <varname>AllowList=</varname>
2539 nor <varname>DenyList=</varname> is specified, and false otherwise.</para>
2540
2541 <xi:include href="version-info.xml" xpointer="v255"/>
2542 </listitem>
2543 </varlistentry>
2544
2545 <varlistentry>
2546 <term><varname>Anonymize=</varname></term>
2547 <listitem>
2548 <para>Takes a boolean. When true, the options sent to the DHCP server will follow the
2549 <ulink url="https://tools.ietf.org/html/rfc7844">RFC 7844</ulink> (Anonymity Profiles for
2550 DHCP Clients) to minimize disclosure of identifying information. Defaults to false.</para>
2551
2552 <para>This option should only be set to true when <varname>MACAddressPolicy=</varname> is set
2553 to <option>random</option> (see
2554 <citerefentry><refentrytitle>systemd.link</refentrytitle><manvolnum>5</manvolnum></citerefentry>).
2555 </para>
2556
2557 <para>When true,
2558 <varname>ClientIdentifier=mac</varname>,
2559 <varname>RapidCommit=no</varname>,
2560 <varname>SendHostname=no</varname>,
2561 <varname>Use6RD=no</varname>,
2562 <varname>UseCaptivePortal=no</varname>,
2563 <varname>UseMTU=no</varname>,
2564 <varname>UseNTP=no</varname>,
2565 <varname>UseSIP=no</varname>, and
2566 <varname>UseTimezone=no</varname>
2567 are implied and these settings in the .network file are silently ignored. Also,
2568 <varname>Hostname=</varname>,
2569 <varname>MUDURL=</varname>,
2570 <varname>RequestAddress=</varname>,
2571 <varname>RequestOptions=</varname>,
2572 <varname>SendOption=</varname>,
2573 <varname>SendVendorOption=</varname>,
2574 <varname>UserClass=</varname>, and
2575 <varname>VendorClassIdentifier=</varname>
2576 are silently ignored.</para>
2577
2578 <para>With this option enabled DHCP requests will mimic those generated by Microsoft
2579 Windows, in order to reduce the ability to fingerprint and recognize installations. This
2580 means DHCP request sizes will grow and lease data will be more comprehensive than normally,
2581 though most of the requested data is not actually used.</para>
2582
2583 <xi:include href="version-info.xml" xpointer="v235"/>
2584 </listitem>
2585 </varlistentry>
2586
2587 <varlistentry>
2588 <term><varname>RequestOptions=</varname></term>
2589 <listitem>
2590 <para>Sets request options to be sent to the server in the DHCPv4 request options list. A
2591 whitespace-separated list of integers in the range 1…254. Defaults to unset.</para>
2592
2593 <xi:include href="version-info.xml" xpointer="v244"/>
2594 </listitem>
2595 </varlistentry>
2596
2597 <varlistentry>
2598 <term><varname>SendOption=</varname></term>
2599 <listitem>
2600 <para>Send an arbitrary raw option in the DHCPv4 request. Takes a DHCP option number, data
2601 type and data separated with a colon
2602 (<literal><replaceable>option</replaceable>:<replaceable>type</replaceable>:<replaceable>value</replaceable></literal>).
2603 The option number must be an integer in the range 1…254. The type takes one of
2604 <literal>uint8</literal>, <literal>uint16</literal>, <literal>uint32</literal>,
2605 <literal>ipv4address</literal>, or <literal>string</literal>. Special characters in the data
2606 string may be escaped using
2607 <ulink url="https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
2608 escapes</ulink>. This setting can be specified multiple times. If an empty string is
2609 specified, then all options specified earlier are cleared. Defaults to unset.</para>
2610
2611 <xi:include href="version-info.xml" xpointer="v244"/>
2612 </listitem>
2613 </varlistentry>
2614
2615 <varlistentry>
2616 <term><varname>SendVendorOption=</varname></term>
2617 <listitem>
2618 <para>Send an arbitrary vendor option in the DHCPv4 request. Takes a DHCP option number, data
2619 type and data separated with a colon
2620 (<literal><replaceable>option</replaceable>:<replaceable>type</replaceable>:<replaceable>value</replaceable></literal>).
2621 The option number must be an integer in the range 1…254. The type takes one of
2622 <literal>uint8</literal>, <literal>uint16</literal>, <literal>uint32</literal>,
2623 <literal>ipv4address</literal>, or <literal>string</literal>. Special characters in the data
2624 string may be escaped using
2625 <ulink url="https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
2626 escapes</ulink>. This setting can be specified multiple times. If an empty string is specified,
2627 then all options specified earlier are cleared. Defaults to unset.</para>
2628
2629 <xi:include href="version-info.xml" xpointer="v246"/>
2630 </listitem>
2631 </varlistentry>
2632
2633 <varlistentry>
2634 <term><varname>IPServiceType=</varname></term>
2635 <listitem>
2636 <para>Takes one of the special values <literal>none</literal>, <literal>CS6</literal>, or
2637 <literal>CS4</literal>. When <literal>none</literal> no IP service type is set to the packet
2638 sent from the DHCPv4 client. When <literal>CS6</literal> (network control) or
2639 <literal>CS4</literal> (realtime), the corresponding service type will be set. Defaults to
2640 <literal>CS6</literal>.</para>
2641
2642 <xi:include href="version-info.xml" xpointer="v244"/>
2643 </listitem>
2644 </varlistentry>
2645
2646 <varlistentry>
2647 <term><varname>SocketPriority=</varname></term>
2648 <listitem>
2649 <para>The Linux socket option <constant>SO_PRIORITY</constant> applied to the raw IP socket used for
2650 initial DHCPv4 messages. Unset by default. Usual values range from 0 to 6.
2651 More details about <constant>SO_PRIORITY</constant> socket option in
2652 <citerefentry project='man-pages'><refentrytitle>socket</refentrytitle><manvolnum>7</manvolnum></citerefentry>.
2653 Can be used in conjunction with [VLAN] section <varname>EgressQOSMaps=</varname> setting of .netdev
2654 file to set the 802.1Q VLAN ethernet tagged header priority, see
2655 <citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
2656 </para>
2657
2658 <xi:include href="version-info.xml" xpointer="v253"/>
2659 </listitem>
2660 </varlistentry>
2661
2662 <varlistentry>
2663 <term><varname>BOOTP=</varname></term>
2664 <listitem>
2665 <para>Takes a boolean. When enabled, the DHCPv4 client will be configured to communicate with BOOTP
2666 servers, rather than with DHCP servers. Defaults to off.</para>
2667
2668 <xi:include href="version-info.xml" xpointer="v258"/>
2669 </listitem>
2670 </varlistentry>
2671
2672 <!-- How to use the DHCP lease -->
2673
2674 <varlistentry>
2675 <term><varname>Label=</varname></term>
2676 <listitem>
2677 <para>Specifies the label for the IPv4 address received from the DHCP server. The label must
2678 be a 7-bit ASCII string with a length of 1…15 characters. Defaults to unset.</para>
2679
2680 <xi:include href="version-info.xml" xpointer="v250"/>
2681 </listitem>
2682 </varlistentry>
2683
2684 <varlistentry>
2685 <term><varname>UseDNS=</varname></term>
2686 <listitem>
2687 <para>When true (the default), the DNS servers received from the DHCP server will be used.
2688 </para>
2689
2690 <para>This corresponds to the <option>nameserver</option> option in
2691 <citerefentry project='man-pages'><refentrytitle>resolv.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
2692 </para>
2693
2694 <xi:include href="version-info.xml" xpointer="v211"/>
2695 </listitem>
2696 </varlistentry>
2697
2698 <varlistentry>
2699 <term><varname>RoutesToDNS=</varname></term>
2700 <listitem>
2701 <para>When true, the routes to the DNS servers received from the DHCP server will be
2702 configured. When <varname>UseDNS=</varname> is disabled, this setting is ignored. Defaults to
2703 true.</para>
2704
2705 <xi:include href="version-info.xml" xpointer="v243"/>
2706 </listitem>
2707 </varlistentry>
2708
2709 <varlistentry>
2710 <term><varname>UseNTP=</varname></term>
2711 <listitem>
2712 <para>When true (the default), the NTP servers received from the DHCP server will be used by
2713 <filename>systemd-timesyncd.service</filename>.</para>
2714
2715 <xi:include href="version-info.xml" xpointer="v220"/>
2716 </listitem>
2717 </varlistentry>
2718
2719 <varlistentry>
2720 <term><varname>RoutesToNTP=</varname></term>
2721 <listitem>
2722 <para>When true, the routes to the NTP servers received from the DHCP server will be
2723 configured. When <varname>UseNTP=</varname> is disabled, this setting is ignored. Defaults to
2724 true.</para>
2725
2726 <xi:include href="version-info.xml" xpointer="v249"/>
2727 </listitem>
2728 </varlistentry>
2729
2730 <varlistentry>
2731 <term><varname>UseSIP=</varname></term>
2732 <listitem>
2733 <para>When true (the default), the SIP servers received from the DHCP server will be collected
2734 and made available to client programs.</para>
2735
2736 <xi:include href="version-info.xml" xpointer="v244"/>
2737 </listitem>
2738 </varlistentry>
2739
2740 <varlistentry>
2741 <term><varname>UseCaptivePortal=</varname></term>
2742 <listitem>
2743 <para>When true (the default), the captive portal advertised by the DHCP server will be recorded
2744 and made available to client programs and displayed in the
2745 <citerefentry><refentrytitle>networkctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
2746 status output per-link.</para>
2747
2748 <xi:include href="version-info.xml" xpointer="v254"/>
2749 </listitem>
2750 </varlistentry>
2751
2752 <varlistentry>
2753 <term><varname>UseDNR=</varname></term>
2754 <listitem>
2755 <para>When true, designated resolvers advertised by the DHCP server will be used as encrypted
2756 DNS servers. See <ulink url="https://datatracker.ietf.org/doc/html/rfc9463">RFC 9463</ulink>.</para>
2757
2758 <para>Defaults to unset, and the value for <varname>UseDNS=</varname> will be used.</para>
2759
2760 <xi:include href="version-info.xml" xpointer="v257"/>
2761 </listitem>
2762 </varlistentry>
2763
2764 <varlistentry>
2765 <term><varname>UseMTU=</varname></term>
2766 <listitem>
2767 <para>When true, the interface maximum transmission unit from the DHCP server will be used on
2768 the current link. If <varname>MTUBytes=</varname> is set, then this setting is ignored.
2769 Defaults to false.</para>
2770
2771 <para>Note, some drivers will reset the interfaces if the MTU is changed. For such
2772 interfaces, please try to use <varname>IgnoreCarrierLoss=</varname> with a short timespan,
2773 e.g. <literal>3 seconds</literal>.</para>
2774
2775 <xi:include href="version-info.xml" xpointer="v211"/>
2776 </listitem>
2777 </varlistentry>
2778
2779 <varlistentry>
2780 <term><varname>UseHostname=</varname></term>
2781 <listitem>
2782 <para>When true (the default), the hostname received from the DHCP server will be set as the
2783 transient hostname of the system.</para>
2784
2785 <xi:include href="version-info.xml" xpointer="v211"/>
2786 </listitem>
2787 </varlistentry>
2788
2789 <varlistentry>
2790 <term><varname>UseDomains=</varname></term>
2791 <listitem>
2792 <para>Takes a boolean, or the special value <option>route</option>. When true, the domain name
2793 received from the DHCP server will be used as DNS search domain over this link, similarly to the
2794 effect of the <option>Domains=</option> setting. If set to <option>route</option>, the domain name
2795 received from the DHCP server will be used for routing DNS queries only, but not for searching,
2796 similarly to the effect of the <option>Domains=</option> setting when the argument is prefixed with
2797 <literal>~</literal>.</para>
2798
2799 <para>When unspecified, the value specified in the same setting in the [Network] section will be
2800 used. When it is unspecified, the value specified in the same setting in the [DHCPv4] section in
2801 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
2802 will be used. When it is unspecified, the value specified in the same setting in the [Network]
2803 section in
2804 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
2805 will be used. When none of them are specified, defaults to <literal>no</literal>.</para>
2806
2807 <para>It is recommended to enable this option only on trusted networks, as setting this
2808 affects resolution of all hostnames, in particular of single-label names. It is generally
2809 safer to use the supplied domain only as routing domain, rather than as search domain, in
2810 order to not have it affect local resolution of single-label names.</para>
2811
2812 <para>When set to true, this setting corresponds to the <option>domain</option> option in
2813 <citerefentry project='man-pages'><refentrytitle>resolv.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
2814 </para>
2815
2816 <xi:include href="version-info.xml" xpointer="v216"/>
2817 </listitem>
2818 </varlistentry>
2819
2820 <varlistentry>
2821 <term><varname>UseRoutes=</varname></term>
2822 <listitem>
2823 <para>When true (the default), the static routes will be requested from the DHCP server and
2824 added to the routing table with a metric of 1024, and a scope of <option>global</option>,
2825 <option>link</option> or <option>host</option>, depending on the route's destination and
2826 gateway. If the destination is on the local host, e.g., 127.x.x.x, or the same as the link's
2827 own address, the scope will be set to <option>host</option>. Otherwise, if the gateway is null
2828 (a direct route), a <option>link</option> scope will be used. For anything else, scope
2829 defaults to <option>global</option>.</para>
2830
2831 <xi:include href="version-info.xml" xpointer="v215"/>
2832 </listitem>
2833 </varlistentry>
2834
2835 <varlistentry>
2836 <term><varname>RouteMetric=</varname></term>
2837 <listitem>
2838 <para>Set the routing metric for routes specified by the DHCP server (including the prefix
2839 route added for the specified prefix). Takes an unsigned integer in the range 0…4294967295.
2840 Defaults to 1024.</para>
2841
2842 <xi:include href="version-info.xml" xpointer="v217"/>
2843 </listitem>
2844 </varlistentry>
2845
2846 <varlistentry>
2847 <term><varname>RouteTable=<replaceable>num</replaceable></varname></term>
2848 <listitem>
2849 <para>The table identifier for DHCP routes. Takes one of predefined names
2850 <literal>default</literal>, <literal>main</literal>, and <literal>local</literal>, and names
2851 defined in <varname>RouteTable=</varname> in
2852 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
2853 or a number between 1…4294967295.</para>
2854
2855 <para>When used in combination with <varname>VRF=</varname>, the VRF's routing table is
2856 used when this parameter is not specified.</para>
2857
2858 <xi:include href="version-info.xml" xpointer="v232"/>
2859 </listitem>
2860 </varlistentry>
2861
2862 <varlistentry>
2863 <term><varname>RouteMTUBytes=</varname></term>
2864 <listitem>
2865 <para>Specifies the MTU for the DHCP routes. Please see the [Route] section for further
2866 details.</para>
2867
2868 <xi:include href="version-info.xml" xpointer="v245"/>
2869 </listitem>
2870 </varlistentry>
2871
2872 <varlistentry>
2873 <term><varname>QuickAck=</varname></term>
2874 <listitem>
2875 <para>Takes a boolean. When true, the TCP quick ACK mode is enabled for the routes configured by
2876 the acquired DHCPv4 lease. When unset, the kernel's default will be used.</para>
2877
2878 <xi:include href="version-info.xml" xpointer="v253"/>
2879 </listitem>
2880 </varlistentry>
2881
2882 <varlistentry>
2883 <term><varname>InitialCongestionWindow=</varname></term>
2884 <listitem>
2885 <para>As in the [Route] section.</para>
2886
2887 <xi:include href="version-info.xml" xpointer="v255"/>
2888 </listitem>
2889 </varlistentry>
2890
2891 <varlistentry>
2892 <term><varname>InitialAdvertisedReceiveWindow=</varname></term>
2893 <listitem>
2894 <para>As in the [Route] section.</para>
2895
2896 <xi:include href="version-info.xml" xpointer="v255"/>
2897 </listitem>
2898 </varlistentry>
2899
2900 <varlistentry>
2901 <term><varname>UseGateway=</varname></term>
2902 <listitem>
2903 <para>When true, and the DHCP server provides a Router option, the default gateway based on the
2904 router address will be configured. Defaults to unset, and the value specified with
2905 <varname>UseRoutes=</varname> will be used.</para>
2906
2907 <para>Note, when the server provides both the Router and Classless Static Routes option, and
2908 <varname>UseRoutes=</varname> is enabled, the Router option is always ignored regardless of this
2909 setting. See <ulink url="https://datatracker.ietf.org/doc/html/rfc3442">RFC 3442</ulink>.</para>
2910
2911 <xi:include href="version-info.xml" xpointer="v246"/>
2912 </listitem>
2913 </varlistentry>
2914
2915 <varlistentry>
2916 <term><varname>UseTimezone=</varname></term>
2917 <listitem><para>When true, the timezone received from the DHCP server will be set as timezone
2918 of the local system. Defaults to false.</para>
2919
2920 <xi:include href="version-info.xml" xpointer="v226"/></listitem>
2921 </varlistentry>
2922
2923 <varlistentry>
2924 <term><varname>Use6RD=</varname></term>
2925 <listitem>
2926 <para>When true, subnets of the received IPv6 prefix are assigned to downstream interfaces
2927 which enables <varname>DHCPPrefixDelegation=</varname>. See also
2928 <varname>DHCPPrefixDelegation=</varname> in the [Network] section, the [DHCPPrefixDelegation]
2929 section, and <ulink url="https://tools.ietf.org/html/rfc5969">RFC 5969</ulink>. Defaults to
2930 false.</para>
2931
2932 <xi:include href="version-info.xml" xpointer="v250"/>
2933 </listitem>
2934 </varlistentry>
2935
2936 <varlistentry>
2937 <term><varname>UnassignedSubnetPolicy=</varname></term>
2938 <listitem>
2939 <para>Takes <literal>none</literal>, or one of the reject types: <literal>unreachable</literal>,
2940 <literal>prohibit</literal>, <literal>blackhole</literal>, or <literal>throw</literal>. If a reject
2941 type is specified, the reject route corresponding to the acquired 6RD prefix will be configured.
2942 For example, when <literal>unreachable</literal>,
2943 <programlisting>unreachable 2001:db8::/56 dev lo proto dhcp metric 1024 pref medium</programlisting>
2944 will be configured. See <ulink url="https://datatracker.ietf.org/doc/html/rfc7084">RFC 7084</ulink>.
2945 If <literal>none</literal> is specified, such route will not be configured. This may be useful when
2946 custom firewall rules that handle packets for unassigned subnets will be configured.
2947 Defaults to <literal>unreachable</literal>.</para>
2948
2949 <xi:include href="version-info.xml" xpointer="v257"/>
2950 </listitem>
2951 </varlistentry>
2952
2953 <varlistentry>
2954 <term><varname>IPv6OnlyMode=</varname></term>
2955 <listitem>
2956 <para>When true, the DHCPv4 configuration will be delayed by the timespan provided by the DHCP
2957 server and skip to configure dynamic IPv4 network connectivity if IPv6 connectivity is provided
2958 within the timespan. See <ulink url="https://tools.ietf.org/html/rfc8925">RFC 8925</ulink>.
2959 Defaults to false.</para>
2960
2961 <xi:include href="version-info.xml" xpointer="v255"/>
2962 </listitem>
2963 </varlistentry>
2964
2965 <varlistentry>
2966 <term><varname>FallbackLeaseLifetimeSec=</varname></term>
2967 <listitem>
2968 <para>Allows one to set DHCPv4 lease lifetime when DHCPv4 server does not send the lease
2969 lifetime. Takes one of <literal>forever</literal> or <literal>infinity</literal>. If
2970 specified, the acquired address never expires. Defaults to unset.</para>
2971
2972 <xi:include href="version-info.xml" xpointer="v246"/>
2973 </listitem>
2974 </varlistentry>
2975
2976 <!-- How to communicate with the server -->
2977
2978 <varlistentry>
2979 <term><varname>RequestBroadcast=</varname></term>
2980 <listitem>
2981 <para>Request the server to use broadcast messages before the IP address has been configured.
2982 This is necessary for devices that cannot receive RAW packets, or that cannot receive packets
2983 at all before an IP address has been configured. On the other hand, this must not be enabled
2984 on networks where broadcasts are filtered out.</para>
2985
2986 <xi:include href="version-info.xml" xpointer="v216"/>
2987 </listitem>
2988 </varlistentry>
2989
2990 <varlistentry>
2991 <term><varname>MaxAttempts=</varname></term>
2992 <listitem>
2993 <para>Specifies how many times the DHCPv4 client configuration should be attempted. Takes a
2994 number or <literal>infinity</literal>. Defaults to <literal>infinity</literal>. Note that the
2995 time between retries is increased exponentially, up to approximately one per minute, so the
2996 network will not be overloaded even if this number is high. The default is suitable in most
2997 circumstances.</para>
2998
2999 <xi:include href="version-info.xml" xpointer="v243"/>
3000 </listitem>
3001 </varlistentry>
3002
3003 <varlistentry>
3004 <term><varname>ListenPort=</varname></term>
3005 <listitem>
3006 <para>Set the port from which the DHCP client packets originate.</para>
3007
3008 <xi:include href="version-info.xml" xpointer="v233"/>
3009 </listitem>
3010 </varlistentry>
3011
3012 <varlistentry>
3013 <term><varname>ServerPort=</varname></term>
3014 <listitem>
3015 <para>Set the port on which the DHCP server is listening.</para>
3016
3017 <xi:include href="version-info.xml" xpointer="v256"/>
3018 </listitem>
3019 </varlistentry>
3020
3021 <varlistentry>
3022 <term><varname>DenyList=</varname></term>
3023 <listitem>
3024 <para>A whitespace-separated list of IPv4 addresses. Each address can optionally take a
3025 prefix length after <literal>/</literal>. DHCP offers from servers in the list are rejected.
3026 Note that if <varname>AllowList=</varname> is configured then <varname>DenyList=</varname> is
3027 ignored.</para>
3028 <para>Note that this filters only DHCP offers, so the filtering might not work when
3029 <varname>RapidCommit=</varname> is enabled. See also <varname>RapidCommit=</varname> above.
3030 </para>
3031
3032 <xi:include href="version-info.xml" xpointer="v246"/>
3033 </listitem>
3034 </varlistentry>
3035
3036 <varlistentry>
3037 <term><varname>AllowList=</varname></term>
3038 <listitem>
3039 <para>A whitespace-separated list of IPv4 addresses. Each address can optionally take a
3040 prefix length after <literal>/</literal>. DHCP offers from servers in the list are accepted.
3041 </para>
3042 <para>Note that this filters only DHCP offers, so the filtering might not work when
3043 <varname>RapidCommit=</varname> is enabled. See also <varname>RapidCommit=</varname> above.
3044 </para>
3045
3046 <xi:include href="version-info.xml" xpointer="v246"/>
3047 </listitem>
3048 </varlistentry>
3049
3050 <varlistentry>
3051 <term><varname>SendRelease=</varname></term>
3052 <listitem>
3053 <para>When true, the DHCPv4 client sends a DHCP release packet when it stops. Defaults to
3054 true.</para>
3055
3056 <xi:include href="version-info.xml" xpointer="v243"/>
3057 </listitem>
3058 </varlistentry>
3059
3060 <varlistentry>
3061 <term><varname>SendDecline=</varname></term>
3062 <listitem>
3063 <para>A boolean. When true, <command>systemd-networkd</command> performs IPv4 Duplicate
3064 Address Detection to the acquired address by the DHCPv4 client. If duplicate is detected,
3065 the DHCPv4 client rejects the address by sending a <constant>DHCPDECLINE</constant> packet to
3066 the DHCP server, and tries to obtain an IP address again. See
3067 <ulink url="https://tools.ietf.org/html/rfc5227">RFC 5227</ulink>. Defaults to false.</para>
3068
3069 <xi:include href="version-info.xml" xpointer="v245"/>
3070 </listitem>
3071 </varlistentry>
3072
3073 <varlistentry>
3074 <term><varname>NetLabel=</varname></term>
3075 <listitem>
3076 <para>This applies the NetLabel for the addresses received with DHCP, like
3077 <varname>NetLabel=</varname> in [Address] section applies it to statically configured
3078 addresses. See <varname>NetLabel=</varname> in [Address] section for more details.</para>
3079
3080 <xi:include href="version-info.xml" xpointer="v252"/>
3081 </listitem>
3082 </varlistentry>
3083
3084 <varlistentry>
3085 <term><varname>NFTSet=</varname></term>
3086 <listitem>
3087 <para>This applies the NFT set for the network configuration received with DHCP, like
3088 <varname>NFTSet=</varname> in [Address] section applies it to static configuration. See
3089 <varname>NFTSet=</varname> in [Address] section for more details. For <literal>address</literal> or
3090 <literal>prefix</literal> source types, the type of the element used in the NFT filter must be
3091 <literal>ipv4_addr</literal>.</para>
3092
3093 <xi:include href="version-info.xml" xpointer="v255"/>
3094 </listitem>
3095 </varlistentry>
3096 </variablelist>
3097 </refsect1>
3098
3099 <refsect1>
3100 <title>[DHCPv6] Section Options</title>
3101
3102 <para>The [DHCPv6] section configures the DHCPv6 client, if it is enabled with the
3103 <varname>DHCP=</varname> setting described above, or invoked by the IPv6 Router Advertisement:
3104 </para>
3105
3106 <variablelist class='network-directives'>
3107
3108 <!-- DHCP packet contents -->
3109
3110 <varlistentry>
3111 <term><varname>MUDURL=</varname></term>
3112 <term><varname>IAID=</varname></term>
3113 <term><varname>DUIDType=</varname></term>
3114 <term><varname>DUIDRawData=</varname></term>
3115 <term><varname>RequestOptions=</varname></term>
3116 <listitem>
3117 <para>As in the [DHCPv4] section.</para>
3118
3119 <xi:include href="version-info.xml" xpointer="v246"/>
3120 </listitem>
3121 </varlistentry>
3122
3123 <varlistentry>
3124 <term><varname>SendOption=</varname></term>
3125 <listitem>
3126 <para>As in the [DHCPv4] section, however because DHCPv6 uses 16-bit fields to store option
3127 numbers, the option number is an integer in the range 1…65536.</para>
3128
3129 <xi:include href="version-info.xml" xpointer="v246"/>
3130 </listitem>
3131 </varlistentry>
3132
3133 <varlistentry>
3134 <term><varname>SendVendorOption=</varname></term>
3135 <listitem>
3136 <para>Send an arbitrary vendor option in the DHCPv6 request. Takes an enterprise identifier,
3137 DHCP option number, data type, and data separated with a colon
3138 (<literal><replaceable>enterprise identifier</replaceable>:<replaceable>option</replaceable>:<replaceable>type</replaceable>:<replaceable>value</replaceable></literal>).
3139 Enterprise identifier is an unsigned integer in the range 1…4294967294. The option number
3140 must be an integer in the range 1…254. Data type takes one of <literal>uint8</literal>,
3141 <literal>uint16</literal>, <literal>uint32</literal>, <literal>ipv4address</literal>,
3142 <literal>ipv6address</literal>, or <literal>string</literal>. Special characters in the data
3143 string may be escaped using
3144 <ulink url="https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
3145 escapes</ulink>. This setting can be specified multiple times. If an empty string is
3146 specified, then all options specified earlier are cleared. Defaults to unset.</para>
3147
3148 <xi:include href="version-info.xml" xpointer="v246"/>
3149 </listitem>
3150 </varlistentry>
3151
3152 <varlistentry>
3153 <term><varname>UserClass=</varname></term>
3154 <listitem>
3155 <para>A DHCPv6 client can use User Class option to identify the type or category of user or
3156 applications it represents. The information contained in this option is a string that
3157 represents the user class of which the client is a member. Each class sets an identifying
3158 string of information to be used by the DHCP service to classify clients. Special characters
3159 in the data string may be escaped using
3160 <ulink url="https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
3161 escapes</ulink>. This setting can be specified multiple times. If an empty string is
3162 specified, then all options specified earlier are cleared. Takes a whitespace-separated list
3163 of strings. Note that currently <constant>NUL</constant> bytes are not allowed.</para>
3164
3165 <xi:include href="version-info.xml" xpointer="v246"/>
3166 </listitem>
3167 </varlistentry>
3168
3169 <varlistentry>
3170 <term><varname>VendorClass=</varname></term>
3171 <listitem>
3172 <para>A DHCPv6 client can use VendorClass option to identify the vendor that manufactured the
3173 hardware on which the client is running. The information contained in the data area of this
3174 option is contained in one or more opaque fields that identify details of the hardware
3175 configuration. Takes a whitespace-separated list of strings.</para>
3176
3177 <xi:include href="version-info.xml" xpointer="v246"/>
3178 </listitem>
3179 </varlistentry>
3180
3181 <varlistentry>
3182 <term><varname>PrefixDelegationHint=</varname></term>
3183 <listitem>
3184 <para>Takes an IPv6 address with prefix length in the same format as the
3185 <varname>Address=</varname> in the [Network] section. The DHCPv6 client will include a prefix
3186 hint in the DHCPv6 solicitation sent to the server. The prefix length must be in the range
3187 1…128. Defaults to unset.</para>
3188
3189 <xi:include href="version-info.xml" xpointer="v244"/>
3190 </listitem>
3191 </varlistentry>
3192
3193 <varlistentry>
3194 <term><varname>UnassignedSubnetPolicy=</varname></term>
3195 <listitem>
3196 <para>Takes <literal>none</literal> or one of the reject types: <literal>unreachable</literal>,
3197 <literal>prohibit</literal>, <literal>blackhole</literal>, or <literal>throw</literal>. If a reject
3198 type is specified, the reject route corresponding to the delegated prefix will be configured.
3199 For example, when <literal>unreachable</literal>,
3200 <programlisting>unreachable 2001:db8::/56 dev lo proto dhcp metric 1024 pref medium</programlisting>
3201 will be configured. See <ulink url="https://datatracker.ietf.org/doc/html/rfc7084">RFC 7084</ulink>.
3202 If <literal>none</literal> is specified, such route will not be configured. This may be useful when
3203 custom firewall rules that handle packets for unassigned subnets will be configured.
3204 Defaults to <literal>unreachable</literal>.</para>
3205
3206 <xi:include href="version-info.xml" xpointer="v257"/>
3207 </listitem>
3208 </varlistentry>
3209
3210 <varlistentry>
3211 <term><varname>RouteTable=<replaceable>num</replaceable></varname></term>
3212 <listitem>
3213 <para>The table identifier for routes installed by the DHCPv6 client, e.g. unreachable
3214 routes for delegated prefixes. Takes one of the predefined names <literal>default</literal>,
3215 <literal>main</literal>, and <literal>local</literal>, names defined in
3216 <varname>RouteTable=</varname> in
3217 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
3218 or a number between 1…4294967295.</para>
3219
3220 <para>When used in combination with <varname>VRF=</varname>, the VRF's routing table is
3221 used when this parameter is not specified.</para>
3222
3223 <xi:include href="version-info.xml" xpointer="v261"/>
3224 </listitem>
3225 </varlistentry>
3226
3227 <varlistentry>
3228 <term><varname>RapidCommit=</varname></term>
3229 <listitem>
3230 <para>Takes a boolean. The DHCPv6 client can obtain configuration parameters from a DHCPv6 server
3231 through a rapid two-message exchange (solicit and reply). When the rapid commit option is set by
3232 both the DHCPv6 client and the DHCPv6 server, the two-message exchange is used. Otherwise, the
3233 four-message exchange (solicit, advertise, request, and reply) is used. The two-message exchange
3234 provides faster client configuration. See
3235 <ulink url="https://tools.ietf.org/html/rfc3315#section-17.2.1">RFC 3315</ulink> for details.
3236 Defaults to true, and the two-message exchange will be used if the server support it.</para>
3237
3238 <xi:include href="version-info.xml" xpointer="v252"/>
3239 </listitem>
3240 </varlistentry>
3241
3242 <varlistentry>
3243 <term><varname>SendHostname=</varname></term>
3244 <listitem>
3245 <para>When true (the default), the machine's hostname (or the value specified with
3246 <varname>Hostname=</varname>, described below) will be sent to the DHCPv6 server. Note that the
3247 hostname must consist only of 7-bit ASCII lower-case characters and no spaces or dots, and be
3248 formatted as a valid DNS domain name. Otherwise, the hostname is not sent even if this option
3249 is true.</para>
3250
3251 <xi:include href="version-info.xml" xpointer="v255"/>
3252 </listitem>
3253 </varlistentry>
3254
3255 <varlistentry>
3256 <term><varname>Hostname=</varname></term>
3257 <listitem>
3258 <para>Use this value for the hostname which is sent to the DHCPv6 server, instead of machine's
3259 hostname. Note that the specified hostname must consist only of 7-bit ASCII lower-case
3260 characters and no spaces or dots, and be formatted as a valid DNS domain name.</para>
3261
3262 <xi:include href="version-info.xml" xpointer="v255"/>
3263 </listitem>
3264 </varlistentry>
3265
3266 <!-- How to use the DHCP lease -->
3267
3268 <varlistentry>
3269 <term><varname>UseAddress=</varname></term>
3270 <listitem>
3271 <para>When true (the default), the IP addresses provided by the DHCPv6 server will be
3272 assigned.</para>
3273
3274 <xi:include href="version-info.xml" xpointer="v248"/>
3275 </listitem>
3276 </varlistentry>
3277
3278 <varlistentry>
3279 <term><varname>UseCaptivePortal=</varname></term>
3280 <listitem>
3281 <para>When true (the default), the captive portal advertised by the DHCPv6 server will be recorded
3282 and made available to client programs and displayed in the
3283 <citerefentry><refentrytitle>networkctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
3284 status output per-link.</para>
3285
3286 <xi:include href="version-info.xml" xpointer="v254"/>
3287 </listitem>
3288 </varlistentry>
3289
3290 <varlistentry>
3291 <term><varname>UseDelegatedPrefix=</varname></term>
3292 <listitem>
3293 <para>When true (the default), the client will request the DHCPv6 server to delegate
3294 prefixes. If the server provides prefixes to be delegated, then subnets of the prefixes are
3295 assigned to the interfaces that have <varname>DHCPPrefixDelegation=yes</varname>.
3296 See also the <varname>DHCPPrefixDelegation=</varname> setting in the [Network] section,
3297 settings in the [DHCPPrefixDelegation] section, and
3298 <ulink url="https://www.rfc-editor.org/rfc/rfc8415.html#section-6.3">RFC 8415</ulink>.
3299 </para>
3300
3301 <xi:include href="version-info.xml" xpointer="v250"/>
3302 </listitem>
3303 </varlistentry>
3304
3305 <varlistentry>
3306 <term><varname>UseDNS=</varname></term>
3307 <term><varname>UseDNR=</varname></term>
3308 <term><varname>UseNTP=</varname></term>
3309 <term><varname>UseSIP=</varname></term>
3310 <term><varname>UseHostname=</varname></term>
3311 <term><varname>UseDomains=</varname></term>
3312 <term><varname>NetLabel=</varname></term>
3313 <term><varname>SendRelease=</varname></term>
3314 <listitem>
3315 <para>As in the [DHCPv4] section.</para>
3316
3317 <xi:include href="version-info.xml" xpointer="v243"/>
3318 </listitem>
3319 </varlistentry>
3320
3321 <varlistentry>
3322 <term><varname>NFTSet=</varname></term>
3323 <listitem>
3324 <para>This applies the NFT set for the network configuration received with DHCP, like
3325 <varname>NFTSet=</varname> in [Address] section applies it to static configuration. See
3326 <varname>NFTSet=</varname> in [Address] section for more details. For <literal>address</literal>
3327 or <literal>prefix</literal> source types, the type of the element used in the NFT filter must be
3328 <literal>ipv6_addr</literal>.</para>
3329
3330 <xi:include href="version-info.xml" xpointer="v255"/>
3331 </listitem>
3332 </varlistentry>
3333
3334 <!-- How to communicate with the server -->
3335
3336 <varlistentry>
3337 <term><varname>WithoutRA=</varname></term>
3338 <listitem>
3339 <para>Allows DHCPv6 client to start without router advertisements's
3340 <literal>managed</literal> or <literal>other configuration</literal> flag. Takes one of
3341 <literal>no</literal>, <literal>solicit</literal>, or
3342 <literal>information-request</literal>. If this is not specified,
3343 <literal>solicit</literal> is used when <varname>DHCPPrefixDelegation=</varname> is enabled
3344 and <varname>UplinkInterface=:self</varname> is specified in the [DHCPPrefixDelegation]
3345 section. Otherwise, defaults to <literal>no</literal>, and the DHCPv6 client will be started
3346 when an RA is received. See also the <varname>DHCPv6Client=</varname> setting in the
3347 [IPv6AcceptRA] section.</para>
3348
3349 <xi:include href="version-info.xml" xpointer="v246"/>
3350 </listitem>
3351 </varlistentry>
3352 </variablelist>
3353 </refsect1>
3354
3355 <refsect1>
3356 <title>[DHCPPrefixDelegation] Section Options</title>
3357 <para>The [DHCPPrefixDelegation] section configures subnet prefixes of the delegated prefixes
3358 acquired by a DHCPv6 client or by a DHCPv4 client through the 6RD option on another interface.
3359 The settings in this section are used only when the <varname>DHCPPrefixDelegation=</varname>
3360 setting in the [Network] section is enabled.</para>
3361
3362 <variablelist class='network-directives'>
3363 <varlistentry>
3364 <term><varname>UplinkInterface=</varname></term>
3365 <listitem>
3366 <para>Specifies the name or the index of the uplink interface, or one of the special values
3367 <literal>:self</literal> and <literal>:auto</literal>. When <literal>:self</literal>, the
3368 interface itself is considered the uplink interface, and
3369 <varname>WithoutRA=solicit</varname> is implied if the setting is not explicitly specified.
3370 When <literal>:auto</literal>, the first link which acquired prefixes to be delegated from
3371 the DHCPv6 or DHCPv4 server is selected. Defaults to <literal>:auto</literal>.</para>
3372
3373 <xi:include href="version-info.xml" xpointer="v250"/>
3374 </listitem>
3375 </varlistentry>
3376
3377 <varlistentry>
3378 <term><varname>SubnetId=</varname></term>
3379 <listitem>
3380 <para>Configure a specific subnet ID on the interface from a (previously) received prefix
3381 delegation. You can either set "auto" (the default) or a specific subnet ID (as defined in
3382 <ulink url="https://tools.ietf.org/html/rfc4291#section-2.5.4">RFC 4291</ulink>, section
3383 2.5.4), in which case the allowed value is hexadecimal, from 0 to 0x7fffffffffffffff
3384 inclusive.</para>
3385
3386 <xi:include href="version-info.xml" xpointer="v246"/>
3387 </listitem>
3388 </varlistentry>
3389
3390 <varlistentry>
3391 <term><varname>Announce=</varname></term>
3392 <listitem>
3393 <para>Takes a boolean. When enabled, and <varname>IPv6SendRA=</varname> in [Network] section
3394 is enabled, the delegated prefixes are distributed through the IPv6 Router Advertisement.
3395 This setting will be ignored when the <varname>DHCPPrefixDelegation=</varname> setting is
3396 enabled on the upstream interface. Defaults to yes.</para>
3397
3398 <xi:include href="version-info.xml" xpointer="v247"/>
3399 </listitem>
3400 </varlistentry>
3401
3402 <varlistentry>
3403 <term><varname>Assign=</varname></term>
3404 <listitem>
3405 <para>Takes a boolean. Specifies whether to add an address from the delegated prefixes which
3406 are received from the WAN interface by the DHCPv6 Prefix Delegation. When true (on LAN
3407 interface), the EUI-64 algorithm will be used by default to form an interface identifier from
3408 the delegated prefixes. See also <varname>Token=</varname> setting below. Defaults to yes.
3409 </para>
3410
3411 <xi:include href="version-info.xml" xpointer="v246"/>
3412 </listitem>
3413 </varlistentry>
3414
3415 <varlistentry>
3416 <term><varname>Token=</varname></term>
3417 <listitem>
3418 <para>Specifies an optional address generation mode for assigning an address in each
3419 delegated prefix. This accepts the same syntax as <varname>Token=</varname> in the
3420 [IPv6AcceptRA] section. If <varname>Assign=</varname> is set to false, then this setting will
3421 be ignored. Defaults to unset, which means the EUI-64 algorithm will be used.</para>
3422
3423 <xi:include href="version-info.xml" xpointer="v246"/>
3424 </listitem>
3425 </varlistentry>
3426
3427 <varlistentry>
3428 <term><varname>ManageTemporaryAddress=</varname></term>
3429 <listitem>
3430 <para>As in the [Address] section, but defaults to true.</para>
3431
3432 <xi:include href="version-info.xml" xpointer="v248"/>
3433 </listitem>
3434 </varlistentry>
3435
3436 <varlistentry>
3437 <term><varname>RouteMetric=</varname></term>
3438 <listitem>
3439 <para>The metric of the route to the delegated prefix subnet. Takes an unsigned integer in
3440 the range 0…4294967295. When set to 0, the kernel's default value is used. Defaults to 256.
3441 </para>
3442
3443 <xi:include href="version-info.xml" xpointer="v249"/>
3444 </listitem>
3445 </varlistentry>
3446
3447 <varlistentry>
3448 <term><varname>NetLabel=</varname></term>
3449 <listitem>
3450 <para>This applies the NetLabel for the addresses received with DHCP, like
3451 <varname>NetLabel=</varname> in [Address] section applies it to statically configured
3452 addresses. See <varname>NetLabel=</varname> in [Address] section for more details.</para>
3453
3454 <xi:include href="version-info.xml" xpointer="v252"/>
3455 </listitem>
3456 </varlistentry>
3457
3458 <varlistentry>
3459 <term><varname>NFTSet=</varname></term>
3460 <listitem>
3461 <para>This applies the NFT set for the network configuration received with DHCP, like
3462 <varname>NFTSet=</varname> in [Address] section applies it to static configuration. See
3463 <varname>NFTSet=</varname> in [Address] section for more details. For <literal>address</literal> or
3464 <literal>prefix</literal> source types, the type of the element used in the NFT filter must be
3465 <literal>ipv6_addr</literal>.</para>
3466
3467 <xi:include href="version-info.xml" xpointer="v255"/>
3468 </listitem>
3469 </varlistentry>
3470 </variablelist>
3471 </refsect1>
3472
3473 <refsect1>
3474 <title>[IPv6AcceptRA] Section Options</title>
3475 <para>The [IPv6AcceptRA] section configures the IPv6 Router Advertisement (RA) client, if it is enabled
3476 with the <varname>IPv6AcceptRA=</varname> setting described above:</para>
3477
3478 <variablelist class='network-directives'>
3479 <varlistentry>
3480 <term><varname>UseRedirect=</varname></term>
3481 <listitem>
3482 <para>When true (the default), Redirect message sent by the current first-hop router will be
3483 accepted, and routes to redirected nodes will be configured.</para>
3484
3485 <xi:include href="version-info.xml" xpointer="v256"/>
3486 </listitem>
3487 </varlistentry>
3488
3489 <varlistentry>
3490 <term><varname>Token=</varname></term>
3491 <listitem>
3492 <para>Specifies an optional address generation mode for the Stateless Address
3493 Autoconfiguration (SLAAC). The following values are supported:</para>
3494
3495 <variablelist>
3496 <varlistentry>
3497 <term><option>eui64</option></term>
3498 <listitem>
3499 <para>
3500 The EUI-64 algorithm will be used to generate an address for that prefix. Only
3501 supported by Ethernet or InfiniBand interfaces.
3502 </para>
3503
3504 <xi:include href="version-info.xml" xpointer="v250"/>
3505 </listitem>
3506 </varlistentry>
3507 <varlistentry>
3508 <term><option>static:<replaceable>ADDRESS</replaceable></option></term>
3509 <listitem>
3510 <para>
3511 An IPv6 address must be specified after a colon (<literal>:</literal>), and the
3512 lower bits of the supplied address are combined with the upper bits of a prefix
3513 received in a Router Advertisement (RA) message to form a complete address. Note
3514 that if multiple prefixes are received in an RA message, or in multiple RA messages,
3515 addresses will be formed from each of them using the supplied address. This mode
3516 implements SLAAC but uses a static interface identifier instead of an identifier
3517 generated by using the EUI-64 algorithm. Because the interface identifier is static,
3518 if Duplicate Address Detection detects that the computed address is a duplicate
3519 (in use by another node on the link), then this mode will fail to provide an address
3520 for that prefix. If an IPv6 address without <literal>static</literal> is specified, then
3521 <literal>static</literal> mode is assumed.
3522 </para>
3523
3524 <xi:include href="version-info.xml" xpointer="v250"/>
3525 </listitem>
3526 </varlistentry>
3527 <varlistentry>
3528 <term><option>prefixstable[:<replaceable>ADDRESS</replaceable>][,<replaceable>UUID</replaceable>]</option></term>
3529 <listitem>
3530 <para>
3531 The algorithm specified in
3532 <ulink url="https://tools.ietf.org/html/rfc7217">RFC 7217</ulink> will be used to
3533 generate interface identifiers. This mode can optionally take an IPv6 address
3534 separated with a colon (<literal>:</literal>). If an IPv6 address is specified,
3535 then an interface identifier is generated only when a prefix received in an RA
3536 message matches the supplied address.
3537 </para>
3538 <para>
3539 This mode can also optionally take a non-null UUID in the format which
3540 <function>sd_id128_from_string()</function> accepts, e.g.
3541 <literal>86b123b969ba4b7eb8b3d8605123525a</literal> or
3542 <literal>86b123b9-69ba-4b7e-b8b3-d8605123525a</literal>. If a UUID is specified, the
3543 value is used as the secret key to generate interface identifiers. If not specified,
3544 then an application specific ID generated with the system's machine-ID will be used
3545 as the secret key. See
3546 <citerefentry><refentrytitle>sd-id128</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
3547 <citerefentry><refentrytitle>sd_id128_from_string</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
3548 and
3549 <citerefentry><refentrytitle>sd_id128_get_machine</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
3550 </para>
3551 <para>
3552 Note that the <literal>prefixstable</literal> algorithm uses both the interface
3553 name and MAC address as input to the hash to compute the interface identifier, so
3554 if either of those are changed the resulting interface identifier (and address)
3555 will be changed, even if the prefix received in the RA message has not been
3556 changed.
3557 </para>
3558
3559 <xi:include href="version-info.xml" xpointer="v250"/>
3560 </listitem>
3561 </varlistentry>
3562 </variablelist>
3563
3564 <para>If no address generation mode is specified (which is the default), or a received
3565 prefix does not match any of the addresses provided in <literal>prefixstable</literal>
3566 mode, then the EUI-64 algorithm will be used for Ethernet or InfiniBand interfaces,
3567 otherwise <literal>prefixstable</literal> will be used to form an interface identifier for
3568 that prefix.</para>
3569
3570 <para>This setting can be specified multiple times. If an empty string is assigned, then
3571 the all previous assignments are cleared.</para>
3572
3573 <para>Examples:
3574 <programlisting>Token=eui64
3575 Token=::1a:2b:3c:4d
3576 Token=static:::1a:2b:3c:4d
3577 Token=prefixstable
3578 Token=prefixstable:2002:da8:1::</programlisting></para>
3579
3580 <xi:include href="version-info.xml" xpointer="v250"/>
3581 </listitem>
3582 </varlistentry>
3583
3584 <varlistentry>
3585 <term><varname>UseDNS=</varname></term>
3586 <listitem>
3587 <para>When true (the default), the DNS servers received in the Router Advertisement will be used.</para>
3588
3589 <para>This corresponds to the <option>nameserver</option> option in <citerefentry
3590 project='man-pages'><refentrytitle>resolv.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
3591
3592 <xi:include href="version-info.xml" xpointer="v231"/>
3593 </listitem>
3594 </varlistentry>
3595
3596 <varlistentry>
3597 <term><varname>UseDNR=</varname></term>
3598 <listitem>
3599 <para> When true, the DNR servers received in the Router Advertisement will be used. Defaults to
3600 the value of <option>UseDNS=</option>.</para>
3601
3602 <xi:include href="version-info.xml" xpointer="v257"/>
3603 </listitem>
3604 </varlistentry>
3605
3606 <varlistentry>
3607 <term><varname>UseDomains=</varname></term>
3608 <listitem>
3609 <para>Takes a boolean, or the special value <literal>route</literal>. When true, the domain name
3610 received via IPv6 Router Advertisement (RA) will be used as DNS search domain over this link,
3611 similarly to the effect of the <option>Domains=</option> setting. If set to
3612 <literal>route</literal>, the domain name received via IPv6 RA will be used for routing DNS queries
3613 only, but not for searching, similarly to the effect of the <option>Domains=</option> setting when
3614 the argument is prefixed with <literal>~</literal>. Defaults to false.</para>
3615
3616 <para>It is recommended to enable this option only on trusted networks, as setting this affects resolution
3617 of all hostnames, in particular of single-label names. It is generally safer to use the supplied domain
3618 only as routing domain, rather than as search domain, in order to not have it affect local resolution of
3619 single-label names.</para>
3620
3621 <para>When set to true, this setting corresponds to the <option>domain</option> option in <citerefentry
3622 project='man-pages'><refentrytitle>resolv.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
3623
3624 <xi:include href="version-info.xml" xpointer="v231"/>
3625 </listitem>
3626 </varlistentry>
3627
3628 <varlistentry>
3629 <term><varname>RouteTable=<replaceable>num</replaceable></varname></term>
3630 <listitem>
3631 <para>The table identifier for the routes received in the Router Advertisement. Takes one of
3632 predefined names <literal>default</literal>, <literal>main</literal>, and <literal>local</literal>,
3633 and names defined in <varname>RouteTable=</varname> in
3634 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
3635 or a number between 1…4294967295.</para>
3636
3637 <para>When used in combination with <varname>VRF=</varname>, the VRF's routing table is
3638 used when this parameter is not specified.</para>
3639
3640 <xi:include href="version-info.xml" xpointer="v232"/>
3641 </listitem>
3642 </varlistentry>
3643
3644 <varlistentry>
3645 <term><varname>RouteMetric=</varname></term>
3646 <listitem>
3647 <para>Set the routing metric for the routes received in the Router Advertisement. Takes an unsigned
3648 integer in the range 0…4294967295, or three unsigned integer separated with <literal>:</literal>,
3649 in that case the first one is used when the router preference is high, the second is for medium
3650 preference, and the last is for low preference
3651 (<literal><replaceable>high</replaceable>:<replaceable>medium</replaceable>:<replaceable>low</replaceable></literal>).
3652 Defaults to <literal>512:1024:2048</literal>.</para>
3653
3654 <xi:include href="version-info.xml" xpointer="v249"/>
3655 </listitem>
3656 </varlistentry>
3657
3658 <varlistentry>
3659 <term><varname>QuickAck=</varname></term>
3660 <listitem>
3661 <para>Takes a boolean. When true, the TCP quick ACK mode is enabled for the routes configured by
3662 the received RAs. When unset, the kernel's default will be used.</para>
3663
3664 <xi:include href="version-info.xml" xpointer="v253"/>
3665 </listitem>
3666 </varlistentry>
3667
3668 <varlistentry>
3669 <term><varname>UseMTU=</varname></term>
3670 <listitem>
3671 <para>Takes a boolean. When true, the MTU received in the Router Advertisement will be
3672 used. Defaults to true.</para>
3673
3674 <xi:include href="version-info.xml" xpointer="v250"/>
3675 </listitem>
3676 </varlistentry>
3677
3678 <varlistentry>
3679 <term><varname>UseHopLimit=</varname></term>
3680 <listitem>
3681 <para>Takes a boolean. When true, the hop limit received in the Router Advertisement will be set to routes
3682 configured based on the advertisement. See also <varname>IPv6HopLimit=</varname>. Defaults to true.</para>
3683
3684 <xi:include href="version-info.xml" xpointer="v255"/>
3685 </listitem>
3686 </varlistentry>
3687
3688 <varlistentry>
3689 <term><varname>UseReachableTime=</varname></term>
3690 <listitem>
3691 <para>Takes a boolean. When true, the reachable time received in the Router Advertisement will be
3692 set on the interface receiving the advertisement. It is used as the base timespan of the validity
3693 of a neighbor entry. Defaults to true.</para>
3694
3695 <xi:include href="version-info.xml" xpointer="v256"/>
3696 </listitem>
3697 </varlistentry>
3698
3699 <varlistentry>
3700 <term><varname>UseRetransmissionTime=</varname></term>
3701 <listitem>
3702 <para>Takes a boolean. When true, the retransmission time received in the Router Advertisement will be set
3703 on the interface receiving the advertisement. It is used as the time between retransmissions of Neighbor
3704 Solicitation messages to a neighbor when resolving the address or when probing the reachability of a neighbor.
3705 Defaults to true.</para>
3706
3707 <xi:include href="version-info.xml" xpointer="v256"/>
3708 </listitem>
3709 </varlistentry>
3710
3711 <varlistentry>
3712 <term><varname>UseGateway=</varname></term>
3713 <listitem>
3714 <para>When true (the default), the router address will be configured as the default gateway.
3715 </para>
3716
3717 <xi:include href="version-info.xml" xpointer="v250"/>
3718 </listitem>
3719 </varlistentry>
3720
3721 <varlistentry>
3722 <term><varname>UseRoutePrefix=</varname></term>
3723 <listitem>
3724 <para>When true (the default), the routes corresponding to the route prefixes received in
3725 the Router Advertisement will be configured.</para>
3726
3727 <xi:include href="version-info.xml" xpointer="v250"/>
3728 </listitem>
3729 </varlistentry>
3730
3731 <varlistentry>
3732 <term><varname>UseCaptivePortal=</varname></term>
3733 <listitem>
3734 <para>When true (the default), the captive portal received in the Router Advertisement will be recorded
3735 and made available to client programs and displayed in the
3736 <citerefentry><refentrytitle>networkctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
3737 status output per-link.</para>
3738
3739 <xi:include href="version-info.xml" xpointer="v254"/>
3740 </listitem>
3741 </varlistentry>
3742
3743 <varlistentry>
3744 <term><varname>UsePREF64=</varname></term>
3745 <listitem>
3746 <para>When true, the IPv6 PREF64 (or NAT64) prefixes received in the Router Advertisement will be
3747 recorded and made available to client programs and displayed in the
3748 <citerefentry><refentrytitle>networkctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
3749 status output per-link. See <ulink url="https://tools.ietf.org/html/rfc8781">RFC 8781</ulink>.
3750 Defaults to false.</para>
3751
3752 <xi:include href="version-info.xml" xpointer="v255"/>
3753 </listitem>
3754 </varlistentry>
3755
3756 <varlistentry>
3757 <term><varname>UseAutonomousPrefix=</varname></term>
3758 <listitem>
3759 <para>When true (the default), the autonomous prefix received in the Router Advertisement will be used and take
3760 precedence over any statically configured ones.</para>
3761
3762 <xi:include href="version-info.xml" xpointer="v242"/>
3763 </listitem>
3764 </varlistentry>
3765
3766 <varlistentry>
3767 <term><varname>UseOnLinkPrefix=</varname></term>
3768 <listitem>
3769 <para>When true (the default), the onlink prefix received in the Router Advertisement will be
3770 used and takes precedence over any statically configured ones.</para>
3771
3772 <xi:include href="version-info.xml" xpointer="v242"/>
3773 </listitem>
3774 </varlistentry>
3775
3776 <varlistentry>
3777 <term><varname>RouterDenyList=</varname></term>
3778 <listitem>
3779 <para>A whitespace-separated list of IPv6 router addresses. Each address can optionally
3780 take a prefix length after <literal>/</literal>. Any information advertised by the listed
3781 router is ignored.</para>
3782
3783 <xi:include href="version-info.xml" xpointer="v248"/>
3784 </listitem>
3785 </varlistentry>
3786
3787 <varlistentry>
3788 <term><varname>RouterAllowList=</varname></term>
3789 <listitem>
3790 <para>A whitespace-separated list of IPv6 router addresses. Each address can optionally
3791 take a prefix length after <literal>/</literal>. Only information advertised by the listed
3792 router is accepted. Note that if <varname>RouterAllowList=</varname> is configured then
3793 <varname>RouterDenyList=</varname> is ignored.</para>
3794
3795 <xi:include href="version-info.xml" xpointer="v248"/>
3796 </listitem>
3797 </varlistentry>
3798
3799 <varlistentry>
3800 <term><varname>PrefixDenyList=</varname></term>
3801 <listitem>
3802 <para>A whitespace-separated list of IPv6 prefixes. Each prefix can optionally take its
3803 prefix length after <literal>/</literal>. IPv6 prefixes supplied via router advertisements
3804 in the list are ignored.</para>
3805
3806 <xi:include href="version-info.xml" xpointer="v248"/>
3807 </listitem>
3808 </varlistentry>
3809
3810 <varlistentry>
3811 <term><varname>PrefixAllowList=</varname></term>
3812 <listitem>
3813 <para>A whitespace-separated list of IPv6 prefixes. Each prefix can optionally take its
3814 prefix length after <literal>/</literal>. IPv6 prefixes supplied via router advertisements
3815 in the list are allowed. Note that if <varname>PrefixAllowList=</varname> is configured
3816 then <varname>PrefixDenyList=</varname> is ignored.</para>
3817
3818 <xi:include href="version-info.xml" xpointer="v248"/>
3819 </listitem>
3820 </varlistentry>
3821
3822 <varlistentry>
3823 <term><varname>RouteDenyList=</varname></term>
3824 <listitem>
3825 <para>A whitespace-separated list of IPv6 route prefixes. Each prefix can optionally take
3826 its prefix length after <literal>/</literal>. IPv6 route prefixes supplied via router
3827 advertisements in the list are ignored.</para>
3828
3829 <xi:include href="version-info.xml" xpointer="v248"/>
3830 </listitem>
3831 </varlistentry>
3832
3833 <varlistentry>
3834 <term><varname>RouteAllowList=</varname></term>
3835 <listitem>
3836 <para>A whitespace-separated list of IPv6 route prefixes. Each prefix can optionally take
3837 its prefix length after <literal>/</literal>. IPv6 route prefixes supplied via router
3838 advertisements in the list are allowed. Note that if <varname>RouteAllowList=</varname> is
3839 configured then <varname>RouteDenyList=</varname> is ignored.</para>
3840
3841 <xi:include href="version-info.xml" xpointer="v248"/>
3842 </listitem>
3843 </varlistentry>
3844
3845 <varlistentry>
3846 <term><varname>DHCPv6Client=</varname></term>
3847 <listitem>
3848 <para>Takes a boolean, or the special value <literal>always</literal>. When true, the
3849 DHCPv6 client will be started in <literal>solicit</literal> mode if the RA has the
3850 <literal>managed</literal> flag or <literal>information-request</literal> mode if the RA
3851 lacks the <literal>managed</literal> flag but has the
3852 <literal>other configuration</literal> flag. If set to <literal>always</literal>, the
3853 DHCPv6 client will be started in <literal>solicit</literal> mode when an RA is received,
3854 even if neither the <literal>managed</literal> nor the
3855 <literal>other configuration</literal> flag is set in the RA. This will be ignored when
3856 <varname>WithoutRA=</varname> in the [DHCPv6] section is enabled, or
3857 <varname>UplinkInterface=:self</varname> in the [DHCPPrefixDelegation] section is
3858 specified. Defaults to true.</para>
3859
3860 <xi:include href="version-info.xml" xpointer="v246"/>
3861 </listitem>
3862 </varlistentry>
3863
3864 <varlistentry>
3865 <term><varname>NetLabel=</varname></term>
3866 <listitem>
3867 <para>This applies the NetLabel for the addresses received with RA, like
3868 <varname>NetLabel=</varname> in [Address] section applies it to statically configured
3869 addresses. See <varname>NetLabel=</varname> in [Address] section for more details.</para>
3870
3871 <xi:include href="version-info.xml" xpointer="v252"/>
3872 </listitem>
3873 </varlistentry>
3874
3875 <varlistentry>
3876 <term><varname>NFTSet=</varname></term>
3877 <listitem>
3878 <para>This applies the NFT set for the network configuration received with RA, like
3879 <varname>NFTSet=</varname> in [Address] section applies it to static configuration. See
3880 <varname>NFTSet=</varname> in [Address] section for more details. For <literal>address</literal> or
3881 <literal>prefix</literal> source types, the type of the element used in the NFT filter must be
3882 <literal>ipv6_addr</literal>.</para>
3883
3884 <xi:include href="version-info.xml" xpointer="v255"/>
3885 </listitem>
3886 </varlistentry>
3887 </variablelist>
3888 </refsect1>
3889
3890 <refsect1>
3891 <title>[DHCPRelay] Section Options</title>
3892 <para>The [DHCPRelay] section contains per-interface settings for the DHCP relay agent. The settings in
3893 this section are only used when <varname>DHCPRelay=</varname> in the [Network] section is configured.
3894 </para>
3895
3896 <variablelist class='network-directives'>
3897
3898 <varlistentry>
3899 <term><varname>AgentAddress=</varname></term>
3900 <listitem>
3901 <para>Takes an IPv4 address. The specified address is used as the source IP address of packets
3902 forwarded to the upstream DHCP server. The address may also be used for the Server Identifier
3903 Override sub-option and the Link Selection sub-option in the Relay Agent Information option
3904 appended to DHCP messages forwarded to the upstream DHCP server. This setting applies to both
3905 upstream and downstream interfaces. Defaults to unset. If unset, a statically configured IPv4
3906 address in the .network file is selected automatically. When multiple static IPv4 addresses are
3907 configured, it is recommended to specify this setting explicitly.</para>
3908
3909 <xi:include href="version-info.xml" xpointer="v261"/>
3910 </listitem>
3911 </varlistentry>
3912
3913 <varlistentry>
3914 <term><varname>GatewayAddress=</varname></term>
3915 <listitem>
3916 <para>Takes an IPv4 address. The specified address is set to the <literal>giaddr</literal> field of
3917 the DHCP message header when the DHCP message is forwarded to the upstream DHCP server. This is
3918 used only when <varname>DHCPRelay=downstream</varname>, and ignored otherwise. Defaults to unset,
3919 and the same address specified with <varname>AgentAddress=</varname> will be used.</para>
3920
3921 <xi:include href="version-info.xml" xpointer="v261"/>
3922 </listitem>
3923 </varlistentry>
3924
3925 <varlistentry>
3926 <term><varname>CircuitId=</varname></term>
3927 <listitem>
3928 <para>Specifies the circuit ID of the downstream interface. This is set as the Circuit ID
3929 sub-option in the Relay Agent Information option in the forwarded DHCP message. Takes a data type
3930 and data separated with a colon
3931 (<literal><replaceable>type</replaceable>:<replaceable>value</replaceable></literal>). The type
3932 takes one of <literal>uint8</literal>, <literal>uint16</literal>, <literal>uint32</literal>,
3933 <literal>ipv4address</literal>, <literal>ipv6address</literal>, or <literal>string</literal>.
3934 Special characters in the data string may be escaped using
3935 <ulink url="https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style escapes</ulink>.
3936 This is used only when <varname>DHCPRelay=downstream</varname>, and ignored otherwise. If unset,
3937 the name of the interface will be used.</para>
3938
3939 <xi:include href="version-info.xml" xpointer="v261"/>
3940 </listitem>
3941 </varlistentry>
3942
3943 <varlistentry>
3944 <term><varname>VirtualSubnetSelection=</varname></term>
3945 <listitem>
3946 <para>Specifies a unique identifier used by the DHCP server to select the downstream subnet
3947 independently of giaddr. This value is used as the Virtual Subnet Selection sub-option in the Relay
3948 Agent Information option in the forwarded DHCP message. Takes a value in the same format as
3949 <varname>CircuitId=</varname>. This is used only when <varname>DHCPRelay=downstream</varname>, and
3950 ignored otherwise. Defaults to unset, and the sub-option is not set.</para>
3951
3952 <xi:include href="version-info.xml" xpointer="v261"/>
3953 </listitem>
3954 </varlistentry>
3955
3956 <varlistentry>
3957 <term><varname>ExtraOption=</varname></term>
3958 <listitem>
3959 <para>Specifies an extra sub-option in the Relay Agent Information option, which is appended to
3960 DHCP messages forwarded to the upstream DHCP server. Takes a sub-option code, data type, and data
3961 separated with a colon
3962 (<literal><replaceable>code</replaceable>:<replaceable>type</replaceable>:<replaceable>value</replaceable></literal>).
3963 The code is an integer in 1…254. See <varname>CircuitId=</varname> in the above for the acceptable
3964 type and data. This setting can be specified multiple times. When an empty string is specified,
3965 all previous assignments are cleared. This is used only when
3966 <varname>DHCPRelay=downstream</varname>, and ignored otherwise. Defaults to unset, and no extra
3967 sub-option will be appended.</para>
3968
3969 <xi:include href="version-info.xml" xpointer="v261"/>
3970 </listitem>
3971 </varlistentry>
3972
3973 <varlistentry>
3974 <term><varname>InterfacePriority=</varname></term>
3975 <listitem>
3976 <para>Specifies the priority of the upstream interface. Takes an integer value. When the host has
3977 multiple upstream interfaces, the upstream interface with the highest (largest) priority will be
3978 used for forwarding DHCP messages to the upstream DHCP server. When multiple interfaces have the
3979 same priority, which interface is used is unspecified. This is used only when
3980 <varname>DHCPRelay=upstream</varname>, and ignored otherwise. Defaults to zero.</para>
3981
3982 <xi:include href="version-info.xml" xpointer="v261"/>
3983 </listitem>
3984 </varlistentry>
3985 </variablelist>
3986 </refsect1>
3987
3988 <refsect1>
3989 <title>[DHCPServer] Section Options</title>
3990 <para>The [DHCPServer] section contains settings for the DHCP server, if enabled via the
3991 <varname>DHCPServer=</varname> option described above:</para>
3992
3993 <variablelist class='network-directives'>
3994
3995 <varlistentry>
3996 <term><varname>ServerAddress=</varname></term>
3997 <listitem>
3998 <para>Specifies the server address for the DHCP server. Takes an IPv4 address with prefix length
3999 separated with a slash, e.g. <literal>192.168.0.1/24</literal>. Defaults to unset, and one of
4000 static IPv4 addresses configured in [Network] or [Address] section will be automatically selected.
4001 This setting may be useful when the interface on which the DHCP server is running has multiple
4002 static IPv4 addresses.</para>
4003 <para>This implies <varname>Address=</varname> in [Network] or [Address] section with the same
4004 address and prefix length. That is,
4005 <programlisting>[Network]
4006 DHCPServer=yes
4007 Address=192.168.0.1/24
4008 Address=192.168.0.2/24
4009 [DHCPServer]
4010 ServerAddress=192.168.0.1/24</programlisting>
4011 or
4012 <programlisting>[Network]
4013 DHCPServer=yes
4014 [Address]
4015 Address=192.168.0.1/24
4016 [Address]
4017 Address=192.168.0.2/24
4018 [DHCPServer]
4019 ServerAddress=192.168.0.1/24</programlisting>
4020 are equivalent to the following:
4021 <programlisting>[Network]
4022 DHCPServer=yes
4023 Address=192.168.0.2/24
4024 [DHCPServer]
4025 ServerAddress=192.168.0.1/24</programlisting>
4026 </para>
4027 <para>Since version 255, like the <varname>Address=</varname> setting in [Network] or [Address]
4028 section, this also supports a null address, e.g. <literal>0.0.0.0/24</literal>, and an unused
4029 address will be automatically selected. For more details about the automatic address selection,
4030 see <varname>Address=</varname> setting in [Network] section in the above.</para>
4031
4032 <xi:include href="version-info.xml" xpointer="v249"/>
4033 </listitem>
4034 </varlistentry>
4035
4036 <varlistentry>
4037 <term><varname>PoolOffset=</varname></term>
4038 <term><varname>PoolSize=</varname></term>
4039
4040 <listitem><para>Configures the pool of addresses to hand out. The pool
4041 is a contiguous sequence of IP addresses in the subnet configured for
4042 the server address, which does not include the subnet nor the broadcast
4043 address. <varname>PoolOffset=</varname> takes the offset of the pool
4044 from the start of subnet, or zero to use the default value.
4045 <varname>PoolSize=</varname> takes the number of IP addresses in the
4046 pool or zero to use the default value. By default, the pool starts at
4047 the first address after the subnet address and takes up the rest of
4048 the subnet, excluding the broadcast address. If the pool includes
4049 the server address (the default), this is reserved and not handed
4050 out to clients.</para>
4051
4052 <xi:include href="version-info.xml" xpointer="v226"/></listitem>
4053 </varlistentry>
4054
4055 <varlistentry>
4056 <term><varname>DefaultLeaseTimeSec=</varname></term>
4057 <term><varname>MaxLeaseTimeSec=</varname></term>
4058
4059 <listitem><para>Control the default and maximum DHCP lease
4060 time to pass to clients. These settings take time values in seconds or
4061 another common time unit, depending on the suffix. The default
4062 lease time is used for clients that did not ask for a specific
4063 lease time. If a client asks for a lease time longer than the
4064 maximum lease time, it is automatically shortened to the
4065 specified time. The default lease time defaults to 1h, the
4066 maximum lease time to 12h. Shorter lease times are beneficial
4067 if the configuration data in DHCP leases changes frequently
4068 and clients shall learn the new settings with shorter
4069 latencies. Longer lease times reduce the generated DHCP
4070 network traffic.</para>
4071
4072 <xi:include href="version-info.xml" xpointer="v226"/></listitem>
4073 </varlistentry>
4074
4075 <varlistentry>
4076 <term><varname>UplinkInterface=</varname></term>
4077 <listitem><para>Specifies the name or the index of the uplink interface, or one of the special
4078 values <literal>:none</literal> and <literal>:auto</literal>. When emitting DNS, NTP, or SIP
4079 servers is enabled but no servers are specified, the servers configured in the uplink interface
4080 will be emitted. When <literal>:auto</literal>, the link which has a default gateway with the
4081 highest priority will be automatically selected. When <literal>:none</literal>, no uplink
4082 interface will be selected. Defaults to <literal>:auto</literal>.</para>
4083
4084 <xi:include href="version-info.xml" xpointer="v249"/></listitem>
4085 </varlistentry>
4086
4087 <varlistentry>
4088 <term><varname>EmitDNS=</varname></term>
4089 <term><varname>DNS=</varname></term>
4090
4091 <listitem><para><varname>EmitDNS=</varname> takes a boolean. Configures whether the DHCP leases
4092 handed out to clients shall contain DNS server information. Defaults to <literal>yes</literal>.
4093 The DNS servers to pass to clients may be configured with the <varname>DNS=</varname> option,
4094 which takes a list of IPv4 addresses, or special value <literal>_server_address</literal> which
4095 will be converted to the address used by the DHCP server.</para>
4096
4097 <para>If the <varname>EmitDNS=</varname> option is enabled but no servers configured, the
4098 servers are automatically propagated from an "uplink" interface that has appropriate servers
4099 set. The "uplink" interface is determined by the default route of the system with the highest
4100 priority. Note that this information is acquired at the time the lease is handed out, and does
4101 not take uplink interfaces into account that acquire DNS server information at a later point.
4102 If no suitable uplink interface is found the DNS server data from
4103 <filename>/etc/resolv.conf</filename> is used. Also, note that the leases are not refreshed if
4104 the uplink network configuration changes. To ensure clients regularly acquire the most current
4105 uplink DNS server information, it is thus advisable to shorten the DHCP lease time via
4106 <varname>MaxLeaseTimeSec=</varname> described above.</para>
4107
4108 <para>This setting can be specified multiple times. If an empty string is specified, then all
4109 DNS servers specified earlier are cleared.</para>
4110
4111 <xi:include href="version-info.xml" xpointer="v226"/></listitem>
4112 </varlistentry>
4113
4114 <varlistentry>
4115 <term><varname>EmitNTP=</varname></term>
4116 <term><varname>NTP=</varname></term>
4117 <term><varname>EmitSIP=</varname></term>
4118 <term><varname>SIP=</varname></term>
4119 <term><varname>EmitPOP3=</varname></term>
4120 <term><varname>POP3=</varname></term>
4121 <term><varname>EmitSMTP=</varname></term>
4122 <term><varname>SMTP=</varname></term>
4123 <term><varname>EmitLPR=</varname></term>
4124 <term><varname>LPR=</varname></term>
4125
4126 <listitem><para>Similar to the <varname>EmitDNS=</varname> and <varname>DNS=</varname> settings
4127 described above, these settings configure whether and what server information for the indicate
4128 protocol shall be emitted as part of the DHCP lease. The same syntax, propagation semantics and
4129 defaults apply as for <varname>EmitDNS=</varname> and <varname>DNS=</varname>.</para>
4130
4131 <xi:include href="version-info.xml" xpointer="v226"/></listitem>
4132 </varlistentry>
4133
4134 <varlistentry>
4135 <term><varname>EmitRouter=</varname></term>
4136 <term><varname>Router=</varname></term>
4137
4138 <listitem><para>The <varname>EmitRouter=</varname> setting takes a boolean value, and configures
4139 whether the DHCP lease should contain the router option. The <varname>Router=</varname> setting
4140 takes an IPv4 address, and configures the router address to be emitted. When the
4141 <varname>Router=</varname> setting is not specified, then the server address will be used for
4142 the router option. When the <varname>EmitRouter=</varname> setting is disabled, the
4143 <varname>Router=</varname> setting will be ignored. The <varname>EmitRouter=</varname> setting
4144 defaults to true, and the <varname>Router=</varname> setting defaults to unset.
4145 </para>
4146
4147 <xi:include href="version-info.xml" xpointer="v230"/></listitem>
4148 </varlistentry>
4149
4150 <varlistentry>
4151 <term><varname>EmitTimezone=</varname></term>
4152 <term><varname>Timezone=</varname></term>
4153
4154 <listitem><para>Takes a boolean. Configures whether the DHCP leases handed out
4155 to clients shall contain timezone information. Defaults to <literal>yes</literal>. The
4156 <varname>Timezone=</varname> setting takes a timezone string
4157 (such as <literal>Europe/Berlin</literal> or
4158 <literal>UTC</literal>) to pass to clients. If no explicit
4159 timezone is set, the system timezone of the local host is
4160 propagated, as determined by the
4161 <filename>/etc/localtime</filename> symlink.</para>
4162
4163 <xi:include href="version-info.xml" xpointer="v226"/></listitem>
4164 </varlistentry>
4165
4166 <varlistentry>
4167 <term><varname>EmitDomain=</varname></term>
4168
4169 <listitem><para>Takes a boolean. Configures whether the DHCP leases handed out
4170 to clients shall contain domain name information (DHCP option 15). Defaults to
4171 <literal>no</literal>.</para>
4172
4173 <xi:include href="version-info.xml" xpointer="v259"/></listitem>
4174 </varlistentry>
4175
4176 <varlistentry>
4177 <term><varname>Domain=</varname></term>
4178
4179 <listitem><para>Takes a domain name (such as <literal>example.com</literal>)
4180 to pass to DHCP clients. This configures the DNS default domain for DHCP clients.
4181 When set, DHCP clients will use this as their DNS search domain.</para>
4182
4183 <para>When <varname>EmitDomain=yes</varname> is set but <varname>Domain=</varname>
4184 is not configured, the domain name will be automatically derived from the system's
4185 fully qualified hostname. For example, if the system's hostname is
4186 <literal>host.example.com</literal>, the domain <literal>example.com</literal>
4187 will be sent to clients. If the system's hostname does not contain a domain part
4188 (e.g., hostname is just <literal>host</literal>), no domain name will be sent to
4189 DHCP clients. When empty or unset, defaults to no domain name.</para>
4190
4191 <xi:include href="version-info.xml" xpointer="v259"/></listitem>
4192 </varlistentry>
4193
4194 <varlistentry>
4195 <term><varname>BootServerAddress=</varname></term>
4196
4197 <listitem>
4198 <para>Takes an IPv4 address of the boot server used by e.g. PXE boot systems. When specified, this
4199 address is sent in the <option>siaddr</option> field of the DHCP message header. See <ulink
4200 url="https://www.rfc-editor.org/rfc/rfc2131.html">RFC 2131</ulink> for more details. Defaults to
4201 unset.</para>
4202
4203 <xi:include href="version-info.xml" xpointer="v251"/>
4204 </listitem>
4205 </varlistentry>
4206
4207 <varlistentry>
4208 <term><varname>BootServerName=</varname></term>
4209
4210 <listitem>
4211 <para>Takes a name of the boot server used by e.g. PXE boot systems. When specified, this name is
4212 sent in the DHCP option 66 ("TFTP server name"). See <ulink
4213 url="https://www.rfc-editor.org/rfc/rfc2132.html">RFC 2132</ulink> for more details. Defaults to
4214 unset.</para>
4215
4216 <para>Note that typically setting one of <varname>BootServerName=</varname> or
4217 <varname>BootServerAddress=</varname> is sufficient, but both can be set too, if desired.</para>
4218
4219 <xi:include href="version-info.xml" xpointer="v251"/>
4220 </listitem>
4221 </varlistentry>
4222
4223 <varlistentry>
4224 <term><varname>BootFilename=</varname></term>
4225
4226 <listitem>
4227 <para>Takes a path or URL to a file loaded by e.g. a PXE boot loader. When specified, this path is
4228 sent in the DHCP option 67 ("Bootfile name"). See <ulink
4229 url="https://www.rfc-editor.org/rfc/rfc2132.html">RFC 2132</ulink> for more details. Defaults to
4230 unset.</para>
4231
4232 <xi:include href="version-info.xml" xpointer="v251"/>
4233 </listitem>
4234 </varlistentry>
4235
4236 <varlistentry>
4237 <term><varname>IPv6OnlyPreferredSec=</varname></term>
4238
4239 <listitem>
4240 <para>Takes a timespan. Controls the
4241 <ulink url="https://tools.ietf.org/html/rfc8925">RFC 8925</ulink> IPv6-Only Preferred option.
4242 Specifies the DHCPv4 option to indicate that a host supports an IPv6-only mode and is willing to
4243 forgo obtaining an IPv4 address if the network provides IPv6 connectivity. Defaults to unset, and
4244 not send the option. The minimum allowed value is 300 seconds.</para>
4245
4246 <xi:include href="version-info.xml" xpointer="v255"/>
4247 </listitem>
4248 </varlistentry>
4249
4250 <varlistentry>
4251 <term><varname>SendOption=</varname></term>
4252 <listitem>
4253 <para>Send a raw option with value via DHCPv4 server. Takes a DHCP option number, data type
4254 and data (<literal><replaceable>option</replaceable>:<replaceable>type</replaceable>:<replaceable>value</replaceable></literal>).
4255 The option number is an integer in the range 1…254. The type takes one of <literal>uint8</literal>,
4256 <literal>uint16</literal>, <literal>uint32</literal>, <literal>ipv4address</literal>, <literal>ipv6address</literal>, or
4257 <literal>string</literal>. Special characters in the data string may be escaped using
4258 <ulink url="https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
4259 escapes</ulink>. This setting can be specified multiple times. If an empty string is specified,
4260 then all options specified earlier are cleared. Defaults to unset.</para>
4261
4262 <xi:include href="version-info.xml" xpointer="v244"/>
4263 </listitem>
4264 </varlistentry>
4265
4266 <varlistentry>
4267 <term><varname>SendVendorOption=</varname></term>
4268 <listitem>
4269 <para>Send a vendor option with value via DHCPv4 server. Takes a DHCP option number, data type
4270 and data (<literal><replaceable>option</replaceable>:<replaceable>type</replaceable>:<replaceable>value</replaceable></literal>).
4271 The option number is an integer in the range 1…254. The type takes one of <literal>uint8</literal>,
4272 <literal>uint16</literal>, <literal>uint32</literal>, <literal>ipv4address</literal>, or
4273 <literal>string</literal>. Special characters in the data string may be escaped using
4274 <ulink url="https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
4275 escapes</ulink>. This setting can be specified multiple times. If an empty string is specified,
4276 then all options specified earlier are cleared. Defaults to unset.</para>
4277
4278 <xi:include href="version-info.xml" xpointer="v246"/>
4279 </listitem>
4280 </varlistentry>
4281
4282 <varlistentry>
4283 <term><varname>RapidCommit=</varname></term>
4284 <listitem>
4285 <para>Takes a boolean. When true, the server supports
4286 <ulink url="https://datatracker.ietf.org/doc/html/rfc4039">RFC 4039</ulink>. When a client sends
4287 a DHCPDISCOVER message with the Rapid Commit option to the server, then the server will reply with
4288 a DHCPACK message to the client, instead of DHCPOFFER. Defaults to true.</para>
4289
4290 <xi:include href="version-info.xml" xpointer="v255"/>
4291 </listitem>
4292 </varlistentry>
4293
4294 <varlistentry>
4295 <term><varname>PersistLeases=</varname></term>
4296 <listitem>
4297 <para>Takes a boolean or special value <literal>runtime</literal>. When <literal>yes</literal>, the
4298 DHCP server will load and save leases in the persistent storage. When <literal>runtime</literal>,
4299 the DHCP server will load and save leases in the runtime storage, hence bound leases will be lost
4300 when the runtime storage is cleared by e.g. by calling
4301 <command>systemctl clean systemd-networkd.service</command> or the system is rebooted. When
4302 <literal>no</literal>, the DHCP server will neither load nor save leases in the persistent storage,
4303 hence bound leases will be lost when the interface is reconfigured e.g. by
4304 <command>networkctl reconfigure</command>, or
4305 <citerefentry><refentrytitle>systemd-networkd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
4306 is restarted. Using <literal>runtime</literal> and <literal>no</literal> may cause address conflict
4307 on the network after the leases are lost. So, please take an extra care when disable this setting.
4308 When unspecified, the value specified in the same setting in
4309 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
4310 which defaults to <literal>yes</literal>, will be used.</para>
4311
4312 <xi:include href="version-info.xml" xpointer="v256"/>
4313 </listitem>
4314 </varlistentry>
4315
4316 <varlistentry>
4317 <term><varname>LocalLeaseDomain=</varname></term>
4318 <listitem>
4319 <para>Takes a DNS domain name as argument. If specified,
4320 <citerefentry><refentrytitle>systemd-networkd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
4321 will integrate with
4322 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
4323 and ensure that the hostnames associated with each handed out DHCP lease may be resolved to the IP
4324 addresses of the lease. The hostnames are suffixed with the specified domain name.</para>
4325
4326 <para>Note that this purely about hostname resolution on the local system, i.e. from programs with
4327 access to the same <filename>systemd-resolved</filename> instances via D-Bus IPC, Varlink IPC, or
4328 the local DNS stub.</para>
4329 <xi:include href="version-info.xml" xpointer="v259"/>
4330 </listitem>
4331 </varlistentry>
4332
4333 </variablelist>
4334 </refsect1>
4335
4336 <refsect1>
4337 <title>[DHCPServerStaticLease] Section Options</title>
4338 <para>The <literal>[DHCPServerStaticLease]</literal> section configures a static DHCP lease to assign a
4339 fixed IPv4 address to a specific device based on its MAC address. This section can be specified multiple
4340 times.</para>
4341
4342 <variablelist class='network-directives'>
4343 <varlistentry>
4344 <term><varname>MACAddress=</varname></term>
4345
4346 <listitem><para>The hardware address of a device to match. This key is mandatory.</para>
4347
4348 <xi:include href="version-info.xml" xpointer="v249"/></listitem>
4349 </varlistentry>
4350
4351 <varlistentry>
4352 <term><varname>Address=</varname></term>
4353
4354 <listitem><para>The IPv4 address that should be assigned to the device that was matched with
4355 <varname>MACAddress=</varname>. This key is mandatory.</para>
4356
4357 <xi:include href="version-info.xml" xpointer="v249"/></listitem>
4358 </varlistentry>
4359
4360 <varlistentry>
4361 <term><varname>Hostname=</varname></term>
4362
4363 <listitem><para>The hostname to send to the client in DHCP replies. This can be either a simple
4364 hostname (e.g., <literal>mydevice</literal>) or a fully qualified domain name (e.g.,
4365 <literal>mydevice.example.com</literal>), following RFC 1123 naming conventions. Each label can be
4366 up to 63 characters, with a total maximum length of 253 characters for FQDNs. When this option is
4367 set, the DHCP server will include the hostname in DHCP replies (both OFFER and ACK) to the client
4368 with the matched MAC address.</para>
4369
4370 <para>The server automatically selects the appropriate DHCP option based on the hostname format:
4371 simple hostnames (single DNS label) are sent via option 12 (Host Name) per RFC 2132, while FQDNs
4372 with multiple labels are sent via option 81 (Client FQDN) per RFC 4702 using DNS wire format
4373 encoding. The configured hostname is sent unconditionally, any hostname requested by the client in
4374 its DHCP message is ignored.</para>
4375
4376 <xi:include href="version-info.xml" xpointer="v259"/></listitem>
4377 </varlistentry>
4378 </variablelist>
4379 </refsect1>
4380
4381 <refsect1>
4382 <title>[IPv6SendRA] Section Options</title>
4383 <para>The [IPv6SendRA] section contains settings for sending IPv6 Router Advertisements and whether
4384 to act as a router, if enabled via the <varname>IPv6SendRA=</varname> option described above. IPv6
4385 network prefixes or routes are defined with one or more [IPv6Prefix] or [IPv6RoutePrefix] sections.
4386 </para>
4387
4388 <variablelist class='network-directives'>
4389
4390 <varlistentry>
4391 <term><varname>Managed=</varname></term>
4392 <term><varname>OtherInformation=</varname></term>
4393
4394 <listitem><para>Takes a boolean. Controls whether a DHCPv6 server is used to acquire IPv6
4395 addresses on the network link when <varname>Managed=</varname>
4396 is set to <literal>true</literal> or if only additional network
4397 information can be obtained via DHCPv6 for the network link when
4398 <varname>OtherInformation=</varname> is set to
4399 <literal>true</literal>. Both settings default to
4400 <literal>false</literal>, which means that a DHCPv6 server is not being
4401 used.</para>
4402
4403 <xi:include href="version-info.xml" xpointer="v235"/></listitem>
4404 </varlistentry>
4405
4406 <varlistentry>
4407 <term><varname>RouterLifetimeSec=</varname></term>
4408
4409 <listitem><para>Takes a timespan. Configures the IPv6 router lifetime in seconds. The value must be 0
4410 seconds, or between 4 seconds and 9000 seconds. When set to 0, the host is not acting as a router.
4411 Defaults to 1800 seconds (30 minutes).</para>
4412
4413 <xi:include href="version-info.xml" xpointer="v235"/>
4414 </listitem>
4415 </varlistentry>
4416
4417 <varlistentry>
4418 <term><varname>ReachableTimeSec=</varname></term>
4419
4420 <listitem>
4421 <para>Configures the time, used in the Neighbor Unreachability Detection algorithm, for which
4422 clients can assume a neighbor is reachable after having received a reachability confirmation. Takes
4423 a time span in the range 0…4294967295 ms. When 0, clients will handle it as if the value was not
4424 specified. Defaults to 0.</para>
4425
4426 <xi:include href="version-info.xml" xpointer="v256"/>
4427 </listitem>
4428 </varlistentry>
4429
4430 <varlistentry>
4431 <term><varname>RetransmitSec=</varname></term>
4432
4433 <listitem>
4434 <para>Configures the time, used in the Neighbor Unreachability Detection algorithm, for which
4435 clients can use as retransmit time on address resolution and the Neighbor Unreachability Detection
4436 algorithm. Takes a time span in the range 0…4294967295 ms. When 0, clients will handle it as if
4437 the value wasn't specified. Defaults to 0.</para>
4438
4439 <xi:include href="version-info.xml" xpointer="v255"/>
4440 </listitem>
4441 </varlistentry>
4442
4443 <varlistentry>
4444 <term><varname>RouterPreference=</varname></term>
4445
4446 <listitem><para>Configures IPv6 router preference if
4447 <varname>RouterLifetimeSec=</varname> is non-zero. Valid values are
4448 <literal>high</literal>, <literal>medium</literal> and
4449 <literal>low</literal>, with <literal>normal</literal> and
4450 <literal>default</literal> added as synonyms for
4451 <literal>medium</literal> just to make configuration easier. See
4452 <ulink url="https://tools.ietf.org/html/rfc4191">RFC 4191</ulink>
4453 for details. Defaults to <literal>medium</literal>.</para>
4454
4455 <xi:include href="version-info.xml" xpointer="v235"/></listitem>
4456 </varlistentry>
4457
4458 <varlistentry>
4459 <term><varname>HopLimit=</varname></term>
4460 <listitem>
4461 <para>Configures hop limit. Takes an integer in the range 0…255. See also
4462 <varname>IPv6HopLimit=</varname>.</para>
4463
4464 <xi:include href="version-info.xml" xpointer="v255"/>
4465 </listitem>
4466 </varlistentry>
4467
4468 <varlistentry>
4469 <term><varname>UplinkInterface=</varname></term>
4470 <listitem><para>Specifies the name or the index of the uplink interface, or one of the special
4471 values <literal>:none</literal> and <literal>:auto</literal>. When emitting DNS servers or
4472 search domains is enabled but no servers are specified, the servers configured in the uplink
4473 interface will be emitted. When <literal>:auto</literal>, the value specified to the same
4474 setting in the [DHCPPrefixDelegation] section will be used if
4475 <varname>DHCPPrefixDelegation=</varname> is enabled, otherwise the link which has a default
4476 gateway with the highest priority will be automatically selected. When <literal>:none</literal>,
4477 no uplink interface will be selected. Defaults to <literal>:auto</literal>.</para>
4478
4479 <xi:include href="version-info.xml" xpointer="v250"/></listitem>
4480 </varlistentry>
4481
4482 <varlistentry>
4483 <term><varname>EmitDNS=</varname></term>
4484 <term><varname>DNS=</varname></term>
4485
4486 <listitem><para><varname>DNS=</varname> specifies a list of recursive DNS server IPv6 addresses
4487 that are distributed via Router Advertisement messages when <varname>EmitDNS=</varname> is true.
4488 <varname>DNS=</varname> also takes special value <literal>_link_local</literal>; in that case
4489 the IPv6 link-local address is distributed. If <varname>DNS=</varname> is empty, DNS servers are
4490 read from the [Network] section. If the [Network] section does not contain any DNS servers
4491 either, DNS servers from the uplink interface specified in <varname>UplinkInterface=</varname>
4492 will be used. When <varname>EmitDNS=</varname> is false, no DNS server information is sent in
4493 Router Advertisement messages. <varname>EmitDNS=</varname> defaults to true.</para>
4494
4495 <xi:include href="version-info.xml" xpointer="v235"/></listitem>
4496 </varlistentry>
4497
4498 <varlistentry>
4499 <term><varname>EmitDomains=</varname></term>
4500 <term><varname>Domains=</varname></term>
4501
4502 <listitem><para>A list of DNS search domains distributed via Router Advertisement messages when
4503 <varname>EmitDomains=</varname> is true. If <varname>Domains=</varname> is empty, DNS search
4504 domains are read from the [Network] section. If the [Network] section does not contain any DNS
4505 search domains either, DNS search domains from the uplink interface specified in
4506 <varname>UplinkInterface=</varname> will be used. When <varname>EmitDomains=</varname> is false,
4507 no DNS search domain information is sent in Router Advertisement messages.
4508 <varname>EmitDomains=</varname> defaults to true.</para>
4509
4510 <xi:include href="version-info.xml" xpointer="v235"/></listitem>
4511 </varlistentry>
4512
4513 <varlistentry>
4514 <term><varname>DNSLifetimeSec=</varname></term>
4515
4516 <listitem><para>Lifetime in seconds for the DNS server addresses listed in
4517 <varname>DNS=</varname> and search domains listed in <varname>Domains=</varname>. Defaults to
4518 3600 seconds (one hour).</para>
4519
4520 <xi:include href="version-info.xml" xpointer="v235"/></listitem>
4521 </varlistentry>
4522
4523 <varlistentry>
4524 <term><varname>HomeAgent=</varname></term>
4525
4526 <listitem><para>Takes a boolean. Specifies that IPv6 router advertisements indicate to hosts that
4527 the router acts as a Home Agent and includes a Home Agent option. Defaults to false. See
4528 <ulink url="https://tools.ietf.org/html/rfc6275">RFC 6275</ulink> for further details.</para>
4529
4530 <xi:include href="version-info.xml" xpointer="v255"/>
4531 </listitem>
4532 </varlistentry>
4533
4534 <varlistentry>
4535 <term><varname>HomeAgentLifetimeSec=</varname></term>
4536
4537 <listitem><para>Takes a timespan. Specifies the lifetime of the Home Agent. An integer, the default unit is seconds,
4538 in the range 1…65535. Defaults to the value set to <varname>RouterLifetimeSec=</varname>.</para>
4539
4540 <xi:include href="version-info.xml" xpointer="v255"/>
4541 </listitem>
4542 </varlistentry>
4543
4544 <varlistentry>
4545 <term><varname>HomeAgentPreference=</varname></term>
4546
4547 <listitem><para>Configures IPv6 Home Agent preference. Takes an integer in the range 0…65535.
4548 Defaults to 0.</para>
4549
4550 <xi:include href="version-info.xml" xpointer="v255"/>
4551 </listitem>
4552 </varlistentry>
4553
4554 </variablelist>
4555 </refsect1>
4556
4557 <refsect1>
4558 <title>[IPv6Prefix] Section Options</title>
4559 <para>One or more [IPv6Prefix] sections contain the IPv6 prefixes that are announced via Router
4560 Advertisements. See <ulink url="https://tools.ietf.org/html/rfc4861">RFC 4861</ulink> for further
4561 details.</para>
4562
4563 <variablelist class='network-directives'>
4564
4565 <varlistentry>
4566 <term><varname>AddressAutoconfiguration=</varname></term>
4567 <term><varname>OnLink=</varname></term>
4568
4569 <listitem><para>Takes a boolean to specify whether IPv6 addresses can be
4570 autoconfigured with this prefix and whether the prefix can be used for
4571 onlink determination. Both settings default to <literal>true</literal>
4572 in order to ease configuration.
4573 </para>
4574
4575 <xi:include href="version-info.xml" xpointer="v235"/></listitem>
4576 </varlistentry>
4577
4578 <varlistentry>
4579 <term><varname>Prefix=</varname></term>
4580
4581 <listitem><para>The IPv6 prefix that is to be distributed to hosts. Similarly to configuring static
4582 IPv6 addresses, the setting is configured as an IPv6 prefix and its prefix length, separated by a
4583 <literal>/</literal> character. Use multiple [IPv6Prefix] sections to configure multiple IPv6
4584 prefixes since prefix lifetimes, address autoconfiguration and onlink status may differ from one
4585 prefix to another.</para>
4586
4587 <xi:include href="version-info.xml" xpointer="v235"/></listitem>
4588 </varlistentry>
4589
4590 <varlistentry>
4591 <term><varname>PreferredLifetimeSec=</varname></term>
4592 <term><varname>ValidLifetimeSec=</varname></term>
4593
4594 <listitem><para>Preferred and valid lifetimes for the prefix measured in seconds.
4595 <varname>PreferredLifetimeSec=</varname> defaults to 1800 seconds (30 minutes) and
4596 <varname>ValidLifetimeSec=</varname> defaults to 3600 seconds (one hour).</para>
4597
4598 <xi:include href="version-info.xml" xpointer="v235"/></listitem>
4599 </varlistentry>
4600
4601 <varlistentry>
4602 <term><varname>Assign=</varname></term>
4603 <listitem><para>Takes a boolean. When true, adds an address from the prefix. Default to false.
4604 </para>
4605
4606 <xi:include href="version-info.xml" xpointer="v246"/></listitem>
4607 </varlistentry>
4608
4609 <varlistentry>
4610 <term><varname>Token=</varname></term>
4611 <listitem>
4612 <para>Specifies an optional address generation mode for assigning an address in each
4613 prefix. This accepts the same syntax as <varname>Token=</varname> in the [IPv6AcceptRA]
4614 section. If <varname>Assign=</varname> is set to false, then this setting will be ignored.
4615 Defaults to unset, which means the EUI-64 algorithm will be used.</para>
4616
4617 <xi:include href="version-info.xml" xpointer="v250"/>
4618 </listitem>
4619 </varlistentry>
4620
4621 <varlistentry>
4622 <term><varname>RouteMetric=</varname></term>
4623 <listitem>
4624 <para>The metric of the prefix route. Takes an unsigned integer in the range 0…4294967295.
4625 When unset or set to 0, the kernel's default value is used. This setting is ignored when
4626 <varname>Assign=</varname> is false.</para>
4627
4628 <xi:include href="version-info.xml" xpointer="v249"/>
4629 </listitem>
4630 </varlistentry>
4631 </variablelist>
4632 </refsect1>
4633
4634 <refsect1>
4635 <title>[IPv6RoutePrefix] Section Options</title>
4636 <para>One or more [IPv6RoutePrefix] sections contain the IPv6
4637 prefix routes that are announced via Router Advertisements. See
4638 <ulink url="https://tools.ietf.org/html/rfc4191">RFC 4191</ulink>
4639 for further details.</para>
4640
4641 <variablelist class='network-directives'>
4642
4643 <varlistentry>
4644 <term><varname>Route=</varname></term>
4645
4646 <listitem><para>The IPv6 route that is to be distributed to hosts. Similarly to configuring static
4647 IPv6 routes, the setting is configured as an IPv6 prefix routes and its prefix route length,
4648 separated by a <literal>/</literal> character. Use multiple [IPv6RoutePrefix] sections to configure
4649 multiple IPv6 prefix routes.</para>
4650
4651 <xi:include href="version-info.xml" xpointer="v244"/></listitem>
4652 </varlistentry>
4653
4654 <varlistentry>
4655 <term><varname>LifetimeSec=</varname></term>
4656
4657 <listitem><para>Lifetime for the route prefix measured in seconds.
4658 <varname>LifetimeSec=</varname> defaults to 3600 seconds (one hour).</para>
4659
4660 <xi:include href="version-info.xml" xpointer="v244"/></listitem>
4661 </varlistentry>
4662
4663 <varlistentry>
4664 <term><varname>Preference=</varname></term>
4665
4666 <listitem><para>Specifies the preference of the route option. Takes one of <literal>high</literal>,
4667 <literal>medium</literal>, or <literal>low</literal>. Defaults to <literal>medium</literal>.</para>
4668
4669 <xi:include href="version-info.xml" xpointer="v258"/></listitem>
4670 </varlistentry>
4671
4672 </variablelist>
4673 </refsect1>
4674
4675 <refsect1>
4676 <title>[IPv6PREF64Prefix] Section Options</title>
4677 <para>One or more [IPv6PREF64Prefix] sections contain the IPv6 PREF64 (or NAT64) prefixes that are announced via Router
4678 Advertisements. See <ulink url="https://tools.ietf.org/html/rfc8781">RFC 8781</ulink> for further
4679 details.</para>
4680
4681 <variablelist class='network-directives'>
4682
4683 <varlistentry>
4684 <term><varname>Prefix=</varname></term>
4685
4686 <listitem><para>The IPv6 PREF64 (or NAT64) prefix that is to be distributed to hosts. The setting holds
4687 an IPv6 prefix that should be set up for NAT64 translation (PLAT) to allow 464XLAT on the network segment.
4688 Use multiple [IPv6PREF64Prefix] sections to configure multiple IPv6 prefixes since prefix lifetime may differ
4689 from one prefix to another. The prefix is an address with a prefix length, separated by a slash
4690 <literal>/</literal> character. Valid NAT64 prefix length are 96, 64, 56, 48, 40, and 32 bits.</para>
4691
4692 <xi:include href="version-info.xml" xpointer="v255"/></listitem></varlistentry>
4693
4694 <varlistentry>
4695 <term><varname>LifetimeSec=</varname></term>
4696 <listitem><para>Lifetime for the prefix measured in seconds. Should be greater than or equal to <varname>RouterLifetimeSec=</varname>.
4697 <varname>LifetimeSec=</varname> defaults to 1800 seconds.</para>
4698
4699 <xi:include href="version-info.xml" xpointer="v255"/></listitem>
4700 </varlistentry>
4701 </variablelist>
4702 </refsect1>
4703
4704 <refsect1>
4705 <title>[Bridge] Section Options</title>
4706 <para>The [Bridge] section accepts the following keys:</para>
4707
4708 <variablelist class='network-directives'>
4709 <varlistentry>
4710 <term><varname>UnicastFlood=</varname></term>
4711 <listitem>
4712 <para>Takes a boolean. Controls whether the bridge should flood
4713 traffic for which an FDB entry is missing and the destination
4714 is unknown through this port. When unset, the kernel's default will be used.
4715 </para>
4716
4717 <xi:include href="version-info.xml" xpointer="v223"/>
4718 </listitem>
4719 </varlistentry>
4720 <varlistentry>
4721 <term><varname>MulticastFlood=</varname></term>
4722 <listitem>
4723 <para>Takes a boolean. Controls whether the bridge should flood
4724 traffic for which an MDB entry is missing and the destination
4725 is unknown through this port. When unset, the kernel's default will be used.
4726 </para>
4727
4728 <xi:include href="version-info.xml" xpointer="v242"/>
4729 </listitem>
4730 </varlistentry>
4731 <varlistentry>
4732 <term><varname>MulticastToUnicast=</varname></term>
4733 <listitem>
4734 <para>Takes a boolean. Multicast to unicast works on top of the multicast snooping feature of
4735 the bridge. Which means unicast copies are only delivered to hosts which are interested in it.
4736 When unset, the kernel's default will be used.
4737 </para>
4738
4739 <xi:include href="version-info.xml" xpointer="v240"/>
4740 </listitem>
4741 </varlistentry>
4742 <varlistentry>
4743 <term><varname>NeighborSuppression=</varname></term>
4744 <listitem>
4745 <para>Takes a boolean. Configures whether ARP and ND neighbor suppression is enabled for
4746 this port. When unset, the kernel's default will be used.
4747 </para>
4748
4749 <xi:include href="version-info.xml" xpointer="v242"/>
4750 </listitem>
4751 </varlistentry>
4752 <varlistentry>
4753 <term><varname>Learning=</varname></term>
4754 <listitem>
4755 <para>Takes a boolean. Configures whether MAC address learning is enabled for
4756 this port. When unset, the kernel's default will be used.
4757 </para>
4758
4759 <xi:include href="version-info.xml" xpointer="v242"/>
4760 </listitem>
4761 </varlistentry>
4762 <varlistentry>
4763 <term><varname>HairPin=</varname></term>
4764 <listitem>
4765 <para>Takes a boolean. Configures whether traffic may be sent back out of the port on which it
4766 was received. When this flag is false, then the bridge will not forward traffic back out of the
4767 receiving port. When unset, the kernel's default will be used.</para>
4768
4769 <xi:include href="version-info.xml" xpointer="v223"/>
4770 </listitem>
4771 </varlistentry>
4772 <varlistentry>
4773 <term><varname>Isolated=</varname></term>
4774 <listitem>
4775 <para>Takes a boolean. Configures whether this port is isolated or not. Within a bridge,
4776 isolated ports can only communicate with non-isolated ports. When set to true, this port can only
4777 communicate with other ports whose Isolated setting is false. When set to false, this port
4778 can communicate with any other ports. When unset, the kernel's default will be used.</para>
4779
4780 <xi:include href="version-info.xml" xpointer="v251"/>
4781 </listitem>
4782 </varlistentry>
4783 <varlistentry>
4784 <term><varname>UseBPDU=</varname></term>
4785 <listitem>
4786 <para>Takes a boolean. Configures whether STP Bridge Protocol Data Units will be
4787 processed by the bridge port. When unset, the kernel's default will be used.</para>
4788
4789 <xi:include href="version-info.xml" xpointer="v223"/>
4790 </listitem>
4791 </varlistentry>
4792 <varlistentry>
4793 <term><varname>FastLeave=</varname></term>
4794 <listitem>
4795 <para>Takes a boolean. This flag allows the bridge to immediately stop multicast
4796 traffic on a port that receives an IGMP Leave message. It is only used with
4797 IGMP snooping if enabled on the bridge. When unset, the kernel's default will be used.</para>
4798
4799 <xi:include href="version-info.xml" xpointer="v223"/>
4800 </listitem>
4801 </varlistentry>
4802 <varlistentry>
4803 <term><varname>AllowPortToBeRoot=</varname></term>
4804 <listitem>
4805 <para>Takes a boolean. Configures whether a given port is allowed to
4806 become a root port. Only used when STP is enabled on the bridge.
4807 When unset, the kernel's default will be used.</para>
4808
4809 <xi:include href="version-info.xml" xpointer="v223"/>
4810 </listitem>
4811 </varlistentry>
4812 <varlistentry>
4813 <term><varname>ProxyARP=</varname></term>
4814 <listitem>
4815 <para>Takes a boolean. Configures whether proxy ARP to be enabled on this port.
4816 When unset, the kernel's default will be used.</para>
4817
4818 <xi:include href="version-info.xml" xpointer="v243"/>
4819 </listitem>
4820 </varlistentry>
4821 <varlistentry>
4822 <term><varname>ProxyARPWiFi=</varname></term>
4823 <listitem>
4824 <para>Takes a boolean. Configures whether proxy ARP to be enabled on this port
4825 which meets extended requirements by IEEE 802.11 and Hotspot 2.0 specifications.
4826 When unset, the kernel's default will be used.</para>
4827
4828 <xi:include href="version-info.xml" xpointer="v243"/>
4829 </listitem>
4830 </varlistentry>
4831 <varlistentry>
4832 <term><varname>MulticastRouter=</varname></term>
4833 <listitem>
4834 <para>Configures this port for having multicast routers attached. A port with a multicast
4835 router will receive all multicast traffic. Takes one of <literal>no</literal>
4836 to disable multicast routers on this port, <literal>query</literal> to let the system detect
4837 the presence of routers, <literal>permanent</literal> to permanently enable multicast traffic
4838 forwarding on this port, or <literal>temporary</literal> to enable multicast routers temporarily
4839 on this port, not depending on incoming queries. When unset, the kernel's default will be used.</para>
4840
4841 <xi:include href="version-info.xml" xpointer="v243"/>
4842 </listitem>
4843 </varlistentry>
4844 <varlistentry>
4845 <term><varname>Cost=</varname></term>
4846 <listitem>
4847 <para>Sets the "cost" of sending packets of this interface.
4848 Each port in a bridge may have a different speed and the cost
4849 is used to decide which link to use. Faster interfaces
4850 should have lower costs. It is an integer value between 1 and
4851 65535.</para>
4852
4853 <xi:include href="version-info.xml" xpointer="v218"/>
4854 </listitem>
4855 </varlistentry>
4856 <varlistentry>
4857 <term><varname>Priority=</varname></term>
4858 <listitem>
4859 <para>Sets the "priority" of sending packets on this interface. Each port in a bridge may have a
4860 different priority which is used to decide which link to use. Lower value means higher priority.
4861 It is an integer value between 0 to 63. <command>systemd-networkd</command> does not set any
4862 default, meaning the kernel default value of 32 is used.</para>
4863
4864 <xi:include href="version-info.xml" xpointer="v234"/>
4865 </listitem>
4866 </varlistentry>
4867 <varlistentry>
4868 <term><varname>Locked=</varname></term>
4869 <listitem>
4870 <para>Takes a boolean. Configures whether the port is "locked" and does not allow traffic forwarded
4871 until fully authenticated, e.g. via 802.1x. When unset, the kernel's default will be used.</para>
4872
4873 <xi:include href="version-info.xml" xpointer="v258"/>
4874 </listitem>
4875 <term><varname>MACAuthenticationBypass=</varname></term>
4876 <listitem>
4877 <para>Takes a boolean. Configures whether a locked port has "MAC Authentication Bypass" enabled and
4878 creates newly learned fdb entries in a "locked" state. User space can authenticate these entries by
4879 clearing the locked flag. Requires Learning to be enabled. When unset, the kernel's default will be
4880 used.</para>
4881
4882 <xi:include href="version-info.xml" xpointer="v258"/>
4883 </listitem>
4884 </varlistentry>
4885 <varlistentry>
4886 <term><varname>VLANTunnel=</varname></term>
4887 <listitem>
4888 <para>Takes a boolean. Configures whether vlan tunnel mode is to be enabled on this port.
4889 When unset, the kernel's default will be used.</para>
4890
4891 <xi:include href="version-info.xml" xpointer="v258"/>
4892 </listitem>
4893 </varlistentry>
4894 </variablelist>
4895 </refsect1>
4896
4897 <refsect1>
4898 <title>[BridgeFDB] Section Options</title>
4899
4900 <para>The [BridgeFDB] section manages the forwarding database table of a port and accepts the following
4901 keys. Specify several [BridgeFDB] sections to configure several static MAC table entries.</para>
4902
4903 <variablelist class='network-directives'>
4904 <varlistentry>
4905 <term><varname>MACAddress=</varname></term>
4906 <listitem>
4907 <para>As in the [Network] section. This key is mandatory.</para>
4908
4909 <xi:include href="version-info.xml" xpointer="v219"/>
4910 </listitem>
4911 </varlistentry>
4912 <varlistentry>
4913 <term><varname>Destination=</varname></term>
4914 <listitem>
4915 <para>Takes an IP address of the destination VXLAN tunnel endpoint.</para>
4916
4917 <xi:include href="version-info.xml" xpointer="v243"/>
4918 </listitem>
4919 </varlistentry>
4920 <varlistentry>
4921 <term><varname>VLANId=</varname></term>
4922 <listitem>
4923 <para>The VLAN ID for the new static MAC table entry. If
4924 omitted, no VLAN ID information is appended to the new static MAC
4925 table entry.</para>
4926
4927 <xi:include href="version-info.xml" xpointer="v219"/>
4928 </listitem>
4929 </varlistentry>
4930 <varlistentry>
4931 <term><varname>VNI=</varname></term>
4932 <listitem>
4933 <para>The VXLAN Network Identifier (or VXLAN Segment ID) to use to connect to
4934 the remote VXLAN tunnel endpoint. Takes a number in the range 1…16777215.
4935 Defaults to unset.</para>
4936
4937 <xi:include href="version-info.xml" xpointer="v243"/>
4938 </listitem>
4939 </varlistentry>
4940 <varlistentry>
4941 <term><varname>AssociatedWith=</varname></term>
4942 <listitem>
4943 <para>Specifies where the address is associated with. Takes one of <literal>use</literal>,
4944 <literal>self</literal>, <literal>master</literal> or <literal>router</literal>.
4945 <literal>use</literal> means the address is in use. User space can use this option to
4946 indicate to the kernel that the fdb entry is in use. <literal>self</literal> means
4947 the address is associated with the port drivers fdb. Usually hardware. <literal>master</literal>
4948 means the address is associated with master devices fdb. <literal>router</literal> means
4949 the destination address is associated with a router. Note that it is valid if the referenced
4950 device is a VXLAN type device and has route shortcircuit enabled. Defaults to <literal>self</literal>.</para>
4951
4952 <xi:include href="version-info.xml" xpointer="v243"/>
4953 </listitem>
4954 </varlistentry>
4955 <varlistentry>
4956 <term><varname>OutgoingInterface=</varname></term>
4957 <listitem>
4958 <para>Specifies the name or index of the outgoing interface for the VXLAN device driver to
4959 reach the remote VXLAN tunnel endpoint. Defaults to unset.</para>
4960
4961 <xi:include href="version-info.xml" xpointer="v249"/>
4962 </listitem>
4963 </varlistentry>
4964 </variablelist>
4965 </refsect1>
4966
4967 <refsect1>
4968 <title>[BridgeMDB] Section Options</title>
4969 <para>The [BridgeMDB] section manages the multicast membership entries forwarding database table of a port and accepts the following
4970 keys. Specify several [BridgeMDB] sections to configure several permanent multicast membership entries.</para>
4971
4972 <variablelist class='network-directives'>
4973 <varlistentry>
4974 <term><varname>MulticastGroupAddress=</varname></term>
4975 <listitem>
4976 <para>Specifies the IPv4, IPv6, or L2 MAC multicast group address to add. This setting is mandatory.</para>
4977
4978 <xi:include href="version-info.xml" xpointer="v247"/>
4979 </listitem>
4980 </varlistentry>
4981 <varlistentry>
4982 <term><varname>VLANId=</varname></term>
4983 <listitem>
4984 <para>The VLAN ID for the new entry. Valid ranges are 0 (no VLAN) to 4094. Optional, defaults to 0.</para>
4985
4986 <xi:include href="version-info.xml" xpointer="v247"/>
4987 </listitem>
4988 </varlistentry>
4989 </variablelist>
4990 </refsect1>
4991
4992 <refsect1>
4993 <title>[LLDP] Section Options</title>
4994 <para>The [LLDP] section manages the Link Layer Discovery Protocol (LLDP) and accepts the following
4995 keys:</para>
4996
4997 <variablelist class='network-directives'>
4998 <varlistentry>
4999 <term><varname>MUDURL=</varname></term>
5000 <listitem>
5001 <para>When configured, the specified Manufacturer Usage Descriptions (MUD) URL will be sent in
5002 LLDP packets. The syntax and semantics are the same as for <varname>MUDURL=</varname> in the
5003 [DHCPv4] section described above.</para>
5004
5005 <para>The MUD URLs received via LLDP packets are saved and can be read using the
5006 <function>sd_lldp_neighbor_get_mud_url()</function> function.</para>
5007
5008 <xi:include href="version-info.xml" xpointer="v246"/>
5009 </listitem>
5010 </varlistentry>
5011 </variablelist>
5012 </refsect1>
5013
5014 <refsect1>
5015 <title>[CAN] Section Options</title>
5016 <para>The [CAN] section manages the Controller Area Network (CAN bus) and accepts the
5017 following keys:</para>
5018 <variablelist class='network-directives'>
5019 <varlistentry>
5020 <term><varname>BitRate=</varname></term>
5021 <listitem>
5022 <para>The bitrate of CAN device in bits per second. The usual SI prefixes (K, M) with the base of 1000 can
5023 be used here. Takes a number in the range 1…4294967295.</para>
5024
5025 <xi:include href="version-info.xml" xpointer="v239"/>
5026 </listitem>
5027 </varlistentry>
5028 <varlistentry>
5029 <term><varname>SamplePoint=</varname></term>
5030 <listitem>
5031 <para>Optional sample point in percent with one decimal (e.g. <literal>75%</literal>,
5032 <literal>87.5%</literal>) or permille (e.g. <literal>875‰</literal>). This will be ignored when
5033 <varname>BitRate=</varname> is unspecified.</para>
5034
5035 <xi:include href="version-info.xml" xpointer="v239"/>
5036 </listitem>
5037 </varlistentry>
5038 <varlistentry>
5039 <term><varname>TimeQuantaNSec=</varname></term>
5040 <term><varname>PropagationSegment=</varname></term>
5041 <term><varname>PhaseBufferSegment1=</varname></term>
5042 <term><varname>PhaseBufferSegment2=</varname></term>
5043 <term><varname>SyncJumpWidth=</varname></term>
5044 <listitem>
5045 <para>Specifies the time quanta, propagation segment, phase buffer segment 1 and 2, and the
5046 synchronization jump width, which allow one to define the CAN bit-timing in a hardware
5047 independent format as proposed by the Bosch CAN 2.0 Specification.
5048 <varname>TimeQuantaNSec=</varname> takes a timespan in nanoseconds.
5049 <varname>PropagationSegment=</varname>, <varname>PhaseBufferSegment1=</varname>,
5050 <varname>PhaseBufferSegment2=</varname>, and <varname>SyncJumpWidth=</varname> take number
5051 of time quantum specified in <varname>TimeQuantaNSec=</varname> and must be an unsigned
5052 integer in the range 0…4294967295. These settings except for
5053 <varname>SyncJumpWidth=</varname> will be ignored when <varname>BitRate=</varname> is
5054 specified.</para>
5055
5056 <xi:include href="version-info.xml" xpointer="v250"/>
5057 </listitem>
5058 </varlistentry>
5059 <varlistentry>
5060 <term><varname>DataBitRate=</varname></term>
5061 <term><varname>DataSamplePoint=</varname></term>
5062 <listitem>
5063 <para>The bitrate and sample point for the data phase, if CAN-FD is used. These settings are
5064 analogous to the <varname>BitRate=</varname> and <varname>SamplePoint=</varname> keys.</para>
5065
5066 <xi:include href="version-info.xml" xpointer="v246"/>
5067 </listitem>
5068 </varlistentry>
5069 <varlistentry>
5070 <term><varname>DataTimeQuantaNSec=</varname></term>
5071 <term><varname>DataPropagationSegment=</varname></term>
5072 <term><varname>DataPhaseBufferSegment1=</varname></term>
5073 <term><varname>DataPhaseBufferSegment2=</varname></term>
5074 <term><varname>DataSyncJumpWidth=</varname></term>
5075 <listitem>
5076 <para>Specifies the time quanta, propagation segment, phase buffer segment 1 and 2, and the
5077 synchronization jump width for the data phase, if CAN-FD is used. These settings are
5078 analogous to the <varname>TimeQuantaNSec=</varname> or related settings.</para>
5079
5080 <xi:include href="version-info.xml" xpointer="v250"/>
5081 </listitem>
5082 </varlistentry>
5083 <varlistentry>
5084 <term><varname>FDMode=</varname></term>
5085 <listitem>
5086 <para>Takes a boolean. When <literal>yes</literal>, CAN-FD mode is enabled for the interface.
5087 Note, that a bitrate and optional sample point should also be set for the CAN-FD data phase using
5088 the <varname>DataBitRate=</varname> and <varname>DataSamplePoint=</varname> keys, or
5089 <varname>DataTimeQuanta=</varname> and related settings.</para>
5090
5091 <xi:include href="version-info.xml" xpointer="v246"/>
5092 </listitem>
5093 </varlistentry>
5094 <varlistentry>
5095 <term><varname>FDNonISO=</varname></term>
5096 <listitem>
5097 <para>Takes a boolean. When <literal>yes</literal>, non-ISO CAN-FD mode is enabled for the
5098 interface. When unset, the kernel's default will be used.</para>
5099
5100 <xi:include href="version-info.xml" xpointer="v246"/>
5101 </listitem>
5102 </varlistentry>
5103 <varlistentry>
5104 <term><varname>RestartSec=</varname></term>
5105 <listitem>
5106 <para>Automatic restart delay time. If set to a non-zero value, a restart of the CAN controller will be
5107 triggered automatically in case of a bus-off condition after the specified delay time. Subsecond delays can
5108 be specified using decimals (e.g. <literal>0.1s</literal>) or a <literal>ms</literal> or
5109 <literal>us</literal> postfix. Using <literal>infinity</literal> or <literal>0</literal> will turn the
5110 automatic restart off. By default, automatic restart is disabled.</para>
5111
5112 <xi:include href="version-info.xml" xpointer="v239"/>
5113 </listitem>
5114 </varlistentry>
5115 <varlistentry>
5116 <term><varname>Termination=</varname></term>
5117 <listitem>
5118 <para>Takes a boolean or a termination resistor value in ohm in the range 0…65535. When
5119 <literal>yes</literal>, the termination resistor is set to 120 ohm. When
5120 <literal>no</literal> or <literal>0</literal> is set, the termination resistor is disabled.
5121 When unset, the kernel's default will be used.</para>
5122
5123 <xi:include href="version-info.xml" xpointer="v246"/>
5124 </listitem>
5125 </varlistentry>
5126 <varlistentry>
5127 <term><varname>TripleSampling=</varname></term>
5128 <listitem>
5129 <para>Takes a boolean. When <literal>yes</literal>, three samples (instead of one) are used to determine
5130 the value of a received bit by majority rule. When unset, the kernel's default will be used.</para>
5131
5132 <xi:include href="version-info.xml" xpointer="v242"/>
5133 </listitem>
5134 </varlistentry>
5135 <varlistentry>
5136 <term><varname>BusErrorReporting=</varname></term>
5137 <listitem>
5138 <para>Takes a boolean. When <literal>yes</literal>, reporting of CAN bus errors is activated
5139 (those include single bit, frame format, and bit stuffing errors, unable to send dominant bit,
5140 unable to send recessive bit, bus overload, active error announcement, error occurred on
5141 transmission). When unset, the kernel's default will be used. Note: in case of a CAN bus with a
5142 single CAN device, sending a CAN frame may result in a huge number of CAN bus errors.</para>
5143
5144 <xi:include href="version-info.xml" xpointer="v248"/>
5145 </listitem>
5146 </varlistentry>
5147 <varlistentry>
5148 <term><varname>ListenOnly=</varname></term>
5149 <listitem>
5150 <para>Takes a boolean. When <literal>yes</literal>, listen-only mode is enabled. When the
5151 interface is in listen-only mode, the interface neither transmit CAN frames nor send ACK
5152 bit. Listen-only mode is important to debug CAN networks without interfering with the
5153 communication or acknowledge the CAN frame. When unset, the kernel's default will be used.
5154 </para>
5155
5156 <xi:include href="version-info.xml" xpointer="v246"/>
5157 </listitem>
5158 </varlistentry>
5159 <varlistentry>
5160 <term><varname>Loopback=</varname></term>
5161 <listitem>
5162 <para>Takes a boolean. When <literal>yes</literal>, loopback mode is enabled. When the
5163 loopback mode is enabled, the interface treats messages transmitted by itself as received
5164 messages. The loopback mode is important to debug CAN networks. When unset, the kernel's
5165 default will be used.</para>
5166
5167 <xi:include href="version-info.xml" xpointer="v250"/>
5168 </listitem>
5169 </varlistentry>
5170 <varlistentry>
5171 <term><varname>OneShot=</varname></term>
5172 <listitem>
5173 <para>Takes a boolean. When <literal>yes</literal>, one-shot mode is enabled. When unset,
5174 the kernel's default will be used.</para>
5175
5176 <xi:include href="version-info.xml" xpointer="v250"/>
5177 </listitem>
5178 </varlistentry>
5179 <varlistentry>
5180 <term><varname>PresumeACK=</varname></term>
5181 <listitem>
5182 <para>Takes a boolean. When <literal>yes</literal>, the interface will ignore missing CAN
5183 ACKs. When unset, the kernel's default will be used.</para>
5184
5185 <xi:include href="version-info.xml" xpointer="v250"/>
5186 </listitem>
5187 </varlistentry>
5188 <varlistentry>
5189 <term><varname>ClassicDataLengthCode=</varname></term>
5190 <listitem>
5191 <para>Takes a boolean. When <literal>yes</literal>, the interface will handle the 4bit data
5192 length code (DLC). When unset, the kernel's default will be used.</para>
5193
5194 <xi:include href="version-info.xml" xpointer="v250"/>
5195 </listitem>
5196 </varlistentry>
5197 </variablelist>
5198 </refsect1>
5199
5200 <refsect1>
5201 <title>[IPoIB] Section Options</title>
5202 <para>The [IPoIB] section manages the IP over Infiniband and accepts the following keys:</para>
5203
5204 <variablelist class='network-directives'>
5205 <xi:include href="systemd.netdev.xml" xpointer="ipoib_mode" />
5206 <xi:include href="systemd.netdev.xml" xpointer="ipoib_umcast" />
5207 </variablelist>
5208 </refsect1>
5209
5210 <refsect1>
5211 <title>[QDisc] Section Options</title>
5212 <para>The [QDisc] section manages the traffic control queueing discipline (qdisc).</para>
5213
5214 <variablelist class='network-directives'>
5215 <varlistentry>
5216 <term><varname>Parent=</varname></term>
5217 <listitem>
5218 <para>Specifies the parent Queueing Discipline (qdisc). Takes one of <literal>clsact</literal>
5219 or <literal>ingress</literal>. This is mandatory.</para>
5220
5221 <xi:include href="version-info.xml" xpointer="v244"/>
5222 </listitem>
5223 </varlistentry>
5224
5225 <xi:include href="tc.xml" xpointer="qdisc-handle" />
5226 </variablelist>
5227 </refsect1>
5228
5229 <refsect1>
5230 <title>[NetworkEmulator] Section Options</title>
5231 <para>The [NetworkEmulator] section manages the queueing discipline (qdisc) of the network emulator. It
5232 can be used to configure the kernel packet scheduler and simulate packet delay and loss for UDP or TCP
5233 applications, or limit the bandwidth usage of a particular service to simulate internet connections.
5234 </para>
5235
5236 <variablelist class='network-directives'>
5237 <xi:include href="tc.xml" xpointer="qdisc-parent" />
5238 <xi:include href="tc.xml" xpointer="qdisc-handle" />
5239
5240 <varlistentry>
5241 <term><varname>DelaySec=</varname></term>
5242 <listitem>
5243 <para>Specifies the fixed amount of delay to be added to all packets going out of the
5244 interface. Defaults to unset.</para>
5245
5246 <xi:include href="version-info.xml" xpointer="v245"/>
5247 </listitem>
5248 </varlistentry>
5249
5250 <varlistentry>
5251 <term><varname>DelayJitterSec=</varname></term>
5252 <listitem>
5253 <para>Specifies the chosen delay to be added to the packets outgoing to the network
5254 interface. Defaults to unset.</para>
5255
5256 <xi:include href="version-info.xml" xpointer="v245"/>
5257 </listitem>
5258 </varlistentry>
5259
5260 <varlistentry>
5261 <term><varname>PacketLimit=</varname></term>
5262 <listitem>
5263 <para>Specifies the maximum number of packets the qdisc may hold queued at a time.
5264 An unsigned integer in the range 0…4294967294. Defaults to 1000.</para>
5265
5266 <xi:include href="version-info.xml" xpointer="v245"/>
5267 </listitem>
5268 </varlistentry>
5269
5270 <varlistentry>
5271 <term><varname>LossRate=</varname></term>
5272 <listitem>
5273 <para>Specifies an independent loss probability to be added to the packets outgoing from the
5274 network interface. Takes a percentage value, suffixed with "%". Defaults to unset.</para>
5275
5276 <xi:include href="version-info.xml" xpointer="v245"/>
5277 </listitem>
5278 </varlistentry>
5279
5280 <varlistentry>
5281 <term><varname>DuplicateRate=</varname></term>
5282 <listitem>
5283 <para>Specifies that the chosen percent of packets is duplicated before queuing them.
5284 Takes a percentage value, suffixed with "%". Defaults to unset.</para>
5285
5286 <xi:include href="version-info.xml" xpointer="v245"/>
5287 </listitem>
5288 </varlistentry>
5289 </variablelist>
5290 </refsect1>
5291
5292 <refsect1>
5293 <title>[TokenBucketFilter] Section Options</title>
5294 <para>The [TokenBucketFilter] section manages the queueing discipline (qdisc) of token bucket filter
5295 (tbf).</para>
5296
5297 <variablelist class='network-directives'>
5298 <xi:include href="tc.xml" xpointer="qdisc-parent" />
5299 <xi:include href="tc.xml" xpointer="qdisc-handle" />
5300
5301 <varlistentry>
5302 <term><varname>LatencySec=</varname></term>
5303 <listitem>
5304 <para>Specifies the latency parameter, which specifies the maximum amount of time a
5305 packet can sit in the Token Bucket Filter (TBF). Defaults to unset.</para>
5306
5307 <xi:include href="version-info.xml" xpointer="v245"/>
5308 </listitem>
5309 </varlistentry>
5310
5311 <varlistentry>
5312 <term><varname>LimitBytes=</varname></term>
5313 <listitem>
5314 <para>Takes the number of bytes that can be queued waiting for tokens to become available.
5315 When the size is suffixed with K, M, or G, it is parsed as Kilobytes, Megabytes, or Gigabytes,
5316 respectively, to the base of 1024. Defaults to unset.</para>
5317
5318 <xi:include href="version-info.xml" xpointer="v246"/>
5319 </listitem>
5320 </varlistentry>
5321
5322 <varlistentry>
5323 <term><varname>BurstBytes=</varname></term>
5324 <listitem>
5325 <para>Specifies the size of the bucket. This is the maximum amount of bytes that tokens
5326 can be available for instantaneous transfer. When the size is suffixed with K, M, or G, it is
5327 parsed as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of 1024. Defaults to
5328 unset.</para>
5329
5330 <xi:include href="version-info.xml" xpointer="v246"/>
5331 </listitem>
5332 </varlistentry>
5333
5334 <varlistentry>
5335 <term><varname>Rate=</varname></term>
5336 <listitem>
5337 <para>Specifies the device specific bandwidth. When suffixed with K, M, or G, the specified
5338 bandwidth is parsed as Kilobits, Megabits, or Gigabits, respectively, to the base of 1000.
5339 Defaults to unset.</para>
5340
5341 <xi:include href="version-info.xml" xpointer="v245"/>
5342 </listitem>
5343 </varlistentry>
5344
5345 <varlistentry>
5346 <term><varname>MPUBytes=</varname></term>
5347 <listitem>
5348 <para>The Minimum Packet Unit (MPU) determines the minimal token usage (specified in bytes)
5349 for a packet. When suffixed with K, M, or G, the specified size is parsed as Kilobytes,
5350 Megabytes, or Gigabytes, respectively, to the base of 1024. Defaults to zero.</para>
5351
5352 <xi:include href="version-info.xml" xpointer="v245"/>
5353 </listitem>
5354 </varlistentry>
5355
5356 <varlistentry>
5357 <term><varname>PeakRate=</varname></term>
5358 <listitem>
5359 <para>Takes the maximum depletion rate of the bucket. When suffixed with K, M, or G, the
5360 specified size is parsed as Kilobits, Megabits, or Gigabits, respectively, to the base of
5361 1000. Defaults to unset.</para>
5362
5363 <xi:include href="version-info.xml" xpointer="v245"/>
5364 </listitem>
5365 </varlistentry>
5366
5367 <varlistentry>
5368 <term><varname>MTUBytes=</varname></term>
5369 <listitem>
5370 <para>Specifies the size of the peakrate bucket. When suffixed with K, M, or G, the specified
5371 size is parsed as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of 1024.
5372 Defaults to unset.</para>
5373
5374 <xi:include href="version-info.xml" xpointer="v245"/>
5375 </listitem>
5376 </varlistentry>
5377 </variablelist>
5378 </refsect1>
5379
5380 <refsect1>
5381 <title>[PIE] Section Options</title>
5382 <para>The [PIE] section manages the queueing discipline (qdisc) of Proportional Integral
5383 controller-Enhanced (PIE).</para>
5384
5385 <variablelist class='network-directives'>
5386 <xi:include href="tc.xml" xpointer="qdisc-parent" />
5387 <xi:include href="tc.xml" xpointer="qdisc-handle" />
5388
5389 <varlistentry>
5390 <term><varname>PacketLimit=</varname></term>
5391 <listitem>
5392 <para>Specifies the hard limit on the queue size in number of packets. When this limit is reached,
5393 incoming packets are dropped. An unsigned integer in the range 1…4294967294. Defaults to unset and
5394 kernel's default is used.</para>
5395
5396 <xi:include href="version-info.xml" xpointer="v246"/>
5397 </listitem>
5398 </varlistentry>
5399 </variablelist>
5400 </refsect1>
5401
5402 <refsect1>
5403 <title>[FlowQueuePIE] Section Options</title>
5404 <para>The <literal>[FlowQueuePIE]</literal> section manages the queueing discipline
5405 (qdisc) of Flow Queue Proportional Integral controller-Enhanced (fq_pie).</para>
5406
5407 <variablelist class='network-directives'>
5408 <xi:include href="tc.xml" xpointer="qdisc-parent" />
5409 <xi:include href="tc.xml" xpointer="qdisc-handle" />
5410
5411 <varlistentry>
5412 <term><varname>PacketLimit=</varname></term>
5413 <listitem>
5414 <para>Specifies the hard limit on the queue size in number of packets. When this limit is reached,
5415 incoming packets are dropped. An unsigned integer ranges 1 to 4294967294. Defaults to unset and
5416 kernel's default is used.</para>
5417
5418 <xi:include href="version-info.xml" xpointer="v247"/>
5419 </listitem>
5420 </varlistentry>
5421 </variablelist>
5422 </refsect1>
5423
5424 <refsect1>
5425 <title>[StochasticFairBlue] Section Options</title>
5426 <para>The [StochasticFairBlue] section manages the queueing discipline (qdisc) of stochastic fair blue
5427 (sfb).</para>
5428
5429 <variablelist class='network-directives'>
5430 <xi:include href="tc.xml" xpointer="qdisc-parent" />
5431 <xi:include href="tc.xml" xpointer="qdisc-handle" />
5432
5433 <varlistentry>
5434 <term><varname>PacketLimit=</varname></term>
5435 <listitem>
5436 <para>Specifies the hard limit on the queue size in number of packets. When this limit is reached,
5437 incoming packets are dropped. An unsigned integer in the range 0…4294967294. Defaults to unset and
5438 kernel's default is used.</para>
5439
5440 <xi:include href="version-info.xml" xpointer="v246"/>
5441 </listitem>
5442 </varlistentry>
5443 </variablelist>
5444 </refsect1>
5445
5446 <refsect1>
5447 <title>[StochasticFairnessQueueing] Section Options</title>
5448 <para>The [StochasticFairnessQueueing] section manages the queueing discipline (qdisc) of stochastic
5449 fairness queueing (sfq).</para>
5450
5451 <variablelist class='network-directives'>
5452 <xi:include href="tc.xml" xpointer="qdisc-parent" />
5453 <xi:include href="tc.xml" xpointer="qdisc-handle" />
5454
5455 <varlistentry>
5456 <term><varname>PerturbPeriodSec=</varname></term>
5457 <listitem>
5458 <para>Specifies the interval in seconds for queue algorithm perturbation. Defaults to unset.</para>
5459
5460 <xi:include href="version-info.xml" xpointer="v245"/>
5461 </listitem>
5462 </varlistentry>
5463 </variablelist>
5464 </refsect1>
5465
5466 <refsect1>
5467 <title>[BFIFO] Section Options</title>
5468 <para>The [BFIFO] section manages the queueing discipline (qdisc) of Byte limited Packet First In First
5469 Out (bfifo).</para>
5470
5471 <variablelist class='network-directives'>
5472 <xi:include href="tc.xml" xpointer="qdisc-parent" />
5473 <xi:include href="tc.xml" xpointer="qdisc-handle" />
5474
5475 <varlistentry>
5476 <term><varname>LimitBytes=</varname></term>
5477 <listitem>
5478 <para>Specifies the hard limit in bytes on the FIFO buffer size. The size limit prevents overflow
5479 in case the kernel is unable to dequeue packets as quickly as it receives them. When this limit is
5480 reached, incoming packets are dropped. When suffixed with K, M, or G, the specified size is parsed
5481 as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of 1024. Defaults to unset and
5482 kernel default is used.</para>
5483
5484 <xi:include href="version-info.xml" xpointer="v246"/>
5485 </listitem>
5486 </varlistentry>
5487 </variablelist>
5488 </refsect1>
5489
5490 <refsect1>
5491 <title>[PFIFO] Section Options</title>
5492 <para>The [PFIFO] section manages the queueing discipline (qdisc) of Packet First In First Out
5493 (pfifo).</para>
5494
5495 <variablelist class='network-directives'>
5496 <xi:include href="tc.xml" xpointer="qdisc-parent" />
5497 <xi:include href="tc.xml" xpointer="qdisc-handle" />
5498
5499 <varlistentry>
5500 <term><varname>PacketLimit=</varname></term>
5501 <listitem>
5502 <para>Specifies the hard limit on the number of packets in the FIFO queue. The size limit prevents
5503 overflow in case the kernel is unable to dequeue packets as quickly as it receives them. When this
5504 limit is reached, incoming packets are dropped. An unsigned integer in the range
5505 0…4294967294. Defaults to unset and kernel's default is used.</para>
5506
5507 <xi:include href="version-info.xml" xpointer="v246"/>
5508 </listitem>
5509 </varlistentry>
5510 </variablelist>
5511 </refsect1>
5512
5513 <refsect1>
5514 <title>[PFIFOHeadDrop] Section Options</title>
5515 <para>The [PFIFOHeadDrop] section manages the queueing discipline (qdisc) of Packet First In First Out
5516 Head Drop (pfifo_head_drop).</para>
5517
5518 <variablelist class='network-directives'>
5519 <xi:include href="tc.xml" xpointer="qdisc-parent" />
5520 <xi:include href="tc.xml" xpointer="qdisc-handle" />
5521
5522 <varlistentry>
5523 <term><varname>PacketLimit=</varname></term>
5524 <listitem>
5525 <para>As in [PFIFO] section.</para>
5526
5527 <xi:include href="version-info.xml" xpointer="v246"/></listitem>
5528 </varlistentry>
5529 </variablelist>
5530 </refsect1>
5531
5532 <refsect1>
5533 <title>[PFIFOFast] Section Options</title>
5534 <para>The [PFIFOFast] section manages the queueing discipline (qdisc) of Packet First In First Out Fast
5535 (pfifo_fast).</para>
5536
5537 <variablelist class='network-directives'>
5538 <xi:include href="tc.xml" xpointer="qdisc-parent" />
5539 <xi:include href="tc.xml" xpointer="qdisc-handle" />
5540 </variablelist>
5541 </refsect1>
5542
5543 <refsect1>
5544 <title>[CAKE] Section Options</title>
5545 <para>The [CAKE] section manages the queueing discipline (qdisc) of Common Applications Kept Enhanced
5546 (CAKE).</para>
5547
5548 <variablelist class='network-directives'>
5549 <xi:include href="tc.xml" xpointer="qdisc-parent" />
5550 <xi:include href="tc.xml" xpointer="qdisc-handle" />
5551
5552 <varlistentry>
5553 <term><varname>Bandwidth=</varname></term>
5554 <listitem>
5555 <para>Specifies the shaper bandwidth. When suffixed with K, M, or G, the specified size is
5556 parsed as Kilobits, Megabits, or Gigabits, respectively, to the base of 1000. Defaults to
5557 unset and kernel's default is used.</para>
5558
5559 <xi:include href="version-info.xml" xpointer="v246"/>
5560 </listitem>
5561 </varlistentry>
5562
5563 <varlistentry>
5564 <term><varname>AutoRateIngress=</varname></term>
5565 <listitem>
5566 <para>Takes a boolean value. Enables automatic capacity estimation based on traffic arriving
5567 at this qdisc. This is most likely to be useful with cellular links, which tend to change
5568 quality randomly. If this setting is enabled, the <varname>Bandwidth=</varname> setting is
5569 used as an initial estimate. Defaults to unset, and the kernel's default is used.</para>
5570
5571 <xi:include href="version-info.xml" xpointer="v250"/>
5572 </listitem>
5573 </varlistentry>
5574
5575 <varlistentry>
5576 <term><varname>OverheadBytes=</varname></term>
5577 <listitem>
5578 <para>Specifies that bytes to be addeded to the size of each packet. Bytes may be negative.
5579 Takes an integer in the range -64…256. Defaults to unset and kernel's default is used.
5580 </para>
5581
5582 <xi:include href="version-info.xml" xpointer="v246"/>
5583 </listitem>
5584 </varlistentry>
5585
5586 <varlistentry>
5587 <term><varname>MPUBytes=</varname></term>
5588 <listitem>
5589 <para>Rounds each packet (including overhead) up to the specified bytes. Takes an integer in
5590 the range 1…256. Defaults to unset and kernel's default is used.</para>
5591
5592 <xi:include href="version-info.xml" xpointer="v250"/>
5593 </listitem>
5594 </varlistentry>
5595
5596 <varlistentry>
5597 <term><varname>CompensationMode=</varname></term>
5598 <listitem>
5599 <para>Takes one of <literal>none</literal>, <literal>atm</literal>, or <literal>ptm</literal>.
5600 Specifies the compensation mode for overhead calculation. When <literal>none</literal>, no
5601 compensation is taken into account. When <literal>atm</literal>, enables the compensation for
5602 ATM cell framing, which is normally found on ADSL links. When <literal>ptm</literal>, enables
5603 the compensation for PTM encoding, which is normally found on VDSL2 links and uses a 64b/65b
5604 encoding scheme. Defaults to unset and the kernel's default is used.</para>
5605
5606 <xi:include href="version-info.xml" xpointer="v250"/>
5607 </listitem>
5608 </varlistentry>
5609
5610 <varlistentry>
5611 <term><varname>UseRawPacketSize=</varname></term>
5612 <listitem>
5613 <para>Takes a boolean value. When true, the packet size reported by the Linux kernel will be
5614 used, instead of the underlying IP packet size. Defaults to unset, and the kernel's default
5615 is used.</para>
5616
5617 <xi:include href="version-info.xml" xpointer="v250"/>
5618 </listitem>
5619 </varlistentry>
5620
5621 <varlistentry>
5622 <term><varname>FlowIsolationMode=</varname></term>
5623 <listitem>
5624 <para>CAKE places packets from different flows into different queues, then packets from each
5625 queue are delivered fairly. This specifies whether the fairness is based on source address,
5626 destination address, individual flows, or any combination of those. The available values are:
5627 </para>
5628
5629 <variablelist>
5630 <varlistentry>
5631 <term><option>none</option></term>
5632 <listitem><para>
5633 The flow isolation is disabled, and all traffic passes through a single queue.
5634 </para>
5635
5636 <xi:include href="version-info.xml" xpointer="v250"/></listitem>
5637 </varlistentry>
5638 <varlistentry>
5639 <term><option>src-host</option></term>
5640 <listitem><para>
5641 Flows are defined only by source address. Equivalent to the <literal>srchost</literal>
5642 option for <command>tc qdisc</command> command. See also
5643 <citerefentry project='man-pages'><refentrytitle>tc-cake</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
5644 </para>
5645
5646 <xi:include href="version-info.xml" xpointer="v250"/></listitem>
5647 </varlistentry>
5648 <varlistentry>
5649 <term><option>dst-host</option></term>
5650 <listitem><para>
5651 Flows are defined only by destination address. Equivalent to the
5652 <literal>dsthost</literal> option for <command>tc qdisc</command> command. See also
5653 <citerefentry project='man-pages'><refentrytitle>tc-cake</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
5654 </para>
5655
5656 <xi:include href="version-info.xml" xpointer="v250"/></listitem>
5657 </varlistentry>
5658 <varlistentry>
5659 <term><option>hosts</option></term>
5660 <listitem><para>
5661 Flows are defined by source-destination host pairs. Equivalent to the same option for
5662 <command>tc qdisc</command> command. See also
5663 <citerefentry project='man-pages'><refentrytitle>tc-cake</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
5664 </para>
5665
5666 <xi:include href="version-info.xml" xpointer="v250"/></listitem>
5667 </varlistentry>
5668 <varlistentry>
5669 <term><option>flows</option></term>
5670 <listitem><para>
5671 Flows are defined by the entire 5-tuple of source address, destination address,
5672 transport protocol, source port and destination port. Equivalent to the same option for
5673 <command>tc qdisc</command> command. See also
5674 <citerefentry project='man-pages'><refentrytitle>tc-cake</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
5675 </para>
5676
5677 <xi:include href="version-info.xml" xpointer="v250"/></listitem>
5678 </varlistentry>
5679 <varlistentry>
5680 <term><option>dual-src-host</option></term>
5681 <listitem><para>
5682 Flows are defined by the 5-tuple (see <literal>flows</literal> in the above), and
5683 fairness is applied first over source addresses, then over individual flows. Equivalent
5684 to the <literal>dual-srchost</literal> option for <command>tc qdisc</command> command.
5685 See also
5686 <citerefentry project='man-pages'><refentrytitle>tc-cake</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
5687 </para>
5688
5689 <xi:include href="version-info.xml" xpointer="v250"/></listitem>
5690 </varlistentry>
5691 <varlistentry>
5692 <term><option>dual-dst-host</option></term>
5693 <listitem><para>
5694 Flows are defined by the 5-tuple (see <literal>flows</literal> in the above), and
5695 fairness is applied first over destination addresses, then over individual flows.
5696 Equivalent to the <literal>dual-dsthost</literal> option for
5697 <command>tc qdisc</command> command. See also
5698 <citerefentry project='man-pages'><refentrytitle>tc-cake</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
5699 </para>
5700
5701 <xi:include href="version-info.xml" xpointer="v250"/></listitem>
5702 </varlistentry>
5703 <varlistentry>
5704 <term><option>triple</option></term>
5705 <listitem><para>
5706 Flows are defined by the 5-tuple (see <literal>flows</literal>), and fairness is
5707 applied over source and destination addresses, and also over individual flows.
5708 Equivalent to the <literal>triple-isolate</literal> option for
5709 <command>tc qdisc</command> command. See also
5710 <citerefentry project='man-pages'><refentrytitle>tc-cake</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
5711 </para>
5712
5713 <xi:include href="version-info.xml" xpointer="v250"/></listitem>
5714 </varlistentry>
5715 </variablelist>
5716
5717 <para>Defaults to unset and the kernel's default is used.</para>
5718
5719 <xi:include href="version-info.xml" xpointer="v250"/>
5720 </listitem>
5721 </varlistentry>
5722
5723 <varlistentry>
5724 <term><varname>NAT=</varname></term>
5725 <listitem>
5726 <para>Takes a boolean value. When true, CAKE performs a NAT lookup before applying
5727 flow-isolation rules, to determine the true addresses and port numbers of the packet, to
5728 improve fairness between hosts inside the NAT. This has no practical effect when
5729 <varname>FlowIsolationMode=</varname> is <literal>none</literal> or <literal>flows</literal>,
5730 or if NAT is performed on a different host. Defaults to unset, and the kernel's default is
5731 used.</para>
5732
5733 <xi:include href="version-info.xml" xpointer="v250"/>
5734 </listitem>
5735 </varlistentry>
5736
5737 <varlistentry>
5738 <term><varname>PriorityQueueingPreset=</varname></term>
5739 <listitem>
5740 <para>CAKE divides traffic into <literal>tins</literal>, and each tin has its own independent
5741 set of flow-isolation queues, bandwidth threshold, and priority. This specifies the preset of
5742 tin profiles. The available values are:</para>
5743
5744 <variablelist>
5745 <varlistentry>
5746 <term><option>besteffort</option></term>
5747 <listitem><para>
5748 Disables priority queueing by placing all traffic in one tin.
5749 </para>
5750
5751 <xi:include href="version-info.xml" xpointer="v250"/></listitem>
5752 </varlistentry>
5753 <varlistentry>
5754 <term><option>precedence</option></term>
5755 <listitem><para>
5756 Enables priority queueing based on the legacy interpretation of TOS
5757 <literal>Precedence</literal> field. Use of this preset on the modern Internet is
5758 firmly discouraged.
5759 </para>
5760
5761 <xi:include href="version-info.xml" xpointer="v250"/></listitem>
5762 </varlistentry>
5763 <varlistentry>
5764 <term><option>diffserv8</option></term>
5765 <listitem><para>
5766 Enables priority queueing based on the Differentiated Service
5767 (<literal>DiffServ</literal>) field with eight tins: Background Traffic, High
5768 Throughput, Best Effort, Video Streaming, Low Latency Transactions, Interactive Shell,
5769 Minimum Latency, and Network Control.
5770 </para>
5771
5772 <xi:include href="version-info.xml" xpointer="v250"/></listitem>
5773 </varlistentry>
5774 <varlistentry>
5775 <term><option>diffserv4</option></term>
5776 <listitem><para>
5777 Enables priority queueing based on the Differentiated Service
5778 (<literal>DiffServ</literal>) field with four tins: Background Traffic, Best Effort,
5779 Streaming Media, and Latency Sensitive.
5780 </para>
5781
5782 <xi:include href="version-info.xml" xpointer="v250"/></listitem>
5783 </varlistentry>
5784 <varlistentry>
5785 <term><option>diffserv3</option></term>
5786 <listitem><para>
5787 Enables priority queueing based on the Differentiated Service
5788 (<literal>DiffServ</literal>) field with three tins: Background Traffic, Best Effort,
5789 and Latency Sensitive.
5790 </para>
5791
5792 <xi:include href="version-info.xml" xpointer="v250"/></listitem>
5793 </varlistentry>
5794 </variablelist>
5795
5796 <para>Defaults to unset, and the kernel's default is used.</para>
5797
5798 <xi:include href="version-info.xml" xpointer="v250"/>
5799 </listitem>
5800 </varlistentry>
5801
5802 <varlistentry>
5803 <term><varname>FirewallMark=</varname></term>
5804 <listitem>
5805 <para>Takes an integer in the range 1…4294967295. When specified, firewall-mark-based
5806 overriding of CAKE's tin selection is enabled. Defaults to unset, and the kernel's default is
5807 used.</para>
5808
5809 <xi:include href="version-info.xml" xpointer="v250"/>
5810 </listitem>
5811 </varlistentry>
5812
5813 <varlistentry>
5814 <term><varname>Wash=</varname></term>
5815 <listitem>
5816 <para>Takes a boolean value. When true, CAKE clears the DSCP fields, except for ECN bits, of
5817 any packet passing through CAKE. Defaults to unset, and the kernel's default is used.</para>
5818
5819 <xi:include href="version-info.xml" xpointer="v250"/>
5820 </listitem>
5821 </varlistentry>
5822
5823 <varlistentry>
5824 <term><varname>SplitGSO=</varname></term>
5825 <listitem>
5826 <para>Takes a boolean value. When true, CAKE will split General Segmentation Offload (GSO)
5827 super-packets into their on-the-wire components and dequeue them individually. Defaults to
5828 unset, and the kernel's default is used.</para>
5829
5830 <xi:include href="version-info.xml" xpointer="v250"/>
5831 </listitem>
5832 </varlistentry>
5833
5834 <varlistentry>
5835 <term><varname>RTTSec=</varname></term>
5836 <listitem>
5837 <para>Specifies the RTT for the filter. Takes a timespan. Typical values are e.g. 100us for
5838 extremely high-performance 10GigE+ networks like datacentre, 1ms for non-WiFi LAN connections,
5839 100ms for typical internet connections. Defaults to unset, and the kernel's default will be used.
5840 </para>
5841
5842 <xi:include href="version-info.xml" xpointer="v253"/>
5843 </listitem>
5844 </varlistentry>
5845
5846 <varlistentry>
5847 <term><varname>AckFilter=</varname></term>
5848 <listitem>
5849 <para>Takes a boolean value, or special value <literal>aggressive</literal>. If enabled, ACKs in
5850 each flow are queued and redundant ACKs to the upstream are dropped. If yes, the filter will always
5851 keep at least two redundant ACKs in the queue, while in <literal>aggressive</literal> mode, it will
5852 filter down to a single ACK. This may improve download throughput on links with very asymmetrical
5853 rate limits. Defaults to unset, and the kernel's default will be used.</para>
5854
5855 <xi:include href="version-info.xml" xpointer="v253"/>
5856 </listitem>
5857 </varlistentry>
5858
5859 </variablelist>
5860 </refsect1>
5861
5862 <refsect1>
5863 <title>[ControlledDelay] Section Options</title>
5864 <para>The [ControlledDelay] section manages the queueing discipline (qdisc) of
5865 controlled delay (CoDel).</para>
5866
5867 <variablelist class='network-directives'>
5868 <xi:include href="tc.xml" xpointer="qdisc-parent" />
5869 <xi:include href="tc.xml" xpointer="qdisc-handle" />
5870
5871 <varlistentry>
5872 <term><varname>PacketLimit=</varname></term>
5873 <listitem>
5874 <para>Specifies the hard limit on the queue size in number of packets. When this limit is reached,
5875 incoming packets are dropped. An unsigned integer in the range 0…4294967294. Defaults to unset and
5876 kernel's default is used.</para>
5877
5878 <xi:include href="version-info.xml" xpointer="v245"/>
5879 </listitem>
5880 </varlistentry>
5881
5882 <varlistentry>
5883 <term><varname>TargetSec=</varname></term>
5884 <listitem>
5885 <para>Takes a timespan. Specifies the acceptable minimum standing/persistent queue delay.
5886 Defaults to unset and kernel's default is used.</para>
5887
5888 <xi:include href="version-info.xml" xpointer="v245"/>
5889 </listitem>
5890 </varlistentry>
5891
5892 <varlistentry>
5893 <term><varname>IntervalSec=</varname></term>
5894 <listitem>
5895 <para>Takes a timespan. This is used to ensure that the measured minimum delay does not
5896 become too stale. Defaults to unset and kernel's default is used.</para>
5897
5898 <xi:include href="version-info.xml" xpointer="v245"/>
5899 </listitem>
5900 </varlistentry>
5901
5902 <varlistentry>
5903 <term><varname>ECN=</varname></term>
5904 <listitem>
5905 <para>Takes a boolean. This can be used to mark packets instead of dropping them. Defaults to
5906 unset and kernel's default is used.</para>
5907
5908 <xi:include href="version-info.xml" xpointer="v245"/>
5909 </listitem>
5910 </varlistentry>
5911
5912 <varlistentry>
5913 <term><varname>CEThresholdSec=</varname></term>
5914 <listitem>
5915 <para>Takes a timespan. This sets a threshold above which all packets are marked with ECN
5916 Congestion Experienced (CE). Defaults to unset and kernel's default is used.</para>
5917
5918 <xi:include href="version-info.xml" xpointer="v245"/>
5919 </listitem>
5920 </varlistentry>
5921 </variablelist>
5922 </refsect1>
5923
5924 <refsect1>
5925 <title>[DeficitRoundRobinScheduler] Section Options</title>
5926 <para>The [DeficitRoundRobinScheduler] section manages the queueing discipline (qdisc) of Deficit Round
5927 Robin Scheduler (DRR).</para>
5928
5929 <variablelist class='network-directives'>
5930 <xi:include href="tc.xml" xpointer="qdisc-parent" />
5931 <xi:include href="tc.xml" xpointer="qdisc-handle" />
5932 </variablelist>
5933 </refsect1>
5934
5935 <refsect1>
5936 <title>[DeficitRoundRobinSchedulerClass] Section Options</title>
5937 <para>The [DeficitRoundRobinSchedulerClass] section manages the traffic control class of Deficit Round
5938 Robin Scheduler (DRR).</para>
5939
5940 <variablelist class='network-directives'>
5941 <xi:include href="tc.xml" xpointer="tclass-parent" />
5942 <xi:include href="tc.xml" xpointer="tclass-classid" />
5943
5944 <varlistentry>
5945 <term><varname>QuantumBytes=</varname></term>
5946 <listitem>
5947 <para>Specifies the amount of bytes a flow is allowed to dequeue before the scheduler moves
5948 to the next class. When suffixed with K, M, or G, the specified size is parsed as Kilobytes,
5949 Megabytes, or Gigabytes, respectively, to the base of 1024. Defaults to the MTU of the
5950 interface.</para>
5951
5952 <xi:include href="version-info.xml" xpointer="v246"/>
5953 </listitem>
5954 </varlistentry>
5955
5956 </variablelist>
5957 </refsect1>
5958
5959 <refsect1>
5960 <title>[EnhancedTransmissionSelection] Section Options</title>
5961 <para>The [EnhancedTransmissionSelection] section manages the queueing discipline (qdisc) of Enhanced
5962 Transmission Selection (ETS).</para>
5963
5964 <variablelist class='network-directives'>
5965 <xi:include href="tc.xml" xpointer="qdisc-parent" />
5966 <xi:include href="tc.xml" xpointer="qdisc-handle" />
5967
5968 <varlistentry>
5969 <term><varname>Bands=</varname></term>
5970 <listitem>
5971 <para>Specifies the number of bands. An unsigned integer in the range 1…16. This value has to be at
5972 least large enough to cover the strict bands specified through the <varname>StrictBands=</varname>
5973 and bandwidth-sharing bands specified in <varname>QuantumBytes=</varname>.</para>
5974
5975 <xi:include href="version-info.xml" xpointer="v246"/>
5976 </listitem>
5977 </varlistentry>
5978
5979 <varlistentry>
5980 <term><varname>StrictBands=</varname></term>
5981 <listitem>
5982 <para>Specifies the number of bands that should be created in strict mode. An unsigned integer in
5983 the range 1…16.</para>
5984
5985 <xi:include href="version-info.xml" xpointer="v246"/>
5986 </listitem>
5987 </varlistentry>
5988
5989 <varlistentry>
5990 <term><varname>QuantumBytes=</varname></term>
5991 <listitem>
5992 <para>Specifies the white-space separated list of quantum used in band-sharing bands. When
5993 suffixed with K, M, or G, the specified size is parsed as Kilobytes, Megabytes, or Gigabytes,
5994 respectively, to the base of 1024. This setting can be specified multiple times. If an empty
5995 string is assigned, then the all previous assignments are cleared.</para>
5996
5997 <xi:include href="version-info.xml" xpointer="v246"/>
5998 </listitem>
5999 </varlistentry>
6000
6001 <varlistentry>
6002 <term><varname>PriorityMap=</varname></term>
6003 <listitem>
6004 <para>The priority map maps the priority of a packet to a band. The argument is a whitespace
6005 separated list of numbers. The first number indicates which band the packets with priority 0 should
6006 be put to, the second is for priority 1, and so on. There can be up to 16 numbers in the list. If
6007 there are fewer, the default band that traffic with one of the unmentioned priorities goes to is
6008 the last one. Each band number must be in the range 0…255. This setting can be specified multiple
6009 times. If an empty string is assigned, then the all previous assignments are cleared.</para>
6010
6011 <xi:include href="version-info.xml" xpointer="v246"/>
6012 </listitem>
6013 </varlistentry>
6014 </variablelist>
6015 </refsect1>
6016
6017 <refsect1>
6018 <title>[GenericRandomEarlyDetection] Section Options</title>
6019 <para>The [GenericRandomEarlyDetection] section manages the queueing discipline (qdisc) of Generic Random
6020 Early Detection (GRED).</para>
6021
6022 <variablelist class='network-directives'>
6023 <xi:include href="tc.xml" xpointer="qdisc-parent" />
6024 <xi:include href="tc.xml" xpointer="qdisc-handle" />
6025
6026 <varlistentry>
6027 <term><varname>VirtualQueues=</varname></term>
6028 <listitem>
6029 <para>Specifies the number of virtual queues. Takes an integer in the range 1…16. Defaults to unset
6030 and kernel's default is used.</para>
6031
6032 <xi:include href="version-info.xml" xpointer="v246"/>
6033 </listitem>
6034 </varlistentry>
6035
6036 <varlistentry>
6037 <term><varname>DefaultVirtualQueue=</varname></term>
6038 <listitem>
6039 <para>Specifies the number of default virtual queue. This must be less than <varname>VirtualQueue=</varname>.
6040 Defaults to unset and kernel's default is used.</para>
6041
6042 <xi:include href="version-info.xml" xpointer="v246"/>
6043 </listitem>
6044 </varlistentry>
6045
6046 <varlistentry>
6047 <term><varname>GenericRIO=</varname></term>
6048 <listitem>
6049 <para>Takes a boolean. It turns on the RIO-like buffering scheme. Defaults to
6050 unset and kernel's default is used.</para>
6051
6052 <xi:include href="version-info.xml" xpointer="v246"/>
6053 </listitem>
6054 </varlistentry>
6055 </variablelist>
6056 </refsect1>
6057
6058 <refsect1>
6059 <title>[FairQueueingControlledDelay] Section Options</title>
6060 <para>The [FairQueueingControlledDelay] section manages the queueing discipline (qdisc) of fair queuing
6061 controlled delay (FQ-CoDel).</para>
6062
6063 <variablelist class='network-directives'>
6064 <xi:include href="tc.xml" xpointer="qdisc-parent" />
6065 <xi:include href="tc.xml" xpointer="qdisc-handle" />
6066
6067 <varlistentry>
6068 <term><varname>PacketLimit=</varname></term>
6069 <listitem>
6070 <para>Specifies the hard limit on the real queue size. When this limit is reached, incoming packets are
6071 dropped. Defaults to unset and kernel's default is used.</para>
6072
6073 <xi:include href="version-info.xml" xpointer="v245"/>
6074 </listitem>
6075 </varlistentry>
6076
6077 <varlistentry>
6078 <term><varname>MemoryLimitBytes=</varname></term>
6079 <listitem>
6080 <para>Specifies the limit on the total number of bytes that can be queued in this FQ-CoDel instance.
6081 When suffixed with K, M, or G, the specified size is parsed as Kilobytes, Megabytes, or Gigabytes,
6082 respectively, to the base of 1024. Defaults to unset and kernel's default is used.</para>
6083
6084 <xi:include href="version-info.xml" xpointer="v246"/>
6085 </listitem>
6086 </varlistentry>
6087
6088 <varlistentry>
6089 <term><varname>Flows=</varname></term>
6090 <listitem>
6091 <para>Specifies the number of flows into which the incoming packets are classified.
6092 Defaults to unset and kernel's default is used.</para>
6093
6094 <xi:include href="version-info.xml" xpointer="v245"/>
6095 </listitem>
6096 </varlistentry>
6097
6098 <varlistentry>
6099 <term><varname>TargetSec=</varname></term>
6100 <listitem>
6101 <para>Takes a timespan. Specifies the acceptable minimum standing/persistent queue delay.
6102 Defaults to unset and kernel's default is used.</para>
6103
6104 <xi:include href="version-info.xml" xpointer="v245"/>
6105 </listitem>
6106 </varlistentry>
6107
6108 <varlistentry>
6109 <term><varname>IntervalSec=</varname></term>
6110 <listitem>
6111 <para>Takes a timespan. This is used to ensure that the measured minimum delay does not
6112 become too stale. Defaults to unset and kernel's default is used.</para>
6113
6114 <xi:include href="version-info.xml" xpointer="v245"/>
6115 </listitem>
6116 </varlistentry>
6117
6118 <varlistentry>
6119 <term><varname>QuantumBytes=</varname></term>
6120 <listitem>
6121 <para>Specifies the number of bytes used as the "deficit" in the fair queuing algorithm timespan.
6122 When suffixed with K, M, or G, the specified size is parsed as Kilobytes, Megabytes, or Gigabytes,
6123 respectively, to the base of 1024. Defaults to unset and kernel's default is used.</para>
6124
6125 <xi:include href="version-info.xml" xpointer="v246"/>
6126 </listitem>
6127 </varlistentry>
6128
6129 <varlistentry>
6130 <term><varname>ECN=</varname></term>
6131 <listitem>
6132 <para>Takes a boolean. This can be used to mark packets instead of dropping them. Defaults to
6133 unset and kernel's default is used.</para>
6134
6135 <xi:include href="version-info.xml" xpointer="v245"/>
6136 </listitem>
6137 </varlistentry>
6138
6139 <varlistentry>
6140 <term><varname>CEThresholdSec=</varname></term>
6141 <listitem>
6142 <para>Takes a timespan. This sets a threshold above which all packets are marked with ECN
6143 Congestion Experienced (CE). Defaults to unset and kernel's default is used.</para>
6144
6145 <xi:include href="version-info.xml" xpointer="v245"/>
6146 </listitem>
6147 </varlistentry>
6148 </variablelist>
6149 </refsect1>
6150
6151 <refsect1>
6152 <title>[FairQueueing] Section Options</title>
6153 <para>The [FairQueueing] section manages the queueing discipline (qdisc) of fair queue traffic policing
6154 (FQ).</para>
6155
6156 <variablelist class='network-directives'>
6157 <xi:include href="tc.xml" xpointer="qdisc-parent" />
6158 <xi:include href="tc.xml" xpointer="qdisc-handle" />
6159
6160 <varlistentry>
6161 <term><varname>PacketLimit=</varname></term>
6162 <listitem>
6163 <para>Specifies the hard limit on the real queue size. When this limit is reached, incoming packets are
6164 dropped. Defaults to unset and kernel's default is used.</para>
6165
6166 <xi:include href="version-info.xml" xpointer="v245"/>
6167 </listitem>
6168 </varlistentry>
6169
6170 <varlistentry>
6171 <term><varname>FlowLimit=</varname></term>
6172 <listitem>
6173 <para>Specifies the hard limit on the maximum number of packets queued per flow. Defaults to
6174 unset and kernel's default is used.</para>
6175
6176 <xi:include href="version-info.xml" xpointer="v245"/>
6177 </listitem>
6178 </varlistentry>
6179
6180 <varlistentry>
6181 <term><varname>QuantumBytes=</varname></term>
6182 <listitem>
6183 <para>Specifies the credit per dequeue RR round, i.e. the amount of bytes a flow is allowed
6184 to dequeue at once. When suffixed with K, M, or G, the specified size is parsed as Kilobytes,
6185 Megabytes, or Gigabytes, respectively, to the base of 1024. Defaults to unset and kernel's
6186 default is used.</para>
6187
6188 <xi:include href="version-info.xml" xpointer="v246"/>
6189 </listitem>
6190 </varlistentry>
6191
6192 <varlistentry>
6193 <term><varname>InitialQuantumBytes=</varname></term>
6194 <listitem>
6195 <para>Specifies the initial sending rate credit, i.e. the amount of bytes a new flow is
6196 allowed to dequeue initially. When suffixed with K, M, or G, the specified size is parsed as
6197 Kilobytes, Megabytes, or Gigabytes, respectively, to the base of 1024. Defaults to unset and
6198 kernel's default is used.</para>
6199
6200 <xi:include href="version-info.xml" xpointer="v245"/>
6201 </listitem>
6202 </varlistentry>
6203
6204 <varlistentry>
6205 <term><varname>MaximumRate=</varname></term>
6206 <listitem>
6207 <para>Specifies the maximum sending rate of a flow. When suffixed with K, M, or G, the
6208 specified size is parsed as Kilobits, Megabits, or Gigabits, respectively, to the base of
6209 1000. Defaults to unset and kernel's default is used.</para>
6210
6211 <xi:include href="version-info.xml" xpointer="v245"/>
6212 </listitem>
6213 </varlistentry>
6214
6215 <varlistentry>
6216 <term><varname>Buckets=</varname></term>
6217 <listitem>
6218 <para>Specifies the size of the hash table used for flow lookups. Defaults to unset and
6219 kernel's default is used.</para>
6220
6221 <xi:include href="version-info.xml" xpointer="v245"/>
6222 </listitem>
6223 </varlistentry>
6224
6225 <varlistentry>
6226 <term><varname>OrphanMask=</varname></term>
6227 <listitem>
6228 <para>Takes an unsigned integer. For packets not owned by a socket, fq is able to mask a part
6229 of hash and reduce number of buckets associated with the traffic. Defaults to unset and
6230 kernel's default is used.</para>
6231
6232 <xi:include href="version-info.xml" xpointer="v245"/>
6233 </listitem>
6234 </varlistentry>
6235
6236 <varlistentry>
6237 <term><varname>Pacing=</varname></term>
6238 <listitem>
6239 <para>Takes a boolean, and enables or disables flow pacing. Defaults to unset and kernel's
6240 default is used.</para>
6241
6242 <xi:include href="version-info.xml" xpointer="v245"/>
6243 </listitem>
6244 </varlistentry>
6245
6246 <varlistentry>
6247 <term><varname>CEThresholdSec=</varname></term>
6248 <listitem>
6249 <para>Takes a timespan. This sets a threshold above which all packets are marked with ECN
6250 Congestion Experienced (CE). Defaults to unset and kernel's default is used.</para>
6251
6252 <xi:include href="version-info.xml" xpointer="v245"/>
6253 </listitem>
6254 </varlistentry>
6255 </variablelist>
6256 </refsect1>
6257
6258 <refsect1>
6259 <title>[TrivialLinkEqualizer] Section Options</title>
6260 <para>The [TrivialLinkEqualizer] section manages the queueing discipline (qdisc) of trivial link
6261 equalizer (teql).</para>
6262
6263 <variablelist class='network-directives'>
6264 <xi:include href="tc.xml" xpointer="qdisc-parent" />
6265 <xi:include href="tc.xml" xpointer="qdisc-handle" />
6266
6267 <varlistentry>
6268 <term><varname>Id=</varname></term>
6269 <listitem>
6270 <para>Specifies the interface ID <literal>N</literal> of teql. Defaults to <literal>0</literal>.
6271 Note that when teql is used, currently, the module <constant>sch_teql</constant> with
6272 <constant>max_equalizers=N+1</constant> option must be loaded before
6273 <command>systemd-networkd</command> is started.</para>
6274
6275 <xi:include href="version-info.xml" xpointer="v245"/>
6276 </listitem>
6277 </varlistentry>
6278 </variablelist>
6279 </refsect1>
6280
6281 <refsect1>
6282 <title>[HierarchyTokenBucket] Section Options</title>
6283 <para>The [HierarchyTokenBucket] section manages the queueing discipline (qdisc) of hierarchy token
6284 bucket (htb).</para>
6285
6286 <variablelist class='network-directives'>
6287 <xi:include href="tc.xml" xpointer="qdisc-parent" />
6288 <xi:include href="tc.xml" xpointer="qdisc-handle" />
6289
6290 <varlistentry>
6291 <term><varname>DefaultClass=</varname></term>
6292 <listitem>
6293 <para>Takes the minor id in hexadecimal of the default class. Unclassified traffic gets sent
6294 to the class. Defaults to unset.</para>
6295
6296 <xi:include href="version-info.xml" xpointer="v246"/>
6297 </listitem>
6298 </varlistentry>
6299
6300 <varlistentry>
6301 <term><varname>RateToQuantum=</varname></term>
6302 <listitem>
6303 <para>Takes an unsigned integer. The DRR quantums are calculated by dividing the value
6304 configured in <varname>Rate=</varname> by <varname>RateToQuantum=</varname>.</para>
6305
6306 <xi:include href="version-info.xml" xpointer="v246"/>
6307 </listitem>
6308 </varlistentry>
6309 </variablelist>
6310 </refsect1>
6311
6312 <refsect1>
6313 <title>[HierarchyTokenBucketClass] Section Options</title>
6314 <para>The [HierarchyTokenBucketClass] section manages the traffic control class of hierarchy token bucket
6315 (htb).</para>
6316
6317 <variablelist class='network-directives'>
6318 <xi:include href="tc.xml" xpointer="tclass-parent" />
6319 <xi:include href="tc.xml" xpointer="tclass-classid" />
6320
6321 <varlistentry>
6322 <term><varname>Priority=</varname></term>
6323 <listitem>
6324 <para>Specifies the priority of the class. In the round-robin process, classes with the lowest
6325 priority field are tried for packets first.</para>
6326
6327 <xi:include href="version-info.xml" xpointer="v246"/>
6328 </listitem>
6329 </varlistentry>
6330
6331 <varlistentry>
6332 <term><varname>QuantumBytes=</varname></term>
6333 <listitem>
6334 <para>Specifies how many bytes to serve from leaf at once. When suffixed with K, M, or G, the
6335 specified size is parsed as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of
6336 1024.</para>
6337
6338 <xi:include href="version-info.xml" xpointer="v246"/>
6339 </listitem>
6340 </varlistentry>
6341
6342 <varlistentry>
6343 <term><varname>MTUBytes=</varname></term>
6344 <listitem>
6345 <para>Specifies the maximum packet size we create. When suffixed with K, M, or G, the specified
6346 size is parsed as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of 1024.</para>
6347
6348 <xi:include href="version-info.xml" xpointer="v246"/>
6349 </listitem>
6350 </varlistentry>
6351
6352 <varlistentry>
6353 <term><varname>OverheadBytes=</varname></term>
6354 <listitem>
6355 <para>Takes an unsigned integer which specifies per-packet size overhead used in rate
6356 computations. When suffixed with K, M, or G, the specified size is parsed as Kilobytes,
6357 Megabytes, or Gigabytes, respectively, to the base of 1024.</para>
6358
6359 <xi:include href="version-info.xml" xpointer="v246"/>
6360 </listitem>
6361 </varlistentry>
6362
6363 <varlistentry>
6364 <term><varname>Rate=</varname></term>
6365 <listitem>
6366 <para>Specifies the maximum rate this class and all its children are guaranteed. When suffixed
6367 with K, M, or G, the specified size is parsed as Kilobits, Megabits, or Gigabits, respectively,
6368 to the base of 1000. This setting is mandatory.</para>
6369
6370 <xi:include href="version-info.xml" xpointer="v246"/>
6371 </listitem>
6372 </varlistentry>
6373
6374 <varlistentry>
6375 <term><varname>CeilRate=</varname></term>
6376 <listitem>
6377 <para>Specifies the maximum rate at which a class can send, if its parent has bandwidth to spare.
6378 When suffixed with K, M, or G, the specified size is parsed as Kilobits, Megabits, or Gigabits,
6379 respectively, to the base of 1000. When unset, the value specified with <varname>Rate=</varname>
6380 is used.</para>
6381
6382 <xi:include href="version-info.xml" xpointer="v246"/>
6383 </listitem>
6384 </varlistentry>
6385
6386 <varlistentry>
6387 <term><varname>BufferBytes=</varname></term>
6388 <listitem>
6389 <para>Specifies the maximum bytes burst which can be accumulated during idle period. When suffixed
6390 with K, M, or G, the specified size is parsed as Kilobytes, Megabytes, or Gigabytes, respectively,
6391 to the base of 1024.</para>
6392
6393 <xi:include href="version-info.xml" xpointer="v246"/>
6394 </listitem>
6395 </varlistentry>
6396
6397 <varlistentry>
6398 <term><varname>CeilBufferBytes=</varname></term>
6399 <listitem>
6400 <para>Specifies the maximum bytes burst for ceil which can be accumulated during idle period.
6401 When suffixed with K, M, or G, the specified size is parsed as Kilobytes, Megabytes, or Gigabytes,
6402 respectively, to the base of 1024.</para>
6403
6404 <xi:include href="version-info.xml" xpointer="v246"/>
6405 </listitem>
6406 </varlistentry>
6407 </variablelist>
6408 </refsect1>
6409
6410 <refsect1>
6411 <title>[ClassfulMultiQueueing] Section Options</title>
6412 <para>The [ClassfulMultiQueueing] section manages the queueing discipline (qdisc) of Classful Multi Queueing (mq).</para>
6413
6414 <variablelist class='network-directives'>
6415 <xi:include href="tc.xml" xpointer="qdisc-parent" />
6416 <xi:include href="tc.xml" xpointer="qdisc-handle" />
6417 </variablelist>
6418 </refsect1>
6419
6420 <refsect1>
6421 <title>[BandMultiQueueing] Section Options</title>
6422 <para>The [BandMultiQueueing] section manages the queueing discipline (qdisc) of Band Multi Queueing (multiq).</para>
6423
6424 <variablelist class='network-directives'>
6425 <xi:include href="tc.xml" xpointer="qdisc-parent" />
6426 <xi:include href="tc.xml" xpointer="qdisc-handle" />
6427 </variablelist>
6428 </refsect1>
6429
6430 <refsect1>
6431 <title>[HeavyHitterFilter] Section Options</title>
6432 <para>The [HeavyHitterFilter] section manages the queueing discipline (qdisc) of Heavy Hitter Filter
6433 (hhf).</para>
6434
6435 <variablelist class='network-directives'>
6436 <xi:include href="tc.xml" xpointer="qdisc-parent" />
6437 <xi:include href="tc.xml" xpointer="qdisc-handle" />
6438
6439 <varlistentry>
6440 <term><varname>PacketLimit=</varname></term>
6441 <listitem>
6442 <para>Specifies the hard limit on the queue size in number of packets. When this limit is reached,
6443 incoming packets are dropped. An unsigned integer in the range 0…4294967294. Defaults to unset and
6444 kernel's default is used.</para>
6445
6446 <xi:include href="version-info.xml" xpointer="v246"/>
6447 </listitem>
6448 </varlistentry>
6449 </variablelist>
6450 </refsect1>
6451
6452 <refsect1>
6453 <title>[QuickFairQueueing] Section Options</title>
6454 <para>The [QuickFairQueueing] section manages the queueing discipline (qdisc) of Quick Fair Queueing
6455 (QFQ).</para>
6456
6457 <variablelist class='network-directives'>
6458 <xi:include href="tc.xml" xpointer="qdisc-parent" />
6459 <xi:include href="tc.xml" xpointer="qdisc-handle" />
6460 </variablelist>
6461 </refsect1>
6462
6463 <refsect1>
6464 <title>[QuickFairQueueingClass] Section Options</title>
6465 <para>The [QuickFairQueueingClass] section manages the traffic control class of Quick Fair Queueing
6466 (qfq).</para>
6467
6468 <variablelist class='network-directives'>
6469 <xi:include href="tc.xml" xpointer="tclass-parent" />
6470 <xi:include href="tc.xml" xpointer="tclass-classid" />
6471
6472 <varlistentry>
6473 <term><varname>Weight=</varname></term>
6474 <listitem>
6475 <para>Specifies the weight of the class. Takes an integer in the range 1…1023. Defaults to
6476 unset in which case the kernel default is used.</para>
6477
6478 <xi:include href="version-info.xml" xpointer="v246"/>
6479 </listitem>
6480 </varlistentry>
6481
6482 <varlistentry>
6483 <term><varname>MaxPacketBytes=</varname></term>
6484 <listitem>
6485 <para>Specifies the maximum packet size in bytes for the class. When suffixed with K, M, or G, the
6486 specified size is parsed as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of
6487 1024. When unset, the kernel default is used.</para>
6488
6489 <xi:include href="version-info.xml" xpointer="v246"/>
6490 </listitem>
6491 </varlistentry>
6492 </variablelist>
6493 </refsect1>
6494
6495 <refsect1>
6496 <title>[BridgeVLAN] Section Options</title>
6497 <para>
6498 The [BridgeVLAN] section manages the VLAN ID configuration of a bridge master or enslaved device.
6499 To make the settings in this section take an effect,
6500 <varname>VLANFiltering=</varname> option has to be enabled on the bridge master, see the [Bridge]
6501 section in
6502 <citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>, and
6503 each enslaved device needs to define the relevant VLAN IDs in its own [BridgeVLAN] section, which it
6504 has in common with the bridge master.
6505 All assigned VLAN IDs on the interface that are not configured in the .network file will be removed. If
6506 VLAN IDs on an interface need to be managed by other tools, then the settings in this section cannot
6507 be used in the matching .network file and <varname>VLANFiltering=</varname> needs to be disabled on
6508 the bridge master.
6509 </para>
6510
6511 <variablelist class='network-directives'>
6512 <varlistentry>
6513 <term><varname>VLAN=</varname></term>
6514 <listitem>
6515 <para>The VLAN ID allowed on the port. This can be either a single ID or a range M-N. Takes an
6516 integer in the range 1…4094. This setting can be specified multiple times. If an empty string is
6517 assigned, then the all previous assignments are cleared.</para>
6518
6519 <xi:include href="version-info.xml" xpointer="v231"/>
6520 </listitem>
6521 </varlistentry>
6522 <varlistentry>
6523 <term><varname>EgressUntagged=</varname></term>
6524 <listitem>
6525 <para>The VLAN ID specified here will be used to untag frames on egress. Configuring
6526 <varname>EgressUntagged=</varname> implicates the use of <varname>VLAN=</varname> above and will
6527 enable the VLAN ID for ingress as well. This can be either a single ID or a range M-N. This
6528 setting can be specified multiple times. If an empty string is assigned, then the all previous
6529 assignments are cleared.</para>
6530
6531 <xi:include href="version-info.xml" xpointer="v231"/>
6532 </listitem>
6533 </varlistentry>
6534 <varlistentry>
6535 <term><varname>PVID=</varname></term>
6536 <listitem>
6537 <para>The port VLAN ID specified here is assigned to all untagged frames at ingress. Takes an
6538 VLAN ID or negative boolean value (e.g. <literal>no</literal>). When false, the currently
6539 assigned port VLAN ID will be dropped. Configuring <varname>PVID=</varname> implicates the use of
6540 <varname>VLAN=</varname> setting in the above and will enable the VLAN ID for ingress as well.
6541 Defaults to unset, and will keep the assigned port VLAN ID if exists.</para>
6542
6543 <xi:include href="version-info.xml" xpointer="v231"/>
6544 </listitem>
6545 </varlistentry>
6546 </variablelist>
6547 </refsect1>
6548
6549 <refsect1>
6550 <title>[MobileNetwork] Section Options</title>
6551
6552 <para>This section configures the default setting of the ModemManager integration. See
6553 <ulink url="https://modemmanager.org/docs/modemmanager/" /> for more information about ModemManager.</para>
6554
6555 <para>Regardless of the [MobileNetwork] section settings consider using the following for LTE modems (take into account
6556 that LTE modems do not typically support LLDP because LLDP is a Layer 2 protocol for Ethernet networks and an LTE
6557 modem connects to a cellular network, not a local Ethernet LAN):
6558 <programlisting>[Network]
6559 LLDP=no
6560 LinkLocalAddressing=no
6561 IPv6AcceptRA=no
6562 </programlisting>
6563 </para>
6564
6565 <para>The following options are available in the [MobileNetwork] section:</para>
6566 <variablelist class='network-directives'>
6567 <varlistentry>
6568 <term><varname>APN=</varname></term>
6569 <listitem>
6570 <para>An Access Point Name (APN) is the name of a gateway between a mobile network
6571 (GSM, GPRS, 3G, 4G and 5G) and another computer network. Required in 3GPP.
6572 Defaults to unset and no attempt to establish the connection is made.</para>
6573
6574 <xi:include href="version-info.xml" xpointer="v260"/>
6575 </listitem>
6576 </varlistentry>
6577
6578 <varlistentry>
6579 <term><varname>AllowedAuthenticationMechanisms=</varname></term>
6580 <listitem>
6581 <para>Authentication method to use. Specifies the white-space separated list of
6582 <literal>none</literal>, <literal>pap</literal>, <literal>chap</literal>,
6583 <literal>mschap</literal>, <literal>mschapv2</literal>, or <literal>eap</literal>
6584 methods. Optional in 3GPP. Defaults to unset and an automatically picked
6585 authentication method will be used.</para>
6586
6587 <xi:include href="version-info.xml" xpointer="v260"/>
6588 </listitem>
6589 </varlistentry>
6590
6591 <varlistentry>
6592 <term><varname>User=</varname></term>
6593 <listitem>
6594 <para>User name (if any) required by the network. Optional in 3GPP.
6595 Defaults to unset.</para>
6596
6597 <xi:include href="version-info.xml" xpointer="v260"/>
6598 </listitem>
6599 </varlistentry>
6600
6601 <varlistentry>
6602 <term><varname>Password=</varname></term>
6603 <listitem>
6604 <para>Password (if any) required by the network. Optional in 3GPP.
6605 Defaults to unset.</para>
6606
6607 <xi:include href="version-info.xml" xpointer="v260"/>
6608 </listitem>
6609 </varlistentry>
6610
6611 <varlistentry>
6612 <term><varname>IPFamily=</varname></term>
6613 <listitem>
6614 <para>Addressing type. Takes one of <literal>ipv4</literal>, <literal>ipv6</literal>,
6615 <literal>both</literal>, or <literal>any</literal>. Optional in 3GPP and CDMA.
6616 Defaults to unset and automatically selected.</para>
6617
6618 <xi:include href="version-info.xml" xpointer="v260"/>
6619 </listitem>
6620 </varlistentry>
6621
6622 <varlistentry>
6623 <term><varname>AllowRoaming=</varname></term>
6624 <listitem>
6625 <para>A boolean. When true, connection is allowed during roaming. When false,
6626 connection is not allowed during roaming.
6627 Optional in 3GPP. Defaults to <literal>yes</literal>.</para>
6628
6629 <xi:include href="version-info.xml" xpointer="v260"/>
6630 </listitem>
6631 </varlistentry>
6632
6633 <varlistentry>
6634 <term><varname>PIN=</varname></term>
6635 <listitem>
6636 <para>SIM-PIN unlock code. Defaults to unset.</para>
6637
6638 <xi:include href="version-info.xml" xpointer="v260"/>
6639 </listitem>
6640 </varlistentry>
6641
6642 <varlistentry>
6643 <term><varname>OperatorId=</varname></term>
6644 <listitem>
6645 <para>ETSI MCC-MNC of a network to force registration. Defaults to unset.</para>
6646
6647 <xi:include href="version-info.xml" xpointer="v260"/>
6648 </listitem>
6649 </varlistentry>
6650
6651 <varlistentry>
6652 <term><varname>RouteMetric=</varname></term>
6653 <listitem>
6654 <para>Set the routing metric for routes specified by the mobile network (including the prefix route
6655 added for the specified prefix). Takes an unsigned integer in the range 0…4294967295.
6656 When unset or set to 0, the kernel's default value will be used.</para>
6657
6658 <xi:include href="version-info.xml" xpointer="v260"/>
6659 </listitem>
6660 </varlistentry>
6661
6662 <varlistentry>
6663 <term><varname>UseGateway=</varname></term>
6664 <listitem>
6665 <para>When true (the default), the router address will be configured as the default gateway.</para>
6666
6667 <xi:include href="version-info.xml" xpointer="v260"/>
6668 </listitem>
6669 </varlistentry>
6670
6671 </variablelist>
6672 </refsect1>
6673
6674 <refsect1>
6675 <title>Examples</title>
6676 <example>
6677 <title>Static network configuration</title>
6678
6679 <programlisting># /etc/systemd/network/50-static.network
6680 [Match]
6681 Name=enp2s0
6682
6683 [Network]
6684 Address=192.168.0.15/24
6685 Gateway=192.168.0.1</programlisting>
6686
6687 <para>This brings interface <literal>enp2s0</literal> up with a static address. The
6688 specified gateway will be used for a default route.</para>
6689 </example>
6690
6691 <example>
6692 <title>DHCP on ethernet links</title>
6693
6694 <programlisting># /etc/systemd/network/60-dhcp.network
6695 [Match]
6696 Name=en*
6697
6698 [Network]
6699 DHCP=yes</programlisting>
6700
6701 <para>This will enable DHCPv4 and DHCPv6 on all interfaces with names starting with
6702 <literal>en</literal> (i.e. ethernet interfaces).</para>
6703 </example>
6704
6705 <example>
6706 <title>IPv6 Prefix Delegation (DHCPv6 PD)</title>
6707
6708 <programlisting># /etc/systemd/network/55-dhcpv6-pd-upstream.network
6709 [Match]
6710 Name=enp1s0
6711
6712 [Network]
6713 DHCP=ipv6
6714
6715 # The lines below are optional, to also assign an address in the delegated prefix
6716 # to the upstream interface. Uncomment the lines below if necessary.
6717 #[Network]
6718 #DHCPPrefixDelegation=yes
6719 #[DHCPPrefixDelegation]
6720 #UplinkInterface=:self
6721 #SubnetId=0
6722 #Announce=no
6723
6724 # If the upstream network does not provides any Router Advertisement (RA) messages,
6725 # then uncomment the lines below to make the DHCPv6 client forcibly started in the
6726 # managed mode.
6727 #[Network]
6728 #IPv6AcceptRA=no
6729 #[DHCPv6]
6730 #WithoutRA=solicit
6731
6732 # If the upstream network provides Router Advertisement (RA) messages with the
6733 # Managed bit unset, then uncomment the lines below to make the DHCPv6 client
6734 # forcibly started in the managed mode when an RA is received.
6735 #[DHCPv6]
6736 #UseAddress=no
6737 #[IPv6AcceptRA]
6738 #DHCPv6Client=always</programlisting>
6739
6740 <programlisting># /etc/systemd/network/55-dhcpv6-pd-downstream.network
6741 [Match]
6742 Name=enp2s0
6743
6744 [Network]
6745 DHCPPrefixDelegation=yes
6746 IPv6SendRA=yes
6747
6748 # It is expected that the host is acting as a router. So, usually it is not
6749 # necessary to receive Router Advertisement from other hosts in the downstream network.
6750 IPv6AcceptRA=no
6751
6752 [DHCPPrefixDelegation]
6753 UplinkInterface=enp1s0
6754 SubnetId=1
6755 Announce=yes</programlisting>
6756
6757 <para>This will enable DHCPv6-PD on the interface enp1s0 as an upstream interface where the
6758 DHCPv6 client is running and enp2s0 as a downstream interface where the prefix is delegated to.
6759 The delegated prefixes are distributed by IPv6 Router Advertisement on the downstream network.
6760 </para>
6761 </example>
6762
6763 <example>
6764 <title>IPv6 Prefix Delegation (DHCPv4 6RD)</title>
6765
6766 <programlisting># /etc/systemd/network/55-dhcpv4-6rd-upstream.network
6767 [Match]
6768 Name=enp1s0
6769
6770 [Network]
6771 DHCP=ipv4
6772
6773 # When DHCPv4-6RD is used, the upstream network does not support IPv6.
6774 # Hence, it is not necessary to wait for Router Advertisement, which is enabled by default.
6775 IPv6AcceptRA=no
6776
6777 [DHCPv4]
6778 Use6RD=yes</programlisting>
6779
6780 <programlisting># /etc/systemd/network/55-dhcpv4-6rd-downstream.network
6781 [Match]
6782 Name=enp2s0
6783
6784 [Network]
6785 DHCPPrefixDelegation=yes
6786 IPv6SendRA=yes
6787
6788 # It is expected that the host is acting as a router. So, usually it is not
6789 # necessary to receive Router Advertisement from other hosts in the downstream network.
6790 IPv6AcceptRA=no
6791
6792 [DHCPPrefixDelegation]
6793 UplinkInterface=enp1s0
6794 SubnetId=1
6795 Announce=yes</programlisting>
6796
6797 <para>This will enable DHCPv4-6RD on the interface enp1s0 as an upstream interface where the
6798 DHCPv4 client is running and enp2s0 as a downstream interface where the prefix is delegated to.
6799 The delegated prefixes are distributed by IPv6 Router Advertisement on the downstream network.
6800 </para>
6801 </example>
6802
6803 <example>
6804 <title>A bridge with two enslaved links</title>
6805
6806 <programlisting># /etc/systemd/network/25-bridge-static.netdev
6807 [NetDev]
6808 Name=bridge0
6809 Kind=bridge</programlisting>
6810
6811 <programlisting># /etc/systemd/network/25-bridge-static.network
6812 [Match]
6813 Name=bridge0
6814
6815 [Network]
6816 Address=192.168.0.15/24
6817 Gateway=192.168.0.1
6818 DNS=192.168.0.1</programlisting>
6819
6820 <programlisting># /etc/systemd/network/25-bridge-slave-interface-1.network
6821 [Match]
6822 Name=enp2s0
6823
6824 [Network]
6825 Bridge=bridge0</programlisting>
6826
6827 <programlisting># /etc/systemd/network/25-bridge-slave-interface-2.network
6828 [Match]
6829 Name=wlp3s0
6830
6831 [Network]
6832 Bridge=bridge0</programlisting>
6833
6834 <para>This creates a bridge and attaches devices <literal>enp2s0</literal> and
6835 <literal>wlp3s0</literal> to it. The bridge will have the specified static address
6836 and network assigned, and a default route via the specified gateway will be
6837 added. The specified DNS server will be added to the global list of DNS resolvers.
6838 </para>
6839 </example>
6840
6841 <example>
6842 <title>Bridge port with VLAN forwarding</title>
6843
6844 <programlisting>
6845 # /etc/systemd/network/25-bridge-slave-interface-1.network
6846 [Match]
6847 Name=enp2s0
6848
6849 [Network]
6850 Bridge=bridge0
6851
6852 [BridgeVLAN]
6853 VLAN=1-32
6854 PVID=42
6855 EgressUntagged=42
6856
6857 [BridgeVLAN]
6858 VLAN=100-299
6859
6860 [BridgeVLAN]
6861 EgressUntagged=300-400</programlisting>
6862
6863 <para>This overrides the configuration specified in the previous example for the
6864 interface <literal>enp2s0</literal>, and enables VLAN on that bridge port. VLAN IDs
6865 1-32, 42, 100-400 will be allowed. Packets tagged with VLAN IDs 42, 300-400 will be
6866 untagged when they leave on this interface. Untagged packets which arrive on this
6867 interface will be assigned VLAN ID 42.</para>
6868 </example>
6869
6870 <example>
6871 <title>Various tunnels</title>
6872
6873 <programlisting>/etc/systemd/network/25-tunnels.network
6874 [Match]
6875 Name=ens1
6876
6877 [Network]
6878 Tunnel=ipip-tun
6879 Tunnel=sit-tun
6880 Tunnel=gre-tun
6881 Tunnel=vti-tun
6882 </programlisting>
6883
6884 <programlisting>/etc/systemd/network/25-tunnel-ipip.netdev
6885 [NetDev]
6886 Name=ipip-tun
6887 Kind=ipip
6888 </programlisting>
6889
6890 <programlisting>/etc/systemd/network/25-tunnel-sit.netdev
6891 [NetDev]
6892 Name=sit-tun
6893 Kind=sit
6894 </programlisting>
6895
6896 <programlisting>/etc/systemd/network/25-tunnel-gre.netdev
6897 [NetDev]
6898 Name=gre-tun
6899 Kind=gre
6900 </programlisting>
6901
6902 <programlisting>/etc/systemd/network/25-tunnel-vti.netdev
6903 [NetDev]
6904 Name=vti-tun
6905 Kind=vti
6906 </programlisting>
6907
6908 <para>This will bring interface <literal>ens1</literal> up and create an IPIP tunnel,
6909 a SIT tunnel, a GRE tunnel, and a VTI tunnel using it.</para>
6910 </example>
6911
6912 <example>
6913 <title>A bond device</title>
6914
6915 <programlisting># /etc/systemd/network/30-bond1.network
6916 [Match]
6917 Name=bond1
6918
6919 [Network]
6920 DHCP=ipv6
6921 </programlisting>
6922
6923 <programlisting># /etc/systemd/network/30-bond1.netdev
6924 [NetDev]
6925 Name=bond1
6926 Kind=bond
6927 </programlisting>
6928
6929 <programlisting># /etc/systemd/network/30-bond1-dev1.network
6930 [Match]
6931 MACAddress=52:54:00:e9:64:41
6932
6933 [Network]
6934 Bond=bond1
6935 </programlisting>
6936
6937 <programlisting># /etc/systemd/network/30-bond1-dev2.network
6938 [Match]
6939 MACAddress=52:54:00:e9:64:42
6940
6941 [Network]
6942 Bond=bond1
6943 </programlisting>
6944
6945 <para>This will create a bond device <literal>bond1</literal> and enslave the two
6946 devices with MAC addresses 52:54:00:e9:64:41 and 52:54:00:e9:64:42 to it. IPv6 DHCP
6947 will be used to acquire an address.</para>
6948 </example>
6949
6950 <example>
6951 <title>Virtual Routing and Forwarding (VRF)</title>
6952 <para>Add the <literal>bond1</literal> interface to the VRF master interface
6953 <literal>vrf1</literal>. This will redirect routes generated on this interface to be
6954 within the routing table defined during VRF creation. For kernels before 4.8 traffic
6955 will not be redirected towards the VRFs routing table unless specific ip-rules are added.
6956 </para>
6957 <programlisting># /etc/systemd/network/25-vrf.network
6958 [Match]
6959 Name=bond1
6960
6961 [Network]
6962 VRF=vrf1
6963 </programlisting>
6964 </example>
6965
6966 <example>
6967 <title>MacVTap</title>
6968 <para>This brings up a network interface <literal>macvtap-test</literal>
6969 and attaches it to <literal>enp0s25</literal>.</para>
6970 <programlisting># /usr/lib/systemd/network/25-macvtap.network
6971 [Match]
6972 Name=enp0s25
6973
6974 [Network]
6975 MACVTAP=macvtap-test
6976 </programlisting>
6977 </example>
6978
6979 <example>
6980 <title>A Xfrm interface with physical underlying device.</title>
6981
6982 <programlisting># /etc/systemd/network/27-xfrm.netdev
6983 [NetDev]
6984 Name=xfrm0
6985 Kind=xfrm
6986
6987 [Xfrm]
6988 InterfaceId=7</programlisting>
6989
6990 <programlisting># /etc/systemd/network/27-eth0.network
6991 [Match]
6992 Name=eth0
6993
6994 [Network]
6995 Xfrm=xfrm0</programlisting>
6996
6997 <para>This creates a <literal>xfrm0</literal> interface and binds it to the <literal>eth0</literal> device.
6998 This allows hardware based ipsec offloading to the <literal>eth0</literal> nic.
6999 If offloading is not needed, xfrm interfaces can be assigned to the <literal>lo</literal> device.
7000 </para>
7001
7002 </example>
7003
7004 <example>
7005 <title>Connecting to a cellular network with ModemManager</title>
7006 <programlisting># /etc/systemd/network/27-wwan0.network
7007 [Match]
7008 Name=wwan0
7009
7010 [Network]
7011 LLDP=no
7012 LinkLocalAddressing=no
7013 IPv6AcceptRA=no
7014
7015 [MobileNetwork]
7016 APN=internet
7017 AllowedAuthenticationMechanisms=none pap chap
7018 User=user
7019 Password=pass
7020 IPFamily=both
7021 AllowRoaming=no
7022 PIN=1111
7023 OperatorId=25503
7024 RouteMetric=30
7025 UseGateway=yes</programlisting>
7026
7027 <para>This connects a cellular modem to a broadband network matched with the network interface <literal>wwan0</literal>,
7028 with APN name <literal>internet</literal>, allowed authentication <literal>none</literal>, <literal>pcap</literal>, or
7029 <literal>chap</literal>, user name <literal>user</literal>, their password <literal>pass</literal>, allows both IPv4 and IPv6,
7030 does not allow roaming, SIM card pin unlock code <literal>1111</literal>, only allows connecting to operator with
7031 MCC <literal>25503</literal>, and sets up a default gateway with route metric of 30.
7032 </para>
7033 </example>
7034 </refsect1>
7035
7036 <refsect1>
7037 <title>See Also</title>
7038 <para><simplelist type="inline">
7039 <member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
7040 <member><citerefentry><refentrytitle>systemd-networkd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
7041 <member><citerefentry><refentrytitle>systemd.link</refentrytitle><manvolnum>5</manvolnum></citerefentry></member>
7042 <member><citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry></member>
7043 <member><citerefentry><refentrytitle>systemd-network-generator.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
7044 <member><citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
7045 </simplelist></para>
7046 </refsect1>
7047
7048 </refentry>