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