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