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