]> git.ipfire.org Git - thirdparty/systemd.git/blob - man/systemd.network.xml
Merge pull request #21634 from yuwata/dhcp-header-cleanups
[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.2/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 interfaces,
32 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 processed
45 in lexical order, regardless of the directories in which they live. However, files with identical
46 filenames replace each other. Files in <filename>/etc/</filename> have the highest priority, files in
47 <filename>/run/</filename> take precedence over files with the same name under
48 <filename>/usr/</filename>. This can be used to override a system-supplied configuration file with a local
49 file if needed. As a special case, an empty file (file size 0) or symlink with the same name pointing to
50 <filename>/dev/null</filename> disables the configuration file entirely (it is "masked").</para>
51
52 <para>Along with the network file <filename>foo.network</filename>, a "drop-in" directory
53 <filename>foo.network.d/</filename> may exist. All files with the suffix
54 <literal>.conf</literal> from this directory will be merged in the alphanumeric order and parsed
55 after the main file itself has been parsed. This is useful to alter or add configuration settings,
56 without having to modify the main configuration file. Each drop-in file must have appropriate
57 section headers.</para>
58
59 <para>In addition to <filename>/etc/systemd/network</filename>, drop-in <literal>.d</literal>
60 directories can be placed in <filename>/usr/lib/systemd/network</filename> or
61 <filename>/run/systemd/network</filename> directories. Drop-in files in
62 <filename>/etc/</filename> take precedence over those in <filename>/run/</filename> which in turn
63 take precedence over those in <filename>/usr/lib/</filename>. Drop-in files under any of these
64 directories take precedence over the main network file wherever located.</para>
65 </refsect1>
66
67 <refsect1>
68 <title>[Match] Section Options</title>
69
70 <para>The network file contains a [Match] section, which determines if a given network file may be
71 applied to a given device; and a [Network] section specifying how the device should be configured. The
72 first (in lexical order) of the network files that matches a given device is applied, all later files
73 are ignored, even if they match as well.</para>
74
75 <para>A network file is said to match a network interface if all matches specified by the [Match]
76 section are satisfied. When a network file does not contain valid settings in [Match] section, then the
77 file will match all interfaces and <command>systemd-networkd</command> warns about that. Hint: to avoid
78 the warning and to make it clear that all interfaces shall be matched, add the following:
79 <programlisting>Name=*</programlisting> The following keys are accepted:</para>
80
81 <variablelist class='network-directives'>
82 <xi:include href="systemd.link.xml" xpointer="mac-address" />
83 <xi:include href="systemd.link.xml" xpointer="permanent-mac-address" />
84 <xi:include href="systemd.link.xml" xpointer="path" />
85 <xi:include href="systemd.link.xml" xpointer="driver" />
86 <xi:include href="systemd.link.xml" xpointer="type" />
87 <xi:include href="systemd.link.xml" xpointer="property" />
88
89 <varlistentry>
90 <term><varname>Name=</varname></term>
91 <listitem>
92 <para>A whitespace-separated list of shell-style globs matching the device name, as exposed
93 by the udev property <literal>INTERFACE</literal>, or device's alternative names. If the
94 list is prefixed with a "!", the test is inverted.</para>
95 </listitem>
96 </varlistentry>
97
98 <varlistentry>
99 <term><varname>WLANInterfaceType=</varname></term>
100 <listitem>
101 <para>A whitespace-separated list of wireless network type. Supported values are
102 <literal>ad-hoc</literal>, <literal>station</literal>, <literal>ap</literal>,
103 <literal>ap-vlan</literal>, <literal>wds</literal>, <literal>monitor</literal>,
104 <literal>mesh-point</literal>, <literal>p2p-client</literal>, <literal>p2p-go</literal>,
105 <literal>p2p-device</literal>, <literal>ocb</literal>, and <literal>nan</literal>. If the
106 list is prefixed with a "!", the test is inverted.
107 </para>
108 </listitem>
109 </varlistentry>
110
111 <varlistentry>
112 <term><varname>SSID=</varname></term>
113 <listitem>
114 <para>A whitespace-separated list of shell-style globs matching the SSID of the currently
115 connected wireless LAN. If the list is prefixed with a "!", the test is inverted.
116 </para>
117 </listitem>
118 </varlistentry>
119
120 <varlistentry>
121 <term><varname>BSSID=</varname></term>
122 <listitem>
123 <para>A whitespace-separated list of hardware address of the currently connected wireless
124 LAN. Use full colon-, hyphen- or dot-delimited hexadecimal. See the example in
125 <varname>MACAddress=</varname>. This option may appear more than once, in which case the
126 lists are merged. If the empty string is assigned to this option, the list is reset.</para>
127 </listitem>
128 </varlistentry>
129
130 <xi:include href="systemd.link.xml" xpointer="host" />
131 <xi:include href="systemd.link.xml" xpointer="virtualization" />
132 <xi:include href="systemd.link.xml" xpointer="kernel-command-line" />
133 <xi:include href="systemd.link.xml" xpointer="kernel-version" />
134 <xi:include href="systemd.link.xml" xpointer="architecture" />
135 <xi:include href="systemd.link.xml" xpointer="firmware" />
136 </variablelist>
137
138 </refsect1>
139
140 <refsect1>
141 <title>[Link] Section Options</title>
142
143 <para>The [Link] section accepts the following keys:</para>
144
145 <variablelist class='network-directives'>
146 <varlistentry>
147 <term><varname>MACAddress=</varname></term>
148 <listitem>
149 <para>The hardware address to set for the device.</para>
150 </listitem>
151 </varlistentry>
152 <varlistentry>
153 <term><varname>MTUBytes=</varname></term>
154 <listitem>
155 <para>The maximum transmission unit in bytes to set for the
156 device. The usual suffixes K, M, G, are supported and are
157 understood to the base of 1024.</para>
158 <para>Note that if IPv6 is enabled on the interface, and the MTU is chosen
159 below 1280 (the minimum MTU for IPv6) it will automatically be increased to this value.</para>
160 </listitem>
161 </varlistentry>
162 <varlistentry>
163 <term><varname>ARP=</varname></term>
164 <listitem>
165 <para>Takes a boolean. If set to true, the ARP (low-level Address Resolution Protocol)
166 for this interface is enabled. When unset, the kernel's default will be used.</para>
167 <para> For example, disabling ARP is useful when creating multiple MACVLAN or VLAN virtual
168 interfaces atop a single lower-level physical interface, which will then only serve as a
169 link/"bridge" device aggregating traffic to the same physical link and not participate in
170 the network otherwise. Defaults to unset.</para>
171 </listitem>
172 </varlistentry>
173 <varlistentry>
174 <term><varname>Multicast=</varname></term>
175 <listitem>
176 <para>Takes a boolean. If set to true, the multicast flag on the device is enabled. Defaults to unset.</para>
177 </listitem>
178 </varlistentry>
179 <varlistentry>
180 <term><varname>AllMulticast=</varname></term>
181 <listitem>
182 <para>Takes a boolean. If set to true, the driver retrieves all multicast packets from the network.
183 This happens when multicast routing is enabled. Defaults to unset.</para>
184 </listitem>
185 </varlistentry>
186 <varlistentry>
187 <term><varname>Promiscuous=</varname></term>
188 <listitem>
189 <para>Takes a boolean. If set to true, promiscuous mode of the interface is enabled.
190 Defaults to unset.</para>
191 <para>If this is set to false for the underlying link of a <literal>passthru</literal> mode MACVLAN/MACVTAP,
192 the virtual interface will be created with the <literal>nopromisc</literal> flag set.</para>
193 </listitem>
194 </varlistentry>
195 <varlistentry>
196 <term><varname>Unmanaged=</varname></term>
197 <listitem>
198 <para>Takes a boolean. When <literal>yes</literal>, no attempts are
199 made to bring up or configure matching links, equivalent to
200 when there are no matching network files. Defaults to
201 <literal>no</literal>.</para>
202 <para>This is useful for preventing later matching network
203 files from interfering with certain interfaces that are fully
204 controlled by other applications.</para>
205 </listitem>
206 </varlistentry>
207 <varlistentry>
208 <term><varname>Group=</varname></term>
209 <listitem>
210 <para>Link groups are similar to port ranges found in managed switches. When network interfaces
211 are added to a numbered group, operations on all the interfaces from that group can be
212 performed at once. Takes an unsigned integer in the range 02147483647. Defaults to unset.
213 </para>
214 </listitem>
215 </varlistentry>
216 <varlistentry>
217 <term><varname>RequiredForOnline=</varname></term>
218 <listitem>
219 <para>Takes a boolean or a minimum operational state and an optional maximum operational state.
220 Please see <citerefentry><refentrytitle>networkctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
221 for possible operational states. When <literal>yes</literal>, the network is deemed required when
222 determining whether the system is online (including when running
223 <command>systemd-networkd-wait-online</command>). When <literal>no</literal>, the network is ignored
224 when determining the online state. When a minimum operational state and an optional maximum operational
225 state are set, <literal>yes</literal> is implied, and this controls the minimum and maximum
226 operational state required for the network interface to be considered online.</para>
227
228 <para>Defaults to <literal>yes</literal> when <varname>ActivationPolicy=</varname> is not set,
229 or set to <literal>up</literal>, <literal>always-up</literal>, or <literal>bound</literal>.
230 Defaults to <literal>no</literal> when <varname>ActivationPolicy=</varname> is set to
231 <literal>manual</literal> or <literal>down</literal>. This is forced to <literal>no</literal>
232 when <varname>ActivationPolicy=</varname> is set to <literal>always-down</literal>.</para>
233
234 <para>The network will be brought up normally (as configured by <varname>ActivationPolicy=</varname>),
235 but in the event that there is no address being assigned by DHCP or the
236 cable is not plugged in, the link will simply remain offline and be
237 skipped automatically by <command>systemd-networkd-wait-online</command>
238 if <literal>RequiredForOnline=no</literal>.</para>
239 </listitem>
240 </varlistentry>
241 <varlistentry>
242 <term><varname>RequiredFamilyForOnline=</varname></term>
243 <listitem>
244 <para>Takes an address family. When specified, an IP address in the given family is deemed required
245 when determining whether the link is online (including when running
246 <command>systemd-networkd-wait-online</command>). Takes one of <literal>ipv4</literal>,
247 <literal>ipv6</literal>, <literal>both</literal>, or <literal>any</literal>. Defaults to
248 <literal>any</literal>. Note that this option has no effect if
249 <literal>RequiredForOnline=no</literal>, or if <literal>RequiredForOnline=</literal> specifies a
250 minimum operational state below <literal>degraded</literal>.</para>
251 </listitem>
252 </varlistentry>
253 <varlistentry>
254 <term><varname>ActivationPolicy=</varname></term>
255 <listitem>
256 <para>Specifies the policy for <command>systemd-networkd</command> managing the link
257 administrative state. Specifically, this controls how <command>systemd-networkd</command>
258 changes the network device's <literal>IFF_UP</literal> flag, which is sometimes
259 controlled by system administrators by running e.g., <command>ip link set dev eth0 up</command>
260 or <command>ip link set dev eth0 down</command>, and can also be changed with
261 <command>networkctl up eth0</command> or <command>networkctl down eth0</command>.</para>
262
263 <para>Takes one of <literal>up</literal>, <literal>always-up</literal>,
264 <literal>manual</literal>, <literal>always-down</literal>, <literal>down</literal>,
265 or <literal>bound</literal>. When <literal>manual</literal>, <command>systemd-networkd</command>
266 will not change the link's admin state automatically; the system administrator must bring the
267 interface up or down manually, as desired. When <literal>up</literal> (the default) or
268 <literal>always-up</literal>, or <literal>down</literal> or <literal>always-down</literal>,
269 <command>systemd-networkd</command> will set the link up or down, respectively,
270 when the interface is (re)configured. When <literal>always-up</literal> or
271 <literal>always-down</literal>, <command>systemd-networkd</command> will set the link up
272 or down, respectively, any time <command>systemd-networkd</command> detects a change in
273 the administrative state. When <varname>BindCarrier=</varname> is also set, this is
274 automatically set to <literal>bound</literal> and any other value is ignored.</para>
275
276 <para>When the policy is set to <literal>down</literal> or <literal>manual</literal>,
277 the default value of <varname>RequiredForOnline=</varname> is <literal>no</literal>.
278 When the policy is set to <literal>always-down</literal>, the value of
279 <varname>RequiredForOnline=</varname> forced to <literal>no</literal>.</para>
280
281 <para>The administrative state is not the same as the carrier state, so using
282 <literal>always-up</literal> does not mean the link will never lose carrier. The link
283 carrier depends on both the administrative state as well as the network device's physical
284 connection. However, to avoid reconfiguration failures, when using <literal>always-up</literal>,
285 <varname>IgnoreCarrierLoss=</varname> is forced to true.</para>
286 </listitem>
287 </varlistentry>
288 </variablelist>
289 </refsect1>
290
291 <refsect1>
292 <title>[SR-IOV] Section Options</title>
293 <para>The [SR-IOV] section accepts the following keys. Specify several [SR-IOV] sections to configure
294 several SR-IOVs. SR-IOV provides the ability to partition a single physical PCI resource into virtual
295 PCI functions which can then be injected into a VM. In the case of network VFs, SR-IOV improves
296 north-south network performance (that is, traffic with endpoints outside the host machine) by allowing
297 traffic to bypass the host machine’s network stack.</para>
298
299 <variablelist class='network-directives'>
300 <varlistentry>
301 <term><varname>VirtualFunction=</varname></term>
302 <listitem>
303 <para>Specifies a Virtual Function (VF), lightweight PCIe function designed solely to move data
304 in and out. Takes an unsigned integer in the range 02147483646. This option is compulsory.</para>
305 </listitem>
306 </varlistentry>
307
308 <varlistentry>
309 <term><varname>VLANId=</varname></term>
310 <listitem>
311 <para>Specifies VLAN ID of the virtual function. Takes an unsigned integer in the range 14095.</para>
312 </listitem>
313 </varlistentry>
314
315 <varlistentry>
316 <term><varname>QualityOfService=</varname></term>
317 <listitem>
318 <para>Specifies quality of service of the virtual function. Takes an unsigned integer in the range 14294967294.</para>
319 </listitem>
320 </varlistentry>
321
322 <varlistentry>
323 <term><varname>VLANProtocol=</varname></term>
324 <listitem>
325 <para>Specifies VLAN protocol of the virtual function. Takes <literal>802.1Q</literal> or
326 <literal>802.1ad</literal>.</para>
327 </listitem>
328 </varlistentry>
329
330 <varlistentry>
331 <term><varname>MACSpoofCheck=</varname></term>
332 <listitem>
333 <para>Takes a boolean. Controls the MAC spoof checking. When unset, the kernel's default will be used.</para>
334 </listitem>
335 </varlistentry>
336
337 <varlistentry>
338 <term><varname>QueryReceiveSideScaling=</varname></term>
339 <listitem>
340 <para>Takes a boolean. Toggle the ability of querying the receive side scaling (RSS)
341 configuration of the virtual function (VF). The VF RSS information like RSS hash key may be
342 considered sensitive on some devices where this information is shared between VF and the
343 physical function (PF). When unset, the kernel's default will be used.</para>
344 </listitem>
345 </varlistentry>
346
347 <varlistentry>
348 <term><varname>Trust=</varname></term>
349 <listitem>
350 <para>Takes a boolean. Allows to set trust mode of the virtual function (VF). When set, VF
351 users can set a specific feature which may impact security and/or performance. When unset,
352 the kernel's default will be used.</para>
353 </listitem>
354 </varlistentry>
355
356 <varlistentry>
357 <term><varname>LinkState=</varname></term>
358 <listitem>
359 <para>Allows to set the link state of the virtual function (VF). Takes a boolean or a
360 special value <literal>auto</literal>. Setting to <literal>auto</literal> means a
361 reflection of the physical function (PF) link state, <literal>yes</literal> lets the VF to
362 communicate with other VFs on this host even if the PF link state is down,
363 <literal>no</literal> causes the hardware to drop any packets sent by the VF. When unset,
364 the kernel's default will be used.</para>
365 </listitem>
366 </varlistentry>
367
368 <varlistentry>
369 <term><varname>MACAddress=</varname></term>
370 <listitem>
371 <para>Specifies the MAC address for the virtual function.</para>
372 </listitem>
373 </varlistentry>
374 </variablelist>
375 </refsect1>
376
377 <refsect1>
378 <title>[Network] Section Options</title>
379
380 <para>The [Network] section accepts the following keys:</para>
381
382 <variablelist class='network-directives'>
383 <varlistentry>
384 <term><varname>Description=</varname></term>
385 <listitem>
386 <para>A description of the device. This is only used for
387 presentation purposes.</para>
388 </listitem>
389 </varlistentry>
390 <varlistentry>
391 <term><varname>DHCP=</varname></term>
392 <listitem>
393 <para>Enables DHCPv4 and/or DHCPv6 client support. Accepts
394 <literal>yes</literal>, <literal>no</literal>,
395 <literal>ipv4</literal>, or <literal>ipv6</literal>. Defaults
396 to <literal>no</literal>.</para>
397
398 <para>Note that DHCPv6 will by default be triggered by Router
399 Advertisement, if that is enabled, regardless of this parameter.
400 By enabling DHCPv6 support explicitly, the DHCPv6 client will
401 be started regardless of the presence of routers on the link,
402 or what flags the routers pass. See
403 <literal>IPv6AcceptRA=</literal>.</para>
404
405 <para>Furthermore, note that by default the domain name
406 specified through DHCP is not used for name resolution.
407 See option <option>UseDomains=</option> below.</para>
408
409 <para>See the [DHCPv4] or [DHCPv6] sections below for further configuration options for the DHCP
410 client support.</para>
411 </listitem>
412 </varlistentry>
413 <varlistentry>
414 <term><varname>DHCPServer=</varname></term>
415 <listitem>
416 <para>Takes a boolean. If set to <literal>yes</literal>, DHCPv4 server will be started. Defaults
417 to <literal>no</literal>. Further settings for the DHCP server may be set in the [DHCPServer]
418 section described below.</para>
419 </listitem>
420 </varlistentry>
421 <varlistentry>
422 <term><varname>LinkLocalAddressing=</varname></term>
423 <listitem>
424 <para>Enables link-local address autoconfiguration. Accepts <option>yes</option>,
425 <option>no</option>, <option>ipv4</option>, and <option>ipv6</option>. An IPv6 link-local address
426 is configured when <option>yes</option> or <option>ipv6</option>. An IPv4 link-local address is
427 configured when <option>yes</option> or <option>ipv4</option> and when DHCPv4 autoconfiguration
428 has been unsuccessful for some time. (IPv4 link-local address autoconfiguration will usually
429 happen in parallel with repeated attempts to acquire a DHCPv4 lease).</para>
430
431 <para>Defaults to <option>no</option> when <varname>KeepMaster=</varname> or
432 <varname>Bridge=</varname> is set or when the specified
433 <varname>MACVLAN=</varname>/<varname>MACVTAP=</varname> has <varname>Mode=passthru</varname>, or
434 <option>ipv6</option> otherwise.</para>
435 </listitem>
436 </varlistentry>
437 <varlistentry>
438 <term><varname>IPv6LinkLocalAddressGenerationMode=</varname></term>
439 <listitem>
440 <para>Specifies how IPv6 link local address is generated. Takes one of
441 <literal>eui64</literal>, <literal>none</literal>, <literal>stable-privacy</literal> and
442 <literal>random</literal>. When unset, <literal>stable-privacy</literal> is used if
443 <varname>IPv6StableSecretAddress=</varname> is specified, and if not,
444 <literal>eui64</literal> is used. Note that if <varname>LinkLocalAddressing=</varname> is
445 <literal>no</literal> or <literal>ipv4</literal>, then
446 <varname>IPv6LinkLocalAddressGenerationMode=</varname> will be ignored. Also, even if
447 <varname>LinkLocalAddressing=</varname> is <literal>yes</literal> or
448 <literal>ipv6</literal>, setting <varname>IPv6LinkLocalAddressGenerationMode=none</varname>
449 disables to configure an IPv6 link-local address.</para>
450 </listitem>
451 </varlistentry>
452 <varlistentry>
453 <term><varname>IPv6StableSecretAddress=</varname></term>
454 <listitem>
455 <para>Takes an IPv6 address. The specified address will be used as a stable secret for
456 generating IPv6 link-local address. If this setting is specified, and
457 <varname>IPv6LinkLocalAddressGenerationMode=</varname> is unset, then
458 <varname>IPv6LinkLocalAddressGenerationMode=stable-privacy</varname> is implied.
459 If this setting is not specified, and <literal>stable-privacy</literal> is set to
460 <varname>IPv6LinkLocalAddressGenerationMode=</varname>,
461 then a stable secret address will be generated from the local machine ID and the interface
462 name.</para>
463 </listitem>
464 </varlistentry>
465 <varlistentry>
466 <term><varname>IPv4LLRoute=</varname></term>
467 <listitem>
468 <para>Takes a boolean. If set to true, sets up the route needed for
469 non-IPv4LL hosts to communicate with IPv4LL-only hosts. Defaults
470 to false.
471 </para>
472 </listitem>
473 </varlistentry>
474 <varlistentry>
475 <term><varname>DefaultRouteOnDevice=</varname></term>
476 <listitem>
477 <para>Takes a boolean. If set to true, sets up the default route bound to the interface.
478 Defaults to false. This is useful when creating routes on point-to-point interfaces.
479 This is equivalent to e.g. the following,
480 <programlisting>ip route add default dev veth99</programlisting>
481 or,
482 <programlisting>[Route]
483 Gateway=0.0.0.0</programlisting></para>
484 <para>Currently, there are no way to specify e.g., the table for the route configured by
485 this setting. To configure the default route with such an additional property, please use
486 the following instead:
487 <programlisting>[Route]
488 Gateway=0.0.0.0
489 Table=1234</programlisting></para>
490 </listitem>
491 </varlistentry>
492 <varlistentry>
493 <term><varname>LLMNR=</varname></term>
494 <listitem>
495 <para>Takes a boolean or <literal>resolve</literal>. When true,
496 enables <ulink
497 url="https://tools.ietf.org/html/rfc4795">Link-Local
498 Multicast Name Resolution</ulink> on the link. When set to
499 <literal>resolve</literal>, only resolution is enabled,
500 but not host registration and announcement. Defaults to
501 true. This setting is read by
502 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
503 </listitem>
504 </varlistentry>
505 <varlistentry>
506 <term><varname>MulticastDNS=</varname></term>
507 <listitem>
508 <para>Takes a boolean or <literal>resolve</literal>. When true,
509 enables <ulink
510 url="https://tools.ietf.org/html/rfc6762">Multicast
511 DNS</ulink> support on the link. When set to
512 <literal>resolve</literal>, only resolution is enabled,
513 but not host or service registration and
514 announcement. Defaults to false. This setting is read by
515 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
516 </listitem>
517 </varlistentry>
518 <varlistentry>
519 <term><varname>DNSOverTLS=</varname></term>
520 <listitem>
521 <para>Takes a boolean or <literal>opportunistic</literal>. When true, enables
522 <ulink url="https://tools.ietf.org/html/rfc7858">DNS-over-TLS</ulink> support on the link.
523 When set to <literal>opportunistic</literal>, compatibility with non-DNS-over-TLS servers
524 is increased, by automatically turning off DNS-over-TLS servers in this case. This option
525 defines a per-interface setting for
526 <citerefentry><refentrytitle>resolved.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>'s
527 global <varname>DNSOverTLS=</varname> option. Defaults to unset, and the global setting
528 will be used. This setting is read by
529 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
530 </listitem>
531 </varlistentry>
532 <varlistentry>
533 <term><varname>DNSSEC=</varname></term>
534 <listitem>
535 <para>Takes a boolean or <literal>allow-downgrade</literal>. When true, enables
536 <ulink url="https://tools.ietf.org/html/rfc4033">DNSSEC</ulink> DNS validation support on
537 the link. When set to <literal>allow-downgrade</literal>, compatibility with non-DNSSEC
538 capable networks is increased, by automatically turning off DNSSEC in this case. This
539 option defines a per-interface setting for
540 <citerefentry><refentrytitle>resolved.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>'s
541 global <varname>DNSSEC=</varname> option. Defaults to unset, and the global setting will be
542 used. This setting is read by
543 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
544 </para>
545 </listitem>
546 </varlistentry>
547 <varlistentry>
548 <term><varname>DNSSECNegativeTrustAnchors=</varname></term>
549 <listitem><para>A space-separated list of DNSSEC negative
550 trust anchor domains. If specified and DNSSEC is enabled,
551 look-ups done via the interface's DNS server will be subject
552 to the list of negative trust anchors, and not require
553 authentication for the specified domains, or anything below
554 it. Use this to disable DNSSEC authentication for specific
555 private domains, that cannot be proven valid using the
556 Internet DNS hierarchy. Defaults to the empty list. This
557 setting is read by
558 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
559 </listitem>
560 </varlistentry>
561 <varlistentry>
562 <term><varname>LLDP=</varname></term>
563 <listitem>
564 <para>Controls support for Ethernet LLDP packet reception. LLDP is a link-layer protocol commonly
565 implemented on professional routers and bridges which announces which physical port a system is connected
566 to, as well as other related data. Accepts a boolean or the special value
567 <literal>routers-only</literal>. When true, incoming LLDP packets are accepted and a database of all LLDP
568 neighbors maintained. If <literal>routers-only</literal> is set only LLDP data of various types of routers
569 is collected and LLDP data about other types of devices ignored (such as stations, telephones and
570 others). If false, LLDP reception is disabled. Defaults to <literal>routers-only</literal>. Use
571 <citerefentry><refentrytitle>networkctl</refentrytitle><manvolnum>1</manvolnum></citerefentry> to query the
572 collected neighbor data. LLDP is only available on Ethernet links. See <varname>EmitLLDP=</varname> below
573 for enabling LLDP packet emission from the local system.
574 </para>
575 </listitem>
576 </varlistentry>
577 <varlistentry>
578 <term><varname>EmitLLDP=</varname></term>
579 <listitem>
580 <para>Controls support for Ethernet LLDP packet emission. Accepts a boolean parameter or the special values
581 <literal>nearest-bridge</literal>, <literal>non-tpmr-bridge</literal> and
582 <literal>customer-bridge</literal>. Defaults to false, which turns off LLDP packet emission. If not false,
583 a short LLDP packet with information about the local system is sent out in regular intervals on the
584 link. The LLDP packet will contain information about the local hostname, the local machine ID (as stored
585 in <citerefentry><refentrytitle>machine-id</refentrytitle><manvolnum>5</manvolnum></citerefentry>) and the
586 local interface name, as well as the pretty hostname of the system (as set in
587 <citerefentry><refentrytitle>machine-info</refentrytitle><manvolnum>5</manvolnum></citerefentry>). LLDP
588 emission is only available on Ethernet links. Note that this setting passes data suitable for
589 identification of host to the network and should thus not be enabled on untrusted networks, where such
590 identification data should not be made available. Use this option to permit other systems to identify on
591 which interfaces they are connected to this system. The three special values control propagation of the
592 LLDP packets. The <literal>nearest-bridge</literal> setting permits propagation only to the nearest
593 connected bridge, <literal>non-tpmr-bridge</literal> permits propagation across Two-Port MAC Relays, but
594 not any other bridges, and <literal>customer-bridge</literal> permits propagation until a customer bridge
595 is reached. For details about these concepts, see <ulink
596 url="https://standards.ieee.org/findstds/standard/802.1AB-2016.html">IEEE 802.1AB-2016</ulink>. Note that
597 configuring this setting to true is equivalent to <literal>nearest-bridge</literal>, the recommended and
598 most restricted level of propagation. See <varname>LLDP=</varname> above for an option to enable LLDP
599 reception.</para>
600 </listitem>
601 </varlistentry>
602
603 <varlistentry>
604 <term><varname>BindCarrier=</varname></term>
605 <listitem>
606 <para>A link name or a list of link names. When set, controls the behavior of the current
607 link. When all links in the list are in an operational down state, the current link is brought
608 down. When at least one link has carrier, the current interface is brought up.</para>
609
610 <para>This forces <varname>ActivationPolicy=</varname> to be set to <literal>bound</literal>.</para>
611 </listitem>
612 </varlistentry>
613 <varlistentry>
614 <term><varname>Address=</varname></term>
615 <listitem>
616 <para>A static IPv4 or IPv6 address and its prefix length,
617 separated by a <literal>/</literal> character. Specify
618 this key more than once to configure several addresses.
619 The format of the address must be as described in
620 <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
621 This is a short-hand for an [Address] section only
622 containing an Address key (see below). This option may be
623 specified more than once.
624 </para>
625
626 <para>If the specified address is <literal>0.0.0.0</literal> (for IPv4) or <literal>::</literal>
627 (for IPv6), a new address range of the requested size is automatically allocated from a
628 system-wide pool of unused ranges. Note that the prefix length must be equal or larger than 8 for
629 IPv4, and 64 for IPv6. The allocated range is checked against all current network interfaces and
630 all known network configuration files to avoid address range conflicts. The default system-wide
631 pool consists of 192.168.0.0/16, 172.16.0.0/12 and 10.0.0.0/8 for IPv4, and fd00::/8 for IPv6.
632 This functionality is useful to manage a large number of dynamically created network interfaces
633 with the same network configuration and automatic address range assignment.</para>
634
635 </listitem>
636 </varlistentry>
637 <varlistentry>
638 <term><varname>Gateway=</varname></term>
639 <listitem>
640 <para>The gateway address, which must be in the format
641 described in
642 <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
643 This is a short-hand for a [Route] section only containing
644 a Gateway key. This option may be specified more than
645 once.</para>
646 </listitem>
647 </varlistentry>
648 <varlistentry>
649 <term><varname>DNS=</varname></term>
650 <listitem>
651 <para>A DNS server address, which must be in the format described in
652 <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
653 This option may be specified more than once. Each address can optionally take a port number
654 separated with <literal>:</literal>, a network interface name or index separated with
655 <literal>%</literal>, and a Server Name Indication (SNI) separated with <literal>#</literal>.
656 When IPv6 address is specified with a port number, then the address must be in the square
657 brackets. That is, the acceptable full formats are
658 <literal>111.222.333.444:9953%ifname#example.com</literal> for IPv4 and
659 <literal>[1111:2222::3333]:9953%ifname#example.com</literal> for IPv6. If an empty string is
660 assigned, then the all previous assignments are cleared. This setting is read by
661 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
662 </listitem>
663 </varlistentry>
664 <varlistentry>
665 <term><varname>Domains=</varname></term>
666 <listitem>
667 <para>A whitespace-separated list of domains which should be resolved using the DNS servers on
668 this link. Each item in the list should be a domain name, optionally prefixed with a tilde
669 (<literal>~</literal>). The domains with the prefix are called "routing-only domains". The
670 domains without the prefix are called "search domains" and are first used as search suffixes for
671 extending single-label hostnames (hostnames containing no dots) to become fully qualified
672 domain names (FQDNs). If a single-label hostname is resolved on this interface, each of the
673 specified search domains are appended to it in turn, converting it into a fully qualified domain
674 name, until one of them may be successfully resolved.</para>
675
676 <para>Both "search" and "routing-only" domains are used for routing of DNS queries: look-ups for hostnames
677 ending in those domains (hence also single label names, if any "search domains" are listed), are routed to
678 the DNS servers configured for this interface. The domain routing logic is particularly useful on
679 multi-homed hosts with DNS servers serving particular private DNS zones on each interface.</para>
680
681 <para>The "routing-only" domain <literal>~.</literal> (the tilde indicating definition of a routing domain,
682 the dot referring to the DNS root domain which is the implied suffix of all valid DNS names) has special
683 effect. It causes all DNS traffic which does not match another configured domain routing entry to be routed
684 to DNS servers specified for this interface. This setting is useful to prefer a certain set of DNS servers
685 if a link on which they are connected is available.</para>
686
687 <para>This setting is read by
688 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
689 "Search domains" correspond to the <varname>domain</varname> and <varname>search</varname> entries in
690 <citerefentry project='man-pages'><refentrytitle>resolv.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
691 Domain name routing has no equivalent in the traditional glibc API, which has no concept of domain
692 name servers limited to a specific link.</para>
693 </listitem>
694 </varlistentry>
695 <varlistentry>
696 <term><varname>DNSDefaultRoute=</varname></term>
697 <listitem>
698 <para>Takes a boolean argument. If true, this link's configured DNS servers are used for resolving domain
699 names that do not match any link's configured <varname>Domains=</varname> setting. If false, this link's
700 configured DNS servers are never used for such domains, and are exclusively used for resolving names that
701 match at least one of the domains configured on this link. If not specified defaults to an automatic mode:
702 queries not matching any link's configured domains will be routed to this link if it has no routing-only
703 domains configured.</para>
704 </listitem>
705 </varlistentry>
706 <varlistentry>
707 <term><varname>NTP=</varname></term>
708 <listitem>
709 <para>An NTP server address (either an IP address, or a hostname). This option may be specified more than once. This setting is read by
710 <citerefentry><refentrytitle>systemd-timesyncd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
711 </listitem>
712 </varlistentry>
713 <varlistentry>
714 <term><varname>IPForward=</varname></term>
715 <listitem><para>Configures IP packet forwarding for the
716 system. If enabled, incoming packets on any network
717 interface will be forwarded to any other interfaces
718 according to the routing table. Takes a boolean,
719 or the values <literal>ipv4</literal> or
720 <literal>ipv6</literal>, which only enable IP packet
721 forwarding for the specified address family. This controls
722 the <filename>net.ipv4.ip_forward</filename> and
723 <filename>net.ipv6.conf.all.forwarding</filename> sysctl
724 options of the network interface (see <ulink
725 url="https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt">ip-sysctl.txt</ulink>
726 for details about sysctl options). Defaults to
727 <literal>no</literal>.</para>
728
729 <para>Note: this setting controls a global kernel option,
730 and does so one way only: if a network that has this setting
731 enabled is set up the global setting is turned on. However,
732 it is never turned off again, even after all networks with
733 this setting enabled are shut down again.</para>
734
735 <para>To allow IP packet forwarding only between specific
736 network interfaces use a firewall.</para>
737 </listitem>
738 </varlistentry>
739 <varlistentry>
740 <term><varname>IPMasquerade=</varname></term>
741 <listitem><para>Configures IP masquerading for the network interface. If enabled, packets
742 forwarded from the network interface will be appear as coming from the local host. Takes one
743 of <literal>ipv4</literal>, <literal>ipv6</literal>, <literal>both</literal>, or
744 <literal>no</literal>. Defaults to <literal>no</literal>. If enabled, this automatically sets
745 <varname>IPForward=</varname> to one of <literal>ipv4</literal>, <literal>ipv6</literal> or
746 <literal>yes</literal>.</para>
747 <para>Note. Any positive boolean values such as <literal>yes</literal> or
748 <literal>true</literal> are now deprecated. Please use one of the values in the above.</para>
749 </listitem>
750 </varlistentry>
751 <varlistentry>
752 <term><varname>IPv6PrivacyExtensions=</varname></term>
753 <listitem><para>Configures use of stateless temporary
754 addresses that change over time (see <ulink
755 url="https://tools.ietf.org/html/rfc4941">RFC 4941</ulink>,
756 Privacy Extensions for Stateless Address Autoconfiguration
757 in IPv6). Takes a boolean or the special values
758 <literal>prefer-public</literal> and
759 <literal>kernel</literal>. When true, enables the privacy
760 extensions and prefers temporary addresses over public
761 addresses. When <literal>prefer-public</literal>, enables the
762 privacy extensions, but prefers public addresses over
763 temporary addresses. When false, the privacy extensions
764 remain disabled. When <literal>kernel</literal>, the kernel's
765 default setting will be left in place. Defaults to
766 <literal>no</literal>.</para></listitem>
767 </varlistentry>
768 <varlistentry>
769 <term><varname>IPv6AcceptRA=</varname></term>
770 <listitem><para>Takes a boolean. Controls IPv6 Router Advertisement (RA) reception support for the
771 interface. If true, RAs are accepted; if false, RAs are ignored. When RAs are accepted, they may
772 trigger the start of the DHCPv6 client if the relevant flags are set in the RA data, or if no
773 routers are found on the link. The default is to disable RA reception for bridge devices or when IP
774 forwarding is enabled, and to enable it otherwise. Cannot be enabled on bond devices and when link
775 local addressing is disabled.</para>
776
777 <para>Further settings for the IPv6 RA support may be configured in the [IPv6AcceptRA] section, see
778 below.</para>
779
780 <para>Also see <ulink
781 url="https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt">ip-sysctl.txt</ulink> in the kernel
782 documentation regarding <literal>accept_ra</literal>, but note that systemd's setting of
783 <constant>1</constant> (i.e. true) corresponds to kernel's setting of <constant>2</constant>.</para>
784
785 <para>Note that kernel's implementation of the IPv6 RA protocol is always disabled,
786 regardless of this setting. If this option is enabled, a userspace implementation of the IPv6
787 RA protocol is used, and the kernel's own implementation remains disabled, since
788 <command>systemd-networkd</command> needs to know all details supplied in the advertisements,
789 and these are not available from the kernel if the kernel's own implementation is used.</para>
790 </listitem>
791 </varlistentry>
792 <varlistentry>
793 <term><varname>IPv6DuplicateAddressDetection=</varname></term>
794 <listitem><para>Configures the amount of IPv6 Duplicate
795 Address Detection (DAD) probes to send. When unset, the kernel's default will be used.
796 </para></listitem>
797 </varlistentry>
798 <varlistentry>
799 <term><varname>IPv6HopLimit=</varname></term>
800 <listitem><para>Configures IPv6 Hop Limit. For each router that
801 forwards the packet, the hop limit is decremented by 1. When the
802 hop limit field reaches zero, the packet is discarded.
803 When unset, the kernel's default will be used.
804 </para></listitem>
805 </varlistentry>
806 <varlistentry>
807 <term><varname>IPv4AcceptLocal=</varname></term>
808 <listitem><para>Takes a boolean. Accept packets with local source addresses. In combination
809 with suitable routing, this can be used to direct packets between two local interfaces over
810 the wire and have them accepted properly. When unset, the kernel's default will be used.
811 </para></listitem>
812 </varlistentry>
813 <varlistentry>
814 <term><varname>IPv4RouteLocalnet=</varname></term>
815 <listitem><para>Takes a boolean. When true, the kernel does not consider loopback addresses as martian source or destination
816 while routing. This enables the use of 127.0.0.0/8 for local routing purposes. When unset, the kernel's default will be used.
817 </para></listitem>
818 </varlistentry>
819 <varlistentry>
820 <term><varname>IPv4ProxyARP=</varname></term>
821 <listitem><para>Takes a boolean. Configures proxy ARP for IPv4. Proxy ARP is the technique in which one host,
822 usually a router, answers ARP requests intended for another machine. By "faking" its identity,
823 the router accepts responsibility for routing packets to the "real" destination. See <ulink
824 url="https://tools.ietf.org/html/rfc1027">RFC 1027</ulink>.
825 When unset, the kernel's default will be used.
826 </para></listitem>
827 </varlistentry>
828 <varlistentry>
829 <term><varname>IPv6ProxyNDP=</varname></term>
830 <listitem><para>Takes a boolean. Configures proxy NDP for IPv6. Proxy NDP (Neighbor Discovery
831 Protocol) is a technique for IPv6 to allow routing of addresses to a different
832 destination when peers expect them to be present on a certain physical link.
833 In this case a router answers Neighbour Advertisement messages intended for
834 another machine by offering its own MAC address as destination.
835 Unlike proxy ARP for IPv4, it is not enabled globally, but will only send Neighbour
836 Advertisement messages for addresses in the IPv6 neighbor proxy table,
837 which can also be shown by <command>ip -6 neighbour show proxy</command>.
838 systemd-networkd will control the per-interface `proxy_ndp` switch for each configured
839 interface depending on this option.
840 When unset, the kernel's default will be used.
841 </para></listitem>
842 </varlistentry>
843 <varlistentry>
844 <term><varname>IPv6ProxyNDPAddress=</varname></term>
845 <listitem><para>An IPv6 address, for which Neighbour Advertisement messages will be
846 proxied. This option may be specified more than once. systemd-networkd will add the
847 <option>IPv6ProxyNDPAddress=</option> entries to the kernel's IPv6 neighbor proxy table.
848 This option implies <option>IPv6ProxyNDP=yes</option> but has no effect if
849 <option>IPv6ProxyNDP</option> has been set to false. When unset, the kernel's default will be used.
850 </para></listitem>
851 </varlistentry>
852 <varlistentry>
853 <term><varname>IPv6SendRA=</varname></term>
854 <listitem><para>Whether to enable or disable Router Advertisement sending on a link. Takes a
855 boolean value. When enabled, prefixes configured in [IPv6Prefix] sections and routes
856 configured in [IPv6RoutePrefix] sections are distributed as defined in the [IPv6SendRA]
857 section. If <varname>DHCPv6PrefixDelegation=</varname> is enabled, then the delegated
858 prefixes are also distributed. See <varname>DHCPv6PrefixDelegation=</varname> setting and the
859 [IPv6SendRA], [IPv6Prefix], [IPv6RoutePrefix], and [DHCPv6PrefixDelegation] sections for more
860 configuration options.</para></listitem>
861 </varlistentry>
862 <varlistentry>
863 <term><varname>DHCPv6PrefixDelegation=</varname></term>
864 <listitem><para>Takes a boolean value. When enabled, requests prefixes using a DHCPv6 client
865 configured on another link. By default, an address within each delegated prefix will be
866 assigned, and the prefixes will be announced through IPv6 Router Advertisement when
867 <varname>IPv6SendRA=</varname> is enabled. Such default settings can be configured in
868 [DHCPv6PrefixDelegation] section. Defaults to disabled.</para></listitem>
869 </varlistentry>
870 <varlistentry>
871 <term><varname>IPv6MTUBytes=</varname></term>
872 <listitem><para>Configures IPv6 maximum transmission unit (MTU).
873 An integer greater than or equal to 1280 bytes. When unset, the kernel's default will be used.
874 </para></listitem>
875 </varlistentry>
876 <varlistentry>
877 <term><varname>KeepMaster=</varname></term>
878 <listitem>
879 <para>Takes a boolean value. When enabled, the current master interface index will not be
880 changed, and <varname>BatmanAdvanced=</varname>, <varname>Bond=</varname>,
881 <varname>Bridge=</varname>, and <varname>VRF=</varname> settings are ignored. This may be
882 useful when a netdev with a master interface is created by another program, e.g.
883 <citerefentry><refentrytitle>systemd-nspawn</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
884 Defaults to false.</para>
885 </listitem>
886 </varlistentry>
887 <varlistentry>
888 <term><varname>BatmanAdvanced=</varname></term>
889 <term><varname>Bond=</varname></term>
890 <term><varname>Bridge=</varname></term>
891 <term><varname>VRF=</varname></term>
892 <listitem>
893 <para>The name of the B.A.T.M.A.N. Advanced, bond, bridge, or VRF interface to add the link
894 to. See
895 <citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
896 </para>
897 </listitem>
898 </varlistentry>
899 <varlistentry>
900 <term><varname>IPoIB=</varname></term>
901 <term><varname>IPVLAN=</varname></term>
902 <term><varname>IPVTAP=</varname></term>
903 <term><varname>L2TP=</varname></term>
904 <term><varname>MACsec=</varname></term>
905 <term><varname>MACVLAN=</varname></term>
906 <term><varname>MACVTAP=</varname></term>
907 <term><varname>Tunnel=</varname></term>
908 <term><varname>VLAN=</varname></term>
909 <term><varname>VXLAN=</varname></term>
910 <term><varname>Xfrm=</varname></term>
911 <listitem>
912 <para>The name of an IPoIB, IPVLAN, IPVTAP, L2TP, MACsec, MACVLAN, MACVTAP, tunnel, VLAN,
913 VXLAN, or Xfrm to be created on the link. See
914 <citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
915 This option may be specified more than once.</para>
916 </listitem>
917 </varlistentry>
918 <varlistentry>
919 <term><varname>ActiveSlave=</varname></term>
920 <listitem>
921 <para>Takes a boolean. Specifies the new active slave. The <literal>ActiveSlave=</literal>
922 option is only valid for following modes:
923 <literal>active-backup</literal>,
924 <literal>balance-alb</literal> and
925 <literal>balance-tlb</literal>. Defaults to false.
926 </para>
927 </listitem>
928 </varlistentry>
929 <varlistentry>
930 <term><varname>PrimarySlave=</varname></term>
931 <listitem>
932 <para>Takes a boolean. Specifies which slave is the primary device. The specified
933 device will always be the active slave while it is available. Only when the
934 primary is off-line will alternate devices be used. This is useful when
935 one slave is preferred over another, e.g. when one slave has higher throughput
936 than another. The <literal>PrimarySlave=</literal> option is only valid for
937 following modes:
938 <literal>active-backup</literal>,
939 <literal>balance-alb</literal> and
940 <literal>balance-tlb</literal>. Defaults to false.
941 </para>
942 </listitem>
943 </varlistentry>
944 <varlistentry>
945 <term><varname>ConfigureWithoutCarrier=</varname></term>
946 <listitem>
947 <para>Takes a boolean. Allows networkd to configure a specific link even if it has no carrier.
948 Defaults to false. If enabled, and the <varname>IgnoreCarrierLoss=</varname> setting is not
949 explicitly set, then it is enabled as well.
950 </para>
951 </listitem>
952 </varlistentry>
953 <varlistentry>
954 <term><varname>IgnoreCarrierLoss=</varname></term>
955 <listitem>
956 <para>Takes a boolean or a timespan. When true, networkd retains both the static and dynamic
957 configuration of the interface even if its carrier is lost. When a timespan is specified,
958 networkd waits for the specified timespan, and ignores the carrier loss if the link regain
959 its carrier within the timespan. Setting a finite timespan may be useful for a wireless
960 interface connecting to a network which has multiple access points with the same SSID, or an
961 interface which is reset on changing MTU. When unset, the value specified with
962 <varname>ConfigureWithoutCarrier=</varname> is used.</para>
963
964 <para>When <varname>ActivationPolicy=</varname> is set to <literal>always-up</literal>, this
965 is forced to <literal>true</literal>.
966 </para>
967 </listitem>
968 </varlistentry>
969 <varlistentry>
970 <term><varname>KeepConfiguration=</varname></term>
971 <listitem>
972 <para>Takes a boolean or one of <literal>static</literal>, <literal>dhcp-on-stop</literal>,
973 <literal>dhcp</literal>. When <literal>static</literal>, <command>systemd-networkd</command>
974 will not drop static addresses and routes on starting up process. When set to
975 <literal>dhcp-on-stop</literal>, <command>systemd-networkd</command> will not drop addresses
976 and routes on stopping the daemon. When <literal>dhcp</literal>,
977 the addresses and routes provided by a DHCP server will never be dropped even if the DHCP
978 lease expires. This is contrary to the DHCP specification, but may be the best choice if,
979 e.g., the root filesystem relies on this connection. The setting <literal>dhcp</literal>
980 implies <literal>dhcp-on-stop</literal>, and <literal>yes</literal> implies
981 <literal>dhcp</literal> and <literal>static</literal>. Defaults to <literal>no</literal>.
982 </para>
983 </listitem>
984 </varlistentry>
985 </variablelist>
986 </refsect1>
987
988 <refsect1>
989 <title>[Address] Section Options</title>
990
991 <para>An [Address] section accepts the following keys. Specify several [Address]
992 sections to configure several addresses.</para>
993
994 <variablelist class='network-directives'>
995 <varlistentry>
996 <term><varname>Address=</varname></term>
997 <listitem>
998 <para>As in the [Network] section. This key is mandatory. Each [Address] section can contain one
999 <varname>Address=</varname> setting.</para>
1000 </listitem>
1001 </varlistentry>
1002 <varlistentry>
1003 <term><varname>Peer=</varname></term>
1004 <listitem>
1005 <para>The peer address in a point-to-point connection.
1006 Accepts the same format as the <varname>Address=</varname>
1007 key.</para>
1008 </listitem>
1009 </varlistentry>
1010 <varlistentry>
1011 <term><varname>Broadcast=</varname></term>
1012 <listitem>
1013 <para>Takes an IPv4 address or boolean value. The address must be in the format described in
1014 <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
1015 If set to true, then the IPv4 broadcast address will be derived from the
1016 <varname>Address=</varname> setting. If set to false, then the broadcast address will not
1017 be set. Defaults to true, except for wireguard interfaces, where it default to false.
1018 </para>
1019 </listitem>
1020 </varlistentry>
1021 <varlistentry>
1022 <term><varname>Label=</varname></term>
1023 <listitem>
1024 <para>Specifies the label for the IPv4 address. The label must be a 7-bit ASCII string with
1025 a length of 115 characters. Defaults to unset.</para>
1026 </listitem>
1027 </varlistentry>
1028 <varlistentry>
1029 <term><varname>PreferredLifetime=</varname></term>
1030 <listitem>
1031 <para>Allows the default "preferred lifetime" of the address to be overridden. Only three
1032 settings are accepted: <literal>forever</literal>, <literal>infinity</literal>, which is the
1033 default and means that the address never expires, and <literal>0</literal>, which means that the
1034 address is considered immediately "expired" and will not be used, unless explicitly requested. A
1035 setting of <option>PreferredLifetime=0</option> is useful for addresses which are added to be
1036 used only by a specific application, which is then configured to use them explicitly.</para>
1037 </listitem>
1038 </varlistentry>
1039 <varlistentry>
1040 <term><varname>Scope=</varname></term>
1041 <listitem>
1042 <para>The scope of the address, which can be
1043 <literal>global</literal> (valid everywhere on the network, even through a gateway),
1044 <literal>link</literal> (only valid on this device, will not traverse a gateway) or
1045 <literal>host</literal> (only valid within the device itself, e.g. 127.0.0.1)
1046 or an unsigned integer in the range 0255.
1047 Defaults to <literal>global</literal>.</para>
1048 </listitem>
1049 </varlistentry>
1050 <varlistentry>
1051 <term><varname>RouteMetric=</varname></term>
1052 <listitem>
1053 <para>The metric of the prefix route, which is pointing to the subnet of the configured IP
1054 address, taking the configured prefix length into account. Takes an unsigned integer in the
1055 range 04294967295. When unset or set to 0, the kernel's default value is used. This
1056 setting will be ignored when <varname>AddPrefixRoute=</varname> is false.</para>
1057 </listitem>
1058 </varlistentry>
1059 <varlistentry>
1060 <term><varname>HomeAddress=</varname></term>
1061 <listitem>
1062 <para>Takes a boolean. Designates this address the "home address" as defined in
1063 <ulink url="https://tools.ietf.org/html/rfc6275">RFC 6275</ulink>.
1064 Supported only on IPv6. Defaults to false.</para>
1065 </listitem>
1066 </varlistentry>
1067 <varlistentry>
1068 <term><varname>DuplicateAddressDetection=</varname></term>
1069 <listitem>
1070 <para>Takes one of <literal>ipv4</literal>, <literal>ipv6</literal>,
1071 <literal>both</literal>, <literal>none</literal>. When <literal>ipv4</literal>,
1072 performs IPv4 Address Conflict Detection. See
1073 <ulink url="https://tools.ietf.org/html/rfc5227">RFC 5227</ulink>.
1074 When <literal>ipv6</literal>, performs IPv6 Duplicate Address Detection. See
1075 <ulink url="https://tools.ietf.org/html/rfc4862">RFC 4862</ulink>.
1076 Defaults to <literal>ipv6</literal>.</para>
1077 </listitem>
1078 </varlistentry>
1079 <varlistentry>
1080 <term><varname>ManageTemporaryAddress=</varname></term>
1081 <listitem>
1082 <para>Takes a boolean. If true the kernel manage temporary addresses created
1083 from this one as template on behalf of Privacy Extensions
1084 <ulink url="https://tools.ietf.org/html/rfc3041">RFC 3041</ulink>. For this to become
1085 active, the use_tempaddr sysctl setting has to be set to a value greater than zero.
1086 The given address needs to have a prefix length of 64. This flag allows using privacy
1087 extensions in a manually configured network, just like if stateless auto-configuration
1088 was active. Defaults to false.</para>
1089 </listitem>
1090 </varlistentry>
1091 <varlistentry>
1092 <term><varname>AddPrefixRoute=</varname></term>
1093 <listitem>
1094 <para>Takes a boolean. When true, the prefix route for the address is automatically added.
1095 Defaults to true.</para>
1096 </listitem>
1097 </varlistentry>
1098 <varlistentry>
1099 <term><varname>AutoJoin=</varname></term>
1100 <listitem>
1101 <para>Takes a boolean. Joining multicast group on ethernet level via
1102 <command>ip maddr</command> command would not work if we have an Ethernet switch that does
1103 IGMP snooping since the switch would not replicate multicast packets on ports that did not
1104 have IGMP reports for the multicast addresses. Linux vxlan interfaces created via
1105 <command>ip link add vxlan</command> or networkd's netdev kind vxlan have the group option
1106 that enables then to do the required join. By extending ip address command with option
1107 <literal>autojoin</literal> we can get similar functionality for openvswitch (OVS) vxlan
1108 interfaces as well as other tunneling mechanisms that need to receive multicast traffic.
1109 Defaults to <literal>no</literal>.</para>
1110 </listitem>
1111 </varlistentry>
1112 </variablelist>
1113 </refsect1>
1114
1115 <refsect1>
1116 <title>[Neighbor] Section Options</title>
1117 <para>A [Neighbor] section accepts the following keys. The neighbor section adds a permanent, static
1118 entry to the neighbor table (IPv6) or ARP table (IPv4) for the given hardware address on the links
1119 matched for the network. Specify several [Neighbor] sections to configure several static neighbors.
1120 </para>
1121
1122 <variablelist class='network-directives'>
1123 <varlistentry>
1124 <term><varname>Address=</varname></term>
1125 <listitem>
1126 <para>The IP address of the neighbor.</para>
1127 </listitem>
1128 </varlistentry>
1129 <varlistentry>
1130 <term><varname>LinkLayerAddress=</varname></term>
1131 <listitem>
1132 <para>The link layer address (MAC address or IP address) of the neighbor.</para>
1133 </listitem>
1134 </varlistentry>
1135 </variablelist>
1136 </refsect1>
1137
1138 <refsect1>
1139 <title>[IPv6AddressLabel] Section Options</title>
1140
1141 <para>An [IPv6AddressLabel] section accepts the following keys. Specify several [IPv6AddressLabel]
1142 sections to configure several address labels. IPv6 address labels are used for address selection. See
1143 <ulink url="https://tools.ietf.org/html/rfc3484">RFC 3484</ulink>. Precedence is managed by userspace,
1144 and only the label itself is stored in the kernel.</para>
1145
1146 <variablelist class='network-directives'>
1147 <varlistentry>
1148 <term><varname>Label=</varname></term>
1149 <listitem>
1150 <para>The label for the prefix, an unsigned integer in the range 04294967294.
1151 0xffffffff is reserved. This setting is mandatory.</para>
1152 </listitem>
1153 </varlistentry>
1154 <varlistentry>
1155 <term><varname>Prefix=</varname></term>
1156 <listitem>
1157 <para>IPv6 prefix is an address with a prefix length, separated by a slash <literal>/</literal> character.
1158 This key is mandatory. </para>
1159 </listitem>
1160 </varlistentry>
1161 </variablelist>
1162 </refsect1>
1163
1164 <refsect1>
1165 <title>[RoutingPolicyRule] Section Options</title>
1166
1167 <para>An [RoutingPolicyRule] section accepts the following keys. Specify several [RoutingPolicyRule]
1168 sections to configure several rules.</para>
1169
1170 <variablelist class='network-directives'>
1171 <varlistentry>
1172 <term><varname>TypeOfService=</varname></term>
1173 <listitem>
1174 <para>Takes a number between 0 and 255 that specifies the type of service to match.</para>
1175 </listitem>
1176 </varlistentry>
1177 <varlistentry>
1178 <term><varname>From=</varname></term>
1179 <listitem>
1180 <para>Specifies the source address prefix to match. Possibly followed by a slash and the prefix length.</para>
1181 </listitem>
1182 </varlistentry>
1183 <varlistentry>
1184 <term><varname>To=</varname></term>
1185 <listitem>
1186 <para>Specifies the destination address prefix to match. Possibly followed by a slash and the prefix length.</para>
1187 </listitem>
1188 </varlistentry>
1189 <varlistentry>
1190 <term><varname>FirewallMark=</varname></term>
1191 <listitem>
1192 <para>Specifies the iptables firewall mark value to match (a number between 1 and
1193 4294967295). Optionally, the firewall mask (also a number between 1 and 4294967295) can be
1194 suffixed with a slash (<literal>/</literal>), e.g., <literal>7/255</literal>.</para>
1195 </listitem>
1196 </varlistentry>
1197 <varlistentry>
1198 <term><varname>Table=</varname></term>
1199 <listitem>
1200 <para>Specifies the routing table identifier to lookup if the rule selector matches. Takes one of predefined names
1201 <literal>default</literal>, <literal>main</literal>, and <literal>local</literal>, and names defined in <varname>RouteTable=</varname>
1202 in <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1203 or a number between 1 and 4294967295. Defaults to <literal>main</literal>.</para>
1204 </listitem>
1205 </varlistentry>
1206 <varlistentry>
1207 <term><varname>Priority=</varname></term>
1208 <listitem>
1209 <para>Specifies the priority of this rule. <varname>Priority=</varname> is an unsigned
1210 integer in the range 04294967295. Higher number means lower priority, and rules get
1211 processed in order of increasing number. Defaults to unset, and the kernel will pick
1212 a value dynamically.</para>
1213 </listitem>
1214 </varlistentry>
1215 <varlistentry>
1216 <term><varname>IncomingInterface=</varname></term>
1217 <listitem>
1218 <para>Specifies incoming device to match. If the interface is loopback, the rule only matches packets originating from this host.</para>
1219 </listitem>
1220 </varlistentry>
1221 <varlistentry>
1222 <term><varname>OutgoingInterface=</varname></term>
1223 <listitem>
1224 <para>Specifies the outgoing device to match. The outgoing interface is only available for packets originating from local sockets that are bound to a device.</para>
1225 </listitem>
1226 </varlistentry>
1227 <varlistentry>
1228 <term><varname>SourcePort=</varname></term>
1229 <listitem>
1230 <para>Specifies the source IP port or IP port range match in forwarding information base (FIB) rules.
1231 A port range is specified by the lower and upper port separated by a dash. Defaults to unset.</para>
1232 </listitem>
1233 </varlistentry>
1234 <varlistentry>
1235 <term><varname>DestinationPort=</varname></term>
1236 <listitem>
1237 <para>Specifies the destination IP port or IP port range match in forwarding information base (FIB) rules.
1238 A port range is specified by the lower and upper port separated by a dash. Defaults to unset.</para>
1239 </listitem>
1240 </varlistentry>
1241 <varlistentry>
1242 <term><varname>IPProtocol=</varname></term>
1243 <listitem>
1244 <para>Specifies the IP protocol to match in forwarding information base (FIB) rules. Takes IP protocol name such as <literal>tcp</literal>,
1245 <literal>udp</literal> or <literal>sctp</literal>, or IP protocol number such as <literal>6</literal> for <literal>tcp</literal> or
1246 <literal>17</literal> for <literal>udp</literal>.
1247 Defaults to unset.</para>
1248 </listitem>
1249 </varlistentry>
1250 <varlistentry>
1251 <term><varname>InvertRule=</varname></term>
1252 <listitem>
1253 <para>A boolean. Specifies whether the rule is to be inverted. Defaults to false.</para>
1254 </listitem>
1255 </varlistentry>
1256 <varlistentry>
1257 <term><varname>Family=</varname></term>
1258 <listitem>
1259 <para>Takes a special value <literal>ipv4</literal>, <literal>ipv6</literal>, or
1260 <literal>both</literal>. By default, the address family is determined by the address
1261 specified in <varname>To=</varname> or <varname>From=</varname>. If neither
1262 <varname>To=</varname> nor <varname>From=</varname> are specified, then defaults to
1263 <literal>ipv4</literal>.</para>
1264 </listitem>
1265 </varlistentry>
1266 <varlistentry>
1267 <term><varname>User=</varname></term>
1268 <listitem>
1269 <para>Takes a username, a user ID, or a range of user IDs separated by a dash. Defaults to
1270 unset.</para>
1271 </listitem>
1272 </varlistentry>
1273 <varlistentry>
1274 <term><varname>SuppressPrefixLength=</varname></term>
1275 <listitem>
1276 <para>Takes a number <replaceable>N</replaceable> in the range 0128 and rejects routing
1277 decisions that have a prefix length of <replaceable>N</replaceable> or less. Defaults to
1278 unset.</para>
1279 </listitem>
1280 </varlistentry>
1281 <varlistentry>
1282 <term><varname>SuppressInterfaceGroup=</varname></term>
1283 <listitem>
1284 <para>Takes an integer in the range 02147483647 and rejects routing decisions that have
1285 an interface with the same group id. It has the same meaning as
1286 <option>suppress_ifgroup</option> in <command>ip rule</command>. Defaults to unset.</para>
1287 </listitem>
1288 </varlistentry>
1289 <varlistentry>
1290 <term><varname>Type=</varname></term>
1291 <listitem>
1292 <para>Specifies Routing Policy Database (RPDB) rule type. Takes one of <literal>blackhole</literal>,
1293 <literal>unreachable</literal> or <literal>prohibit</literal>.
1294 </para>
1295 </listitem>
1296 </varlistentry>
1297 </variablelist>
1298 </refsect1>
1299
1300 <refsect1>
1301 <title>[NextHop] Section Options</title>
1302 <para>The [NextHop] section is used to manipulate entries in the kernel's "nexthop" tables. The
1303 [NextHop] section accepts the following keys. Specify several [NextHop] sections to configure several
1304 hops.</para>
1305
1306 <variablelist class='network-directives'>
1307 <varlistentry>
1308 <term><varname>Id=</varname></term>
1309 <listitem>
1310 <para>The id of the next hop. Takes an unsigned integer in the range 14294967295. If left
1311 unspecified, then automatically chosen by kernel.</para>
1312 </listitem>
1313 </varlistentry>
1314 <varlistentry>
1315 <term><varname>Gateway=</varname></term>
1316 <listitem>
1317 <para>As in the [Network] section.</para>
1318 </listitem>
1319 </varlistentry>
1320 <varlistentry>
1321 <term><varname>Family=</varname></term>
1322 <listitem>
1323 <para>Takes one of the special values <literal>ipv4</literal> or <literal>ipv6</literal>.
1324 By default, the family is determined by the address specified in
1325 <varname>Gateway=</varname>. If <varname>Gateway=</varname> is not specified, then defaults
1326 to <literal>ipv4</literal>.</para>
1327 </listitem>
1328 </varlistentry>
1329 <varlistentry>
1330 <term><varname>OnLink=</varname></term>
1331 <listitem>
1332 <para>Takes a boolean. If set to true, the kernel does not have to check if the gateway is
1333 reachable directly by the current machine (i.e., attached to the local network), so that we
1334 can insert the nexthop in the kernel table without it being complained about. Defaults to
1335 <literal>no</literal>.</para>
1336 </listitem>
1337 </varlistentry>
1338 <varlistentry>
1339 <term><varname>Blackhole=</varname></term>
1340 <listitem>
1341 <para>Takes a boolean. If enabled, packets to the corresponding routes are discarded
1342 silently, and <varname>Gateway=</varname> cannot be specified. Defaults to
1343 <literal>no</literal>.</para>
1344 </listitem>
1345 </varlistentry>
1346 <varlistentry>
1347 <term><varname>Group=</varname></term>
1348 <listitem>
1349 <para>Takes a whitespace separated list of nexthop IDs. Each ID must be in the range
1350 14294967295. Optionally, each nexthop ID can take a weight after a colon
1351 (<literal><replaceable>id</replaceable><optional>:<replaceable>weight</replaceable></optional></literal>).
1352 The weight must be in the range 1255. If the weight is not specified, then it is assumed
1353 that the weight is 1. This setting cannot be specified with <varname>Gateway=</varname>,
1354 <varname>Family=</varname>, <varname>Blackhole=</varname>. This setting can be specified
1355 multiple times. If an empty string is assigned, then the all previous assignments are
1356 cleared. Defaults to unset.</para>
1357 </listitem>
1358 </varlistentry>
1359 </variablelist>
1360 </refsect1>
1361
1362 <refsect1>
1363 <title>[Route] Section Options</title>
1364 <para>The [Route] section accepts the following keys. Specify several [Route] sections to configure
1365 several routes.</para>
1366
1367 <variablelist class='network-directives'>
1368 <varlistentry>
1369 <term><varname>Gateway=</varname></term>
1370 <listitem>
1371 <para>Takes the gateway address or the special values <literal>_dhcp4</literal> and
1372 <literal>_ipv6ra</literal>. If <literal>_dhcp4</literal> or <literal>_ipv6ra</literal> is
1373 set, then the gateway address provided by DHCPv4 or IPv6 RA is used.</para>
1374 </listitem>
1375 </varlistentry>
1376 <varlistentry>
1377 <term><varname>GatewayOnLink=</varname></term>
1378 <listitem>
1379 <para>Takes a boolean. If set to true, the kernel does not have to check if the gateway is
1380 reachable directly by the current machine (i.e., attached to the local network), so that we
1381 can insert the route in the kernel table without it being complained about. Defaults to
1382 <literal>no</literal>.</para>
1383 </listitem>
1384 </varlistentry>
1385 <varlistentry>
1386 <term><varname>Destination=</varname></term>
1387 <listitem>
1388 <para>The destination prefix of the route. Possibly
1389 followed by a slash and the prefix length. If omitted, a
1390 full-length host route is assumed.</para>
1391 </listitem>
1392 </varlistentry>
1393 <varlistentry>
1394 <term><varname>Source=</varname></term>
1395 <listitem>
1396 <para>The source prefix of the route. Possibly followed by
1397 a slash and the prefix length. If omitted, a full-length
1398 host route is assumed.</para>
1399 </listitem>
1400 </varlistentry>
1401 <varlistentry>
1402 <term><varname>Metric=</varname></term>
1403 <listitem>
1404 <para>The metric of the route. Takes an unsigned integer in the range 04294967295.
1405 Defaults to unset, and the kernel's default will be used.</para>
1406 </listitem>
1407 </varlistentry>
1408 <varlistentry>
1409 <term><varname>IPv6Preference=</varname></term>
1410 <listitem>
1411 <para>Specifies the route preference as defined in <ulink
1412 url="https://tools.ietf.org/html/rfc4191">RFC 4191</ulink> for Router Discovery messages. Which
1413 can be one of <literal>low</literal> the route has a lowest priority, <literal>medium</literal>
1414 the route has a default priority or <literal>high</literal> the route has a highest priority.
1415 </para>
1416 </listitem>
1417 </varlistentry>
1418 <varlistentry>
1419 <term><varname>Scope=</varname></term>
1420 <listitem>
1421 <para>The scope of the IPv4 route, which can be <literal>global</literal>, <literal>site</literal>,
1422 <literal>link</literal>, <literal>host</literal>, or
1423 <literal>nowhere</literal>:</para>
1424 <itemizedlist>
1425 <listitem><para><literal>global</literal> means the route can reach
1426 hosts more than one hop away.</para></listitem>
1427
1428 <listitem><para><literal>site</literal> means an interior route in
1429 the local autonomous system.</para></listitem>
1430
1431 <listitem><para><literal>link</literal> means the route can only
1432 reach hosts on the local network (one hop away).</para></listitem>
1433
1434 <listitem><para><literal>host</literal> means the route will not
1435 leave the local machine (used for internal addresses like
1436 127.0.0.1).</para></listitem>
1437
1438 <listitem><para><literal>nowhere</literal> means the destination
1439 doesn't exist.</para></listitem>
1440 </itemizedlist>
1441 <para>For IPv4 route, defaults to <literal>host</literal> if <varname>Type=</varname> is
1442 <literal>local</literal> or <literal>nat</literal>,
1443 and <literal>link</literal> if <varname>Type=</varname> is
1444 <literal>broadcast</literal>, <literal>multicast</literal>, or <literal>anycast</literal>.
1445 In other cases, defaults to <literal>global</literal>. The value is
1446 not used for IPv6.</para>
1447 </listitem>
1448 </varlistentry>
1449 <varlistentry>
1450 <term><varname>PreferredSource=</varname></term>
1451 <listitem>
1452 <para>The preferred source address of the route. The address
1453 must be in the format described in
1454 <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.</para>
1455 </listitem>
1456 </varlistentry>
1457 <varlistentry>
1458 <term><varname>Table=</varname></term>
1459 <listitem>
1460 <para>The table identifier for the route. Takes one of predefined names <literal>default</literal>, <literal>main</literal>,
1461 and <literal>local</literal>, and names defined in <varname>RouteTable=</varname> in <citerefentry><refentrytitle>networkd.conf</refentrytitle>
1462 <manvolnum>5</manvolnum></citerefentry>, or a number between 1 and 4294967295. The table can be retrieved using
1463 <command>ip route show table <replaceable>num</replaceable></command>. If unset and <varname>Type=</varname> is <literal>local</literal>,
1464 <literal>broadcast</literal>, <literal>anycast</literal>, or <literal>nat</literal>, then <literal>local</literal> is used.
1465 In other cases, defaults to <literal>main</literal>.
1466 </para>
1467 </listitem>
1468 </varlistentry>
1469 <varlistentry>
1470 <term><varname>Protocol=</varname></term>
1471 <listitem>
1472 <para>The protocol identifier for the route. Takes a number between 0 and 255 or the special values
1473 <literal>kernel</literal>, <literal>boot</literal>, <literal>static</literal>,
1474 <literal>ra</literal> and <literal>dhcp</literal>. Defaults to <literal>static</literal>.
1475 </para>
1476 </listitem>
1477 </varlistentry>
1478 <varlistentry>
1479 <term><varname>Type=</varname></term>
1480 <listitem>
1481 <para>Specifies the type for the route. Takes one of <literal>unicast</literal>,
1482 <literal>local</literal>, <literal>broadcast</literal>, <literal>anycast</literal>,
1483 <literal>multicast</literal>, <literal>blackhole</literal>, <literal>unreachable</literal>,
1484 <literal>prohibit</literal>, <literal>throw</literal>, <literal>nat</literal>, and
1485 <literal>xresolve</literal>. If <literal>unicast</literal>, a regular route is defined, i.e. a
1486 route indicating the path to take to a destination network address. If <literal>blackhole</literal>, packets
1487 to the defined route are discarded silently. If <literal>unreachable</literal>, packets to the defined route
1488 are discarded and the ICMP message "Host Unreachable" is generated. If <literal>prohibit</literal>, packets
1489 to the defined route are discarded and the ICMP message "Communication Administratively Prohibited" is
1490 generated. If <literal>throw</literal>, route lookup in the current routing table will fail and the route
1491 selection process will return to Routing Policy Database (RPDB). Defaults to <literal>unicast</literal>.
1492 </para>
1493 </listitem>
1494 </varlistentry>
1495 <varlistentry>
1496 <term><varname>InitialCongestionWindow=</varname></term>
1497 <listitem>
1498 <para>The TCP initial congestion window is used during the start of a TCP connection.
1499 During the start of a TCP session, when a client requests a resource, the server's initial
1500 congestion window determines how many packets will be sent during the initial burst of data
1501 without waiting for acknowledgement. Takes a number between 1 and 1023. Note that 100 is
1502 considered an extremely large value for this option. When unset, the kernel's default
1503 (typically 10) will be used.</para>
1504 </listitem>
1505 </varlistentry>
1506 <varlistentry>
1507 <term><varname>InitialAdvertisedReceiveWindow=</varname></term>
1508 <listitem>
1509 <para>The TCP initial advertised receive window is the amount of receive data (in bytes)
1510 that can initially be buffered at one time on a connection. The sending host can send only
1511 that amount of data before waiting for an acknowledgment and window update from the
1512 receiving host. Takes a number between 1 and 1023. Note that 100 is considered an extremely
1513 large value for this option. When unset, the kernel's default will be used.</para>
1514 </listitem>
1515 </varlistentry>
1516 <varlistentry>
1517 <term><varname>QuickAck=</varname></term>
1518 <listitem>
1519 <para>Takes a boolean. When true enables TCP quick ack mode for the route. When unset, the kernel's default will be used.
1520 </para>
1521 </listitem>
1522 </varlistentry>
1523 <varlistentry>
1524 <term><varname>FastOpenNoCookie=</varname></term>
1525 <listitem>
1526 <para>Takes a boolean. When true enables TCP fastopen without a cookie on a per-route basis.
1527 When unset, the kernel's default will be used.
1528 </para>
1529 </listitem>
1530 </varlistentry>
1531 <varlistentry>
1532 <term><varname>TTLPropagate=</varname></term>
1533 <listitem>
1534 <para>Takes a boolean. When true enables TTL propagation at Label Switched Path (LSP) egress.
1535 When unset, the kernel's default will be used.
1536 </para>
1537 </listitem>
1538 </varlistentry>
1539 <varlistentry>
1540 <term><varname>MTUBytes=</varname></term>
1541 <listitem>
1542 <para>The maximum transmission unit in bytes to set for the
1543 route. The usual suffixes K, M, G, are supported and are
1544 understood to the base of 1024.</para>
1545 <para>Note that if IPv6 is enabled on the interface, and the MTU is chosen
1546 below 1280 (the minimum MTU for IPv6) it will automatically be increased to this value.</para>
1547 </listitem>
1548 </varlistentry>
1549 <varlistentry>
1550 <term><varname>IPServiceType=</varname></term>
1551 <listitem>
1552 <para>Takes string; <literal>CS6</literal> or <literal>CS4</literal>. Used to set IP
1553 service type to CS6 (network control) or CS4 (Realtime). Defaults to CS6.</para>
1554 </listitem>
1555 </varlistentry>
1556 <varlistentry>
1557 <term><varname>TCPAdvertisedMaximumSegmentSize=</varname></term>
1558 <listitem>
1559 <para>Specifies the Path MSS (in bytes) hints given on TCP layer. The usual suffixes K, M, G, are
1560 supported and are understood to the base of 1024. An unsigned integer in the range 14294967294.
1561 When unset, the kernel's default will be used.</para>
1562 </listitem>
1563 </varlistentry>
1564 <varlistentry>
1565 <term><varname>MultiPathRoute=<replaceable>address</replaceable>[@<replaceable>name</replaceable>] [<replaceable>weight</replaceable>]</varname></term>
1566 <listitem>
1567 <para>Configures multipath route. Multipath routing is the technique of using multiple
1568 alternative paths through a network. Takes gateway address. Optionally, takes a network
1569 interface name or index separated with <literal>@</literal>, and a weight in 1..256 for
1570 this multipath route separated with whitespace. This setting can be specified multiple
1571 times. If an empty string is assigned, then the all previous assignments are cleared.</para>
1572 </listitem>
1573 </varlistentry>
1574 <varlistentry>
1575 <term><varname>NextHop=</varname></term>
1576 <listitem>
1577 <para>Specifies the nexthop id. Takes an unsigned integer in the range 14294967295.
1578 If set, the corresponding [NextHop] section must be configured. Defaults to unset.</para>
1579 </listitem>
1580 </varlistentry>
1581 </variablelist>
1582 </refsect1>
1583
1584 <refsect1>
1585 <title>[DHCPv4] Section Options</title>
1586 <para>The [DHCPv4] section configures the DHCPv4 client, if it is enabled with the
1587 <varname>DHCP=</varname> setting described above:</para>
1588
1589 <variablelist class='network-directives'>
1590
1591 <!-- DHCP packet contents -->
1592
1593 <varlistentry>
1594 <term><varname>SendHostname=</varname></term>
1595 <listitem>
1596 <para>When true (the default), the machine's hostname (or the value specified with
1597 <varname>Hostname=</varname>, described below) will be sent to the DHCP server. Note that the
1598 hostname must consist only of 7-bit ASCII lower-case characters and no spaces or dots, and be
1599 formatted as a valid DNS domain name. Otherwise, the hostname is not sent even if this option is
1600 true.</para>
1601 </listitem>
1602 </varlistentry>
1603
1604 <varlistentry>
1605 <term><varname>Hostname=</varname></term>
1606 <listitem>
1607 <para>Use this value for the hostname which is sent to the DHCP server, instead of machine's hostname.
1608 Note that the specified hostname must consist only of 7-bit ASCII lower-case characters and
1609 no spaces or dots, and be formatted as a valid DNS domain name.</para>
1610 </listitem>
1611 </varlistentry>
1612
1613 <varlistentry>
1614 <term><varname>MUDURL=</varname></term>
1615 <listitem>
1616 <para>When configured, the specified Manufacturer Usage Description (MUD) URL will be sent to the
1617 DHCPv4 server. Takes a URL of length up to 255 characters. A superficial verification that the
1618 string is a valid URL will be performed. DHCPv4 clients are intended to have at most one MUD URL
1619 associated with them. See <ulink url="https://tools.ietf.org/html/rfc8520">RFC 8520</ulink>.
1620 </para>
1621
1622 <para>MUD is an embedded software standard defined by the IETF that allows IoT device makers to
1623 advertise device specifications, including the intended communication patterns for their device
1624 when it connects to the network. The network can then use this to author a context-specific
1625 access policy, so the device functions only within those parameters.</para>
1626 </listitem>
1627 </varlistentry>
1628
1629 <varlistentry>
1630 <term><varname>ClientIdentifier=</varname></term>
1631 <listitem>
1632 <para>The DHCPv4 client identifier to use. Takes one of <option>mac</option>,
1633 <option>duid</option> or <option>duid-only</option>. If set to <option>mac</option>, the
1634 MAC address of the link is used. If set to <option>duid</option>, an RFC4361-compliant Client
1635 ID, which is the combination of IAID and DUID (see below), is used. If set to
1636 <option>duid-only</option>, only DUID is used, this may not be RFC compliant, but some setups
1637 may require to use this. Defaults to <option>duid</option>.</para>
1638 </listitem>
1639 </varlistentry>
1640
1641 <varlistentry>
1642 <term><varname>VendorClassIdentifier=</varname></term>
1643 <listitem>
1644 <para>The vendor class identifier used to identify vendor
1645 type and configuration.</para>
1646 </listitem>
1647 </varlistentry>
1648
1649 <varlistentry>
1650 <term><varname>UserClass=</varname></term>
1651 <listitem>
1652 <para>A DHCPv4 client can use UserClass option to identify the type or category of user or
1653 applications it represents. The information contained in this option is a string that represents
1654 the user class of which the client is a member. Each class sets an identifying string of
1655 information to be used by the DHCP service to classify clients. Takes a whitespace-separated list
1656 of strings.</para>
1657 </listitem>
1658 </varlistentry>
1659
1660 <varlistentry>
1661 <term><varname>DUIDType=</varname></term>
1662 <listitem>
1663 <para>Override the global <varname>DUIDType=</varname> setting for this network. See
1664 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
1665 for a description of possible values.</para>
1666 </listitem>
1667 </varlistentry>
1668
1669 <varlistentry>
1670 <term><varname>DUIDRawData=</varname></term>
1671 <listitem>
1672 <para>Override the global <varname>DUIDRawData=</varname> setting for this network. See
1673 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
1674 for a description of possible values.</para>
1675 </listitem>
1676 </varlistentry>
1677
1678 <varlistentry>
1679 <term><varname>IAID=</varname></term>
1680 <listitem>
1681 <para>The DHCP Identity Association Identifier (IAID) for the interface, a 32-bit unsigned
1682 integer.</para>
1683 </listitem>
1684 </varlistentry>
1685
1686 <varlistentry>
1687 <term><varname>Anonymize=</varname></term>
1688 <listitem>
1689 <para>Takes a boolean. When true, the options sent to the DHCP server will follow the
1690 <ulink url="https://tools.ietf.org/html/rfc7844">RFC 7844</ulink> (Anonymity Profiles for
1691 DHCP Clients) to minimize disclosure of identifying information. Defaults to false.</para>
1692
1693 <para>This option should only be set to true when <varname>MACAddressPolicy=</varname> is
1694 set to <option>random</option> (see
1695 <citerefentry><refentrytitle>systemd.link</refentrytitle><manvolnum>5</manvolnum></citerefentry>).
1696 </para>
1697
1698 <para>When true, <varname>SendHostname=</varname>, <varname>ClientIdentifier=</varname>,
1699 <varname>VendorClassIdentifier=</varname>, <varname>UserClass=</varname>,
1700 <varname>RequestOptions=</varname>, <varname>SendOption=</varname>,
1701 <varname>SendVendorOption=</varname>, and <varname>MUDURL=</varname> are ignored.</para>
1702
1703 <para>With this option enabled DHCP requests will mimic those generated by Microsoft
1704 Windows, in order to reduce the ability to fingerprint and recognize installations. This
1705 means DHCP request sizes will grow and lease data will be more comprehensive than normally,
1706 though most of the requested data is not actually used.</para>
1707 </listitem>
1708 </varlistentry>
1709
1710 <varlistentry>
1711 <term><varname>RequestOptions=</varname></term>
1712 <listitem>
1713 <para>Sets request options to be sent to the server in the DHCPv4 request options list. A
1714 whitespace-separated list of integers in the range 1254. Defaults to unset.</para>
1715 </listitem>
1716 </varlistentry>
1717
1718 <varlistentry>
1719 <term><varname>SendOption=</varname></term>
1720 <listitem>
1721 <para>Send an arbitrary raw option in the DHCPv4 request. Takes a DHCP option number, data type
1722 and data separated with a colon
1723 (<literal><replaceable>option</replaceable>:<replaceable>type</replaceable>:<replaceable>value</replaceable></literal>).
1724 The option number must be an integer in the range 1254. The type takes one of
1725 <literal>uint8</literal>, <literal>uint16</literal>, <literal>uint32</literal>,
1726 <literal>ipv4address</literal>, or <literal>string</literal>. Special characters in the data
1727 string may be escaped using <ulink
1728 url="https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
1729 escapes</ulink>. This setting can be specified multiple times. If an empty string is specified,
1730 then all options specified earlier are cleared. Defaults to unset.</para>
1731 </listitem>
1732 </varlistentry>
1733
1734 <varlistentry>
1735 <term><varname>SendVendorOption=</varname></term>
1736 <listitem>
1737 <para>Send an arbitrary vendor option in the DHCPv4 request. Takes a DHCP option number, data
1738 type and data separated with a colon
1739 (<literal><replaceable>option</replaceable>:<replaceable>type</replaceable>:<replaceable>value</replaceable></literal>).
1740 The option number must be an integer in the range 1254. The type takes one of
1741 <literal>uint8</literal>, <literal>uint16</literal>, <literal>uint32</literal>,
1742 <literal>ipv4address</literal>, or <literal>string</literal>. Special characters in the data
1743 string may be escaped using <ulink
1744 url="https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
1745 escapes</ulink>. This setting can be specified multiple times. If an empty string is specified,
1746 then all options specified earlier are cleared. Defaults to unset.</para>
1747 </listitem>
1748 </varlistentry>
1749
1750 <!-- How to use the DHCP lease -->
1751
1752 <varlistentry>
1753 <term><varname>Label=</varname></term>
1754 <listitem>
1755 <para>Specifies the label for the IPv4 address received from the DHCP server.
1756 The label must be a 7-bit ASCII string with a length of 115 characters.
1757 Defaults to unset.</para>
1758 </listitem>
1759 </varlistentry>
1760
1761 <varlistentry>
1762 <term><varname>UseDNS=</varname></term>
1763 <listitem>
1764 <para>When true (the default), the DNS servers received from the DHCP server will be used.</para>
1765
1766 <para>This corresponds to the <option>nameserver</option>
1767 option in <citerefentry
1768 project='man-pages'><refentrytitle>resolv.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
1769 </listitem>
1770 </varlistentry>
1771
1772 <varlistentry>
1773 <term><varname>RoutesToDNS=</varname></term>
1774 <listitem>
1775 <para>When true, the routes to the DNS servers received from the DHCP server will be
1776 configured. When <varname>UseDNS=</varname> is disabled, this setting is ignored.
1777 Defaults to true.</para>
1778 </listitem>
1779 </varlistentry>
1780
1781 <varlistentry>
1782 <term><varname>UseNTP=</varname></term>
1783 <listitem>
1784 <para>When true (the default), the NTP servers received from the DHCP server will be used by
1785 <filename>systemd-timesyncd.service</filename>.</para>
1786 </listitem>
1787 </varlistentry>
1788
1789 <varlistentry>
1790 <term><varname>RoutesToNTP=</varname></term>
1791 <listitem>
1792 <para>When true, the routes to the NTP servers received from the DHCP server will be
1793 configured. When <varname>UseNTP=</varname> is disabled, this setting is ignored.
1794 Defaults to true.</para>
1795 </listitem>
1796 </varlistentry>
1797
1798 <varlistentry>
1799 <term><varname>UseSIP=</varname></term>
1800 <listitem>
1801 <para>When true (the default), the SIP servers received from the DHCP server will be collected
1802 and made available to client programs.</para>
1803 </listitem>
1804 </varlistentry>
1805
1806 <varlistentry>
1807 <term><varname>UseMTU=</varname></term>
1808 <listitem>
1809 <para>When true, the interface maximum transmission unit from the DHCP server will be used on the
1810 current link. If <varname>MTUBytes=</varname> is set, then this setting is ignored. Defaults to
1811 false.</para>
1812 <para>Note, some drivers will reset the interfaces if the MTU is changed. For such
1813 interfaces, please try to use <varname>IgnoreCarrierLoss=</varname> with a short timespan,
1814 e.g. <literal>3 seconds</literal>.</para>
1815 </listitem>
1816 </varlistentry>
1817
1818 <varlistentry>
1819 <term><varname>UseHostname=</varname></term>
1820 <listitem>
1821 <para>When true (the default), the hostname received from the DHCP server will be set as the
1822 transient hostname of the system.</para>
1823 </listitem>
1824 </varlistentry>
1825
1826 <varlistentry>
1827 <term><varname>UseDomains=</varname></term>
1828 <listitem>
1829 <para>Takes a boolean, or the special value <option>route</option>. When true, the domain name
1830 received from the DHCP server will be used as DNS search domain over this link, similar to the
1831 effect of the <option>Domains=</option> setting. If set to <option>route</option>, the domain
1832 name received from the DHCP server will be used for routing DNS queries only, but not for
1833 searching, similar to the effect of the <option>Domains=</option> setting when the argument is
1834 prefixed with <literal>~</literal>. Defaults to false.</para>
1835
1836 <para>It is recommended to enable this option only on trusted networks, as setting this affects
1837 resolution of all hostnames, in particular of single-label names. It is generally safer to use
1838 the supplied domain only as routing domain, rather than as search domain, in order to not have it
1839 affect local resolution of single-label names.</para>
1840
1841 <para>When set to true, this setting corresponds to the <option>domain</option> option in
1842 <citerefentry project='man-pages'><refentrytitle>resolv.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
1843 </para>
1844 </listitem>
1845 </varlistentry>
1846
1847 <varlistentry>
1848 <term><varname>UseRoutes=</varname></term>
1849 <listitem>
1850 <para>When true (the default), the static routes will be requested from the DHCP server and added
1851 to the routing table with a metric of 1024, and a scope of <option>global</option>,
1852 <option>link</option> or <option>host</option>, depending on the route's destination and
1853 gateway. If the destination is on the local host, e.g., 127.x.x.x, or the same as the link's own
1854 address, the scope will be set to <option>host</option>. Otherwise if the gateway is null (a
1855 direct route), a <option>link</option> scope will be used. For anything else, scope defaults to
1856 <option>global</option>.</para>
1857 </listitem>
1858 </varlistentry>
1859
1860 <varlistentry>
1861 <term><varname>RouteMetric=</varname></term>
1862 <listitem>
1863 <para>Set the routing metric for routes specified by the DHCP server (including the prefix
1864 route added for the specified prefix). Takes an unsigned integer in the range 04294967295.
1865 Defaults to 1024.</para>
1866 </listitem>
1867 </varlistentry>
1868
1869 <varlistentry>
1870 <term><varname>RouteTable=<replaceable>num</replaceable></varname></term>
1871 <listitem>
1872 <para>The table identifier for DHCP routes (a number between 1 and 4294967295, or 0 to unset).
1873 The table can be retrieved using <command>ip route show table <replaceable>num</replaceable></command>.
1874 </para>
1875 <para>When used in combination with <varname>VRF=</varname>, the
1876 VRF's routing table is used when this parameter is not specified.
1877 </para>
1878 </listitem>
1879 </varlistentry>
1880
1881 <varlistentry>
1882 <term><varname>RouteMTUBytes=</varname></term>
1883 <listitem>
1884 <para>Specifies the MTU for the DHCP routes. Please see the [Route] section for further details.</para>
1885 </listitem>
1886 </varlistentry>
1887
1888 <varlistentry>
1889 <term><varname>UseGateway=</varname></term>
1890 <listitem>
1891 <para>When true, the gateway will be requested from the DHCP server and added to the routing
1892 table with a metric of 1024, and a scope of <option>link</option>. When unset, the value specified
1893 with <varname>UseRoutes=</varname> is used.</para>
1894 </listitem>
1895 </varlistentry>
1896
1897 <varlistentry>
1898 <term><varname>UseTimezone=</varname></term>
1899 <listitem><para>When true, the timezone received from the DHCP server will be set as timezone of
1900 the local system. Defaults to false.</para></listitem>
1901 </varlistentry>
1902
1903 <varlistentry>
1904 <term><varname>FallbackLeaseLifetimeSec=</varname></term>
1905 <listitem>
1906 <para>Allows to set DHCPv4 lease lifetime when DHCPv4 server does not send the lease lifetime.
1907 Takes one of <literal>forever</literal> or <literal>infinity</literal>. The latter means that the
1908 address never expires. Defaults to unset.</para>
1909 </listitem>
1910 </varlistentry>
1911
1912 <!-- How to communicate with the server -->
1913
1914 <varlistentry>
1915 <term><varname>RequestBroadcast=</varname></term>
1916 <listitem>
1917 <para>Request the server to use broadcast messages before the IP address has been configured.
1918 This is necessary for devices that cannot receive RAW packets, or that cannot receive packets at
1919 all before an IP address has been configured. On the other hand, this must not be enabled on
1920 networks where broadcasts are filtered out.</para>
1921 </listitem>
1922 </varlistentry>
1923
1924 <varlistentry>
1925 <term><varname>MaxAttempts=</varname></term>
1926 <listitem>
1927 <para>Specifies how many times the DHCPv4 client configuration should be attempted. Takes a
1928 number or <literal>infinity</literal>. Defaults to <literal>infinity</literal>. Note that the
1929 time between retries is increased exponentially, up to approximately one per minute, so the
1930 network will not be overloaded even if this number is high. The default is suitable in most
1931 circumstances.</para>
1932 </listitem>
1933 </varlistentry>
1934
1935 <varlistentry>
1936 <term><varname>ListenPort=</varname></term>
1937 <listitem>
1938 <para>Set the port from which the DHCP client packets originate.</para>
1939 </listitem>
1940 </varlistentry>
1941
1942 <varlistentry>
1943 <term><varname>DenyList=</varname></term>
1944 <listitem>
1945 <para>A whitespace-separated list of IPv4 addresses. Each address can optionally take a
1946 prefix length after <literal>/</literal>. DHCP offers from servers in the list are
1947 rejected. Note that if <varname>AllowList=</varname> is configured then
1948 <varname>DenyList=</varname> is ignored.</para>
1949 </listitem>
1950 </varlistentry>
1951
1952 <varlistentry>
1953 <term><varname>AllowList=</varname></term>
1954 <listitem>
1955 <para>A whitespace-separated list of IPv4 addresses. Each address can optionally take a
1956 prefix length after <literal>/</literal>. DHCP offers from servers in the list are
1957 accepted.</para>
1958 </listitem>
1959 </varlistentry>
1960
1961 <varlistentry>
1962 <term><varname>SendRelease=</varname></term>
1963 <listitem>
1964 <para>When true, the DHCPv4 client sends a DHCP release packet when it stops. Defaults to
1965 true.</para>
1966 </listitem>
1967 </varlistentry>
1968
1969 <varlistentry>
1970 <term><varname>SendDecline=</varname></term>
1971 <listitem>
1972 <para>A boolean. When <literal>true</literal>, the DHCPv4 client receives the IP address from the
1973 DHCP server. After a new IP is received, the DHCPv4 client performs IPv4 Duplicate Address
1974 Detection. If duplicate use is detected, the DHCPv4 client rejects the IP by sending a
1975 <constant>DHCPDECLINE</constant> packet and tries to obtain an IP address again. See <ulink
1976 url="https://tools.ietf.org/html/rfc5227">RFC 5227</ulink>. Defaults to
1977 <literal>unset</literal>.</para>
1978 </listitem>
1979 </varlistentry>
1980
1981 </variablelist>
1982 </refsect1>
1983
1984 <refsect1>
1985 <title>[DHCPv6] Section Options</title>
1986 <para>The [DHCPv6] section configures the DHCPv6 client, if it is enabled with the
1987 <varname>DHCP=</varname> setting described above, or invoked by the IPv6 Router Advertisement:</para>
1988
1989 <variablelist class='network-directives'>
1990
1991 <!-- DHCP packet contents -->
1992
1993 <varlistentry>
1994 <term><varname>MUDURL=</varname></term>
1995 <term><varname>IAID=</varname></term>
1996 <term><varname>DUIDType=</varname></term>
1997 <term><varname>DUIDRawData=</varname></term>
1998 <term><varname>RequestOptions=</varname></term>
1999 <listitem>
2000 <para>As in the [DHCPv4] section.</para>
2001 </listitem>
2002 </varlistentry>
2003
2004 <varlistentry>
2005 <term><varname>SendOption=</varname></term>
2006 <listitem>
2007 <para>As in the [DHCPv4] section, however because DHCPv6 uses 16-bit fields to store option
2008 numbers, the option number is an integer in the range 165536.</para>
2009 </listitem>
2010 </varlistentry>
2011
2012 <varlistentry>
2013 <term><varname>SendVendorOption=</varname></term>
2014 <listitem>
2015 <para>Send an arbitrary vendor option in the DHCPv6 request. Takes an enterprise identifier, DHCP
2016 option number, data type, and data separated with a colon (<literal><replaceable>enterprise
2017 identifier</replaceable>:<replaceable>option</replaceable>:<replaceable>type</replaceable>:<replaceable>value</replaceable></literal>).
2018 Enterprise identifier is an unsigned integer in the range 14294967294. The option number must be
2019 an integer in the range 1254. Data type takes one of <literal>uint8</literal>,
2020 <literal>uint16</literal>, <literal>uint32</literal>, <literal>ipv4address</literal>,
2021 <literal>ipv6address</literal>, or <literal>string</literal>. Special characters in the data
2022 string may be escaped using <ulink
2023 url="https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
2024 escapes</ulink>. This setting can be specified multiple times. If an empty string is specified,
2025 then all options specified earlier are cleared. Defaults to unset.</para>
2026 </listitem>
2027 </varlistentry>
2028
2029 <varlistentry>
2030 <term><varname>UserClass=</varname></term>
2031 <listitem>
2032 <para>A DHCPv6 client can use User Class option to identify the type or category of user or
2033 applications it represents. The information contained in this option is a string that represents
2034 the user class of which the client is a member. Each class sets an identifying string of
2035 information to be used by the DHCP service to classify clients. Special characters in the data
2036 string may be escaped using <ulink
2037 url="https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
2038 escapes</ulink>. This setting can be specified multiple times. If an empty string is specified,
2039 then all options specified earlier are cleared. Takes a whitespace-separated list of
2040 strings. Note that currently <constant>NUL</constant> bytes are not allowed.</para>
2041 </listitem>
2042 </varlistentry>
2043
2044 <varlistentry>
2045 <term><varname>VendorClass=</varname></term>
2046 <listitem>
2047 <para>A DHCPv6 client can use VendorClass option to identify the vendor that manufactured the
2048 hardware on which the client is running. The information contained in the data area of this
2049 option is contained in one or more opaque fields that identify details of the hardware
2050 configuration. Takes a whitespace-separated list of strings.</para>
2051 </listitem>
2052 </varlistentry>
2053
2054 <varlistentry>
2055 <term><varname>PrefixDelegationHint=</varname></term>
2056 <listitem>
2057 <para>Takes an IPv6 address with prefix length in the same format as the
2058 <varname>Address=</varname> in the [Network] section. The DHCPv6 client will include a prefix
2059 hint in the DHCPv6 solicitation sent to the server. The prefix length must be in the range
2060 1128. Defaults to unset.</para>
2061 </listitem>
2062 </varlistentry>
2063
2064 <!-- How to use the DHCP lease -->
2065
2066 <varlistentry>
2067 <term><varname>UseAddress=</varname></term>
2068 <listitem>
2069 <para>When true (the default), the IP addresses provided by the DHCPv6 server will be
2070 assigned.</para>
2071 </listitem>
2072 </varlistentry>
2073
2074 <varlistentry>
2075 <term><varname>UseDelegatedPrefix=</varname></term>
2076 <listitem>
2077 <para>When true (the default), the client will request the DHCPv6 server to delegate
2078 prefixes. If the server provides prefixes to be delegated, then subnets of the prefixes are
2079 assigned to the interfaces which enables <varname>DHCPv6PrefixDelegation=</varname>.
2080 See also <varname>DHCPv6PrefixDelegation=</varname> in [Network] section,
2081 [DHCPv6PrefixDelegation] section, and
2082 <ulink url="https://www.rfc-editor.org/rfc/rfc8415.html#section-6.3">RFC 8415</ulink>.
2083 </para>
2084 </listitem>
2085 </varlistentry>
2086
2087 <varlistentry>
2088 <term><varname>RouteMetric=</varname></term>
2089 <term><varname>UseDNS=</varname></term>
2090 <term><varname>UseNTP=</varname></term>
2091 <term><varname>UseHostname=</varname></term>
2092 <term><varname>UseDomains=</varname></term>
2093 <listitem>
2094 <para>As in the [DHCPv4] section.</para>
2095 </listitem>
2096 </varlistentry>
2097
2098 <!-- How to communicate with the server -->
2099
2100 <varlistentry>
2101 <term><varname>WithoutRA=</varname></term>
2102 <listitem>
2103 <para>Allows DHCPv6 client to start without router advertisements's managed or other
2104 address configuration flag. Takes one of <literal>no</literal>, <literal>solicit</literal>
2105 or <literal>information-request</literal>. If this is not specified,
2106 <literal>solicit</literal> is used when <varname>DHCPv6PrefixDelegation=</varname> is
2107 enabled and <varname>UplinkInterface=:self</varname> is specified in the
2108 [DHCPv6PrefixDelegation] section. Otherwise, defaults to <literal>no</literal>, and the
2109 DHCPv6 client will be started when an RA is received. See also
2110 <varname>DHCPv6Client=</varname> setting in the [IPv6AcceptRA] section.</para>
2111 </listitem>
2112 </varlistentry>
2113 </variablelist>
2114 </refsect1>
2115
2116 <refsect1>
2117 <title>[DHCPv6PrefixDelegation] Section Options</title>
2118 <para>The [DHCPv6PrefixDelegation] section configures delegated prefixes assigned by DHCPv6 server.
2119 The settings in this section are used only when <varname>DHCPv6PrefixDelegation=</varname> setting
2120 is enabled.</para>
2121
2122 <variablelist class='network-directives'>
2123 <varlistentry>
2124 <term><varname>UplinkInterface=</varname></term>
2125 <listitem>
2126 <para>Specifies the name or the index of the uplink interface, or one of the special values
2127 <literal>:self</literal> and <literal>:auto</literal>. When <literal>:self</literal>, the
2128 interface itself is considered the uplink interface, and
2129 <varname>WithoutRA=solicit</varname> is implied if the setting is not explicitly specified.
2130 When <literal>:auto</literal>, the first link which acquired prefixes to be delegated from
2131 the DHCPv6 server is selected. Defaults to <literal>:auto</literal>.</para>
2132 </listitem>
2133 </varlistentry>
2134
2135 <varlistentry>
2136 <term><varname>SubnetId=</varname></term>
2137 <listitem>
2138 <para>Configure a specific subnet ID on the interface from a (previously) received prefix
2139 delegation. You can either set "auto" (the default) or a specific subnet ID (as defined in
2140 <ulink url="https://tools.ietf.org/html/rfc4291#section-2.5.4">RFC 4291</ulink>, section
2141 2.5.4), in which case the allowed value is hexadecimal, from 0 to 0x7fffffffffffffff
2142 inclusive.</para>
2143 </listitem>
2144 </varlistentry>
2145
2146 <varlistentry>
2147 <term><varname>Announce=</varname></term>
2148 <listitem>
2149 <para>Takes a boolean. When enabled, and <varname>IPv6SendRA=</varname> in [Network] section
2150 is enabled, the delegated prefixes are distributed through the IPv6 Router Advertisement.
2151 Defaults to yes.</para>
2152 </listitem>
2153 </varlistentry>
2154
2155 <varlistentry>
2156 <term><varname>Assign=</varname></term>
2157 <listitem>
2158 <para>Takes a boolean. Specifies whether to add an address from the delegated prefixes which
2159 are received from the WAN interface by the DHCPv6 Prefix Delegation. When true (on LAN
2160 interfce), the EUI-64 algorithm will be used by default to form an interface identifier from
2161 the delegated prefixes. See also <varname>Token=</varname> setting below. Defaults to yes.
2162 </para>
2163 </listitem>
2164 </varlistentry>
2165
2166 <varlistentry>
2167 <term><varname>Token=</varname></term>
2168 <listitem>
2169 <para>Specifies an optional address generation mode for assigning an address in each
2170 delegated prefix. This accepts the same syntax as <varname>Token=</varname> in the
2171 [IPv6AcceptRA] section. If <varname>Assign=</varname> is set to false, then this setting will
2172 be ignored. Defaults to unset, which means the EUI-64 algorithm will be used.</para>
2173 </listitem>
2174 </varlistentry>
2175
2176 <varlistentry>
2177 <term><varname>ManageTemporaryAddress=</varname></term>
2178 <listitem>
2179 <para>As in the [Address] section, but defaults to true.</para>
2180 </listitem>
2181 </varlistentry>
2182
2183 <varlistentry>
2184 <term><varname>RouteMetric=</varname></term>
2185 <listitem>
2186 <para>The metric of the route to the delegated prefix subnet. Takes an unsigned integer in
2187 the range 04294967295. When set to 0, the kernel's default value is used. Defaults to 256.
2188 </para>
2189 </listitem>
2190 </varlistentry>
2191 </variablelist>
2192 </refsect1>
2193
2194 <refsect1>
2195 <title>[IPv6AcceptRA] Section Options</title>
2196 <para>The [IPv6AcceptRA] section configures the IPv6 Router Advertisement (RA) client, if it is enabled
2197 with the <varname>IPv6AcceptRA=</varname> setting described above:</para>
2198
2199 <variablelist class='network-directives'>
2200 <varlistentry>
2201 <term><varname>Token=</varname></term>
2202 <listitem>
2203 <para>Specifies an optional address generation mode for the Stateless Address
2204 Autoconfiguration (SLAAC). The following values are supported:</para>
2205
2206 <variablelist>
2207 <varlistentry>
2208 <term><option>eui64</option></term>
2209 <listitem>
2210 <para>
2211 The EUI-64 algorithm will be used to generate an address for that prefix. Only
2212 supported by Ethernet or InfiniBand interfaces.
2213 </para>
2214 </listitem>
2215 </varlistentry>
2216 <varlistentry>
2217 <term><option>static:<replaceable>ADDRESS</replaceable></option></term>
2218 <listitem>
2219 <para>
2220 An IPv6 address must be specified after a colon (<literal>:</literal>), and the
2221 lower bits of the supplied address are combined with the upper bits of a prefix
2222 received in a Router Advertisement (RA) message to form a complete address. Note
2223 that if multiple prefixes are received in an RA message, or in multiple RA messages,
2224 addresses will be formed from each of them using the supplied address. This mode
2225 implements SLAAC but uses a static interface identifier instead of an identifier
2226 generated by using the EUI-64 algorithm. Because the interface identifier is static,
2227 if Duplicate Address Detection detects that the computed address is a duplicate
2228 (in use by another node on the link), then this mode will fail to provide an address
2229 for that prefix. If an IPv6 address without mode is specified, then
2230 <literal>static</literal> mode is assumed.
2231 </para>
2232 </listitem>
2233 </varlistentry>
2234 <varlistentry>
2235 <term><option>prefixstable[:<replaceable>ADDRESS</replaceable>][,<replaceable>UUID</replaceable>]</option></term>
2236 <listitem>
2237 <para>
2238 The algorithm specified in
2239 <ulink url="https://tools.ietf.org/html/rfc7217">RFC 7217</ulink> will be used to
2240 generate interface identifiers. This mode can optionally take an IPv6 address
2241 separated with a colon (<literal>:</literal>). If an IPv6 address is specified,
2242 then an interface identifier is generated only when a prefix received in an RA
2243 message matches the supplied address.
2244 </para>
2245 <para>
2246 This mode can also optionally take a non-null UUID in the format which
2247 <function>sd_id128_from_string()</function> accepts, e.g.
2248 <literal>86b123b969ba4b7eb8b3d8605123525a</literal> or
2249 <literal>86b123b9-69ba-4b7e-b8b3-d8605123525a</literal>. If a UUID is specified, the
2250 value is used as the secret key to generate interface identifiers. If not specified,
2251 then an application specific ID generated with the system's machine-ID will be used
2252 as the secret key. See
2253 <citerefentry><refentrytitle>sd-id128</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
2254 <citerefentry><refentrytitle>sd_id128_from_string</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
2255 and
2256 <citerefentry><refentrytitle>sd_id128_get_machine</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
2257 </para>
2258 <para>
2259 Note that the <literal>prefixstable</literal> algorithm uses both the interface
2260 name and MAC address as input to the hash to compute the interface identifier, so
2261 if either of those are changed the resulting interface identifier (and address)
2262 will be changed, even if the prefix received in the RA message has not been
2263 changed.
2264 </para>
2265 </listitem>
2266 </varlistentry>
2267 </variablelist>
2268
2269 <para>If no address generation mode is specified (which is the default), or a received
2270 prefix does not match any of the addresses provided in <literal>prefixstable</literal>
2271 mode, then the EUI-64 algorithm will be used for Ethernet or InfiniBand interfaces,
2272 otherwise <literal>prefixstable</literal> will be used to form an interface identifier for
2273 that prefix.</para>
2274
2275 <para>This setting can be specified multiple times. If an empty string is assigned, then
2276 the all previous assignments are cleared.</para>
2277
2278 <para>Examples:
2279 <programlisting>Token=eui64
2280 Token=::1a:2b:3c:4d
2281 Token=static:::1a:2b:3c:4d
2282 Token=prefixstable
2283 Token=prefixstable:2002:da8:1::</programlisting></para>
2284 </listitem>
2285 </varlistentry>
2286
2287 <varlistentry>
2288 <term><varname>UseDNS=</varname></term>
2289 <listitem>
2290 <para>When true (the default), the DNS servers received in the Router Advertisement will be used.</para>
2291
2292 <para>This corresponds to the <option>nameserver</option> option in <citerefentry
2293 project='man-pages'><refentrytitle>resolv.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
2294 </listitem>
2295 </varlistentry>
2296
2297 <varlistentry>
2298 <term><varname>UseDomains=</varname></term>
2299 <listitem>
2300 <para>Takes a boolean, or the special value <literal>route</literal>. When true, the domain name
2301 received via IPv6 Router Advertisement (RA) will be used as DNS search domain over this link, similar to
2302 the effect of the <option>Domains=</option> setting. If set to <literal>route</literal>, the domain name
2303 received via IPv6 RA will be used for routing DNS queries only, but not for searching, similar to the
2304 effect of the <option>Domains=</option> setting when the argument is prefixed with
2305 <literal>~</literal>. Defaults to false.</para>
2306
2307 <para>It is recommended to enable this option only on trusted networks, as setting this affects resolution
2308 of all hostnames, in particular of single-label names. It is generally safer to use the supplied domain
2309 only as routing domain, rather than as search domain, in order to not have it affect local resolution of
2310 single-label names.</para>
2311
2312 <para>When set to true, this setting corresponds to the <option>domain</option> option in <citerefentry
2313 project='man-pages'><refentrytitle>resolv.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
2314 </listitem>
2315 </varlistentry>
2316
2317 <varlistentry>
2318 <term><varname>RouteTable=<replaceable>num</replaceable></varname></term>
2319 <listitem>
2320 <para>The table identifier for the routes received in the Router Advertisement
2321 (a number between 1 and 4294967295, or 0 to unset).
2322 The table can be retrieved using <command>ip route show table <replaceable>num</replaceable></command>.
2323 </para>
2324 </listitem>
2325 </varlistentry>
2326
2327 <varlistentry>
2328 <term><varname>RouteMetric=</varname></term>
2329 <listitem>
2330 <para>Set the routing metric for the routes received in the Router Advertisement. Takes an
2331 unsigned integer in the range 04294967295. Defaults to 1024.</para>
2332 </listitem>
2333 </varlistentry>
2334
2335 <varlistentry>
2336 <term><varname>UseMTU=</varname></term>
2337 <listitem>
2338 <para>Takes a boolean. When true, the MTU received in the Router Advertisement will be
2339 used. Defaults to true.</para>
2340 </listitem>
2341 </varlistentry>
2342
2343 <varlistentry>
2344 <term><varname>UseGateway=</varname></term>
2345 <listitem>
2346 <para>When true (the default), the router address will be configured as the default gateway.
2347 </para>
2348 </listitem>
2349 </varlistentry>
2350
2351 <varlistentry>
2352 <term><varname>UseRoutePrefix=</varname></term>
2353 <listitem>
2354 <para>When true (the default), the routes corresponding to the route prefixes received in
2355 the Router Advertisement will be configured.</para>
2356 </listitem>
2357 </varlistentry>
2358
2359 <varlistentry>
2360 <term><varname>UseAutonomousPrefix=</varname></term>
2361 <listitem>
2362 <para>When true (the default), the autonomous prefix received in the Router Advertisement will be used and take
2363 precedence over any statically configured ones.</para>
2364 </listitem>
2365 </varlistentry>
2366
2367 <varlistentry>
2368 <term><varname>UseOnLinkPrefix=</varname></term>
2369 <listitem>
2370 <para>When true (the default), the onlink prefix received in the Router Advertisement will be
2371 used and takes precedence over any statically configured ones.</para>
2372 </listitem>
2373 </varlistentry>
2374
2375 <varlistentry>
2376 <term><varname>RouterDenyList=</varname></term>
2377 <listitem>
2378 <para>A whitespace-separated list of IPv6 router addresses. Each address can optionally
2379 take a prefix length after <literal>/</literal>. Any information advertised by the listed
2380 router is ignored.</para>
2381 </listitem>
2382 </varlistentry>
2383
2384 <varlistentry>
2385 <term><varname>RouterAllowList=</varname></term>
2386 <listitem>
2387 <para>A whitespace-separated list of IPv6 router addresses. Each address can optionally
2388 take a prefix length after <literal>/</literal>. Only information advertised by the listed
2389 router is accepted. Note that if <varname>RouterAllowList=</varname> is configured then
2390 <varname>RouterDenyList=</varname> is ignored.</para>
2391 </listitem>
2392 </varlistentry>
2393
2394 <varlistentry>
2395 <term><varname>PrefixDenyList=</varname></term>
2396 <listitem>
2397 <para>A whitespace-separated list of IPv6 prefixes. Each prefix can optionally take its
2398 prefix length after <literal>/</literal>. IPv6 prefixes supplied via router advertisements
2399 in the list are ignored.</para>
2400 </listitem>
2401 </varlistentry>
2402
2403 <varlistentry>
2404 <term><varname>PrefixAllowList=</varname></term>
2405 <listitem>
2406 <para>A whitespace-separated list of IPv6 prefixes. Each prefix can optionally take its
2407 prefix length after <literal>/</literal>. IPv6 prefixes supplied via router advertisements
2408 in the list are allowed. Note that if <varname>PrefixAllowList=</varname> is configured
2409 then <varname>PrefixDenyList=</varname> is ignored.</para>
2410 </listitem>
2411 </varlistentry>
2412
2413 <varlistentry>
2414 <term><varname>RouteDenyList=</varname></term>
2415 <listitem>
2416 <para>A whitespace-separated list of IPv6 route prefixes. Each prefix can optionally take
2417 its prefix length after <literal>/</literal>. IPv6 route prefixes supplied via router
2418 advertisements in the list are ignored.</para>
2419 </listitem>
2420 </varlistentry>
2421
2422 <varlistentry>
2423 <term><varname>RouteAllowList=</varname></term>
2424 <listitem>
2425 <para>A whitespace-separated list of IPv6 route prefixes. Each prefix can optionally take
2426 its prefix length after <literal>/</literal>. IPv6 route prefixes supplied via router
2427 advertisements in the list are allowed. Note that if <varname>RouteAllowList=</varname> is
2428 configured then <varname>RouteDenyList=</varname> is ignored.</para>
2429 </listitem>
2430 </varlistentry>
2431
2432 <varlistentry>
2433 <term><varname>DHCPv6Client=</varname></term>
2434 <listitem>
2435 <para>Takes a boolean, or the special value <literal>always</literal>. When true, the
2436 DHCPv6 client will be started when the RA has the managed or other information flag. If set
2437 to <literal>always</literal>, the DHCPv6 client will be started in managed mode when an RA
2438 is received, even if neither managed nor other information flag is set in the RA. This will
2439 be ignored when <varname>WithoutRA=</varname> in the [DHCPv6] section is enabled, or
2440 <varname>UplinkInterface=:self</varname> in the [DHCPv6PrefixDelegation] section is
2441 specified. Defaults to true.</para>
2442 </listitem>
2443 </varlistentry>
2444 </variablelist>
2445 </refsect1>
2446
2447 <refsect1>
2448 <title>[DHCPServer] Section Options</title>
2449 <para>The [DHCPServer] section contains settings for the DHCP server, if enabled via the
2450 <varname>DHCPServer=</varname> option described above:</para>
2451
2452 <variablelist class='network-directives'>
2453
2454 <varlistentry>
2455 <term><varname>ServerAddress=</varname></term>
2456 <listitem><para>Specifies server address for the DHCP server. Takes an IPv4 address with prefix
2457 length, for example <literal>192.168.0.1/24</literal>. This setting may be useful when the link on
2458 which the DHCP server is running has multiple static addresses. When unset, one of static addresses
2459 in the link will be automatically selected. Defaults to unset.</para></listitem>
2460 </varlistentry>
2461
2462 <varlistentry>
2463 <term><varname>PoolOffset=</varname></term>
2464 <term><varname>PoolSize=</varname></term>
2465
2466 <listitem><para>Configures the pool of addresses to hand out. The pool
2467 is a contiguous sequence of IP addresses in the subnet configured for
2468 the server address, which does not include the subnet nor the broadcast
2469 address. <varname>PoolOffset=</varname> takes the offset of the pool
2470 from the start of subnet, or zero to use the default value.
2471 <varname>PoolSize=</varname> takes the number of IP addresses in the
2472 pool or zero to use the default value. By default, the pool starts at
2473 the first address after the subnet address and takes up the rest of
2474 the subnet, excluding the broadcast address. If the pool includes
2475 the server address (the default), this is reserved and not handed
2476 out to clients.</para></listitem>
2477 </varlistentry>
2478
2479 <varlistentry>
2480 <term><varname>DefaultLeaseTimeSec=</varname></term>
2481 <term><varname>MaxLeaseTimeSec=</varname></term>
2482
2483 <listitem><para>Control the default and maximum DHCP lease
2484 time to pass to clients. These settings take time values in seconds or
2485 another common time unit, depending on the suffix. The default
2486 lease time is used for clients that did not ask for a specific
2487 lease time. If a client asks for a lease time longer than the
2488 maximum lease time, it is automatically shortened to the
2489 specified time. The default lease time defaults to 1h, the
2490 maximum lease time to 12h. Shorter lease times are beneficial
2491 if the configuration data in DHCP leases changes frequently
2492 and clients shall learn the new settings with shorter
2493 latencies. Longer lease times reduce the generated DHCP
2494 network traffic.</para></listitem>
2495 </varlistentry>
2496
2497 <varlistentry>
2498 <term><varname>UplinkInterface=</varname></term>
2499 <listitem><para>Specifies the name or the index of the uplink interface, or one of the special
2500 values <literal>:none</literal> and <literal>:auto</literal>. When emitting DNS, NTP, or SIP
2501 servers is enabled but no servers are specified, the servers configured in the uplink interface
2502 will be emitted. When <literal>:auto</literal>, the link which has a default gateway with the
2503 highest priority will be automatically selected. When <literal>:none</literal>, no uplink
2504 interface will be selected. Defaults to <literal>:auto</literal>.</para></listitem>
2505 </varlistentry>
2506
2507 <varlistentry>
2508 <term><varname>EmitDNS=</varname></term>
2509 <term><varname>DNS=</varname></term>
2510
2511 <listitem><para><varname>EmitDNS=</varname> takes a boolean. Configures whether the DHCP leases
2512 handed out to clients shall contain DNS server information. Defaults to <literal>yes</literal>. The
2513 DNS servers to pass to clients may be configured with the <varname>DNS=</varname> option, which takes
2514 a list of IPv4 addresses. If the <varname>EmitDNS=</varname> option is enabled but no servers
2515 configured, the servers are automatically propagated from an "uplink" interface that has appropriate
2516 servers set. The "uplink" interface is determined by the default route of the system with the highest
2517 priority. Note that this information is acquired at the time the lease is handed out, and does not
2518 take uplink interfaces into account that acquire DNS server information at a later point. If no
2519 suitable uplink interface is found the DNS server data from <filename>/etc/resolv.conf</filename> is
2520 used. Also, note that the leases are not refreshed if the uplink network configuration changes. To
2521 ensure clients regularly acquire the most current uplink DNS server information, it is thus advisable
2522 to shorten the DHCP lease time via <varname>MaxLeaseTimeSec=</varname> described
2523 above.</para></listitem>
2524 </varlistentry>
2525
2526 <varlistentry>
2527 <term><varname>EmitNTP=</varname></term>
2528 <term><varname>NTP=</varname></term>
2529 <term><varname>EmitSIP=</varname></term>
2530 <term><varname>SIP=</varname></term>
2531 <term><varname>EmitPOP3=</varname></term>
2532 <term><varname>POP3=</varname></term>
2533 <term><varname>EmitSMTP=</varname></term>
2534 <term><varname>SMTP=</varname></term>
2535 <term><varname>EmitLPR=</varname></term>
2536 <term><varname>LPR=</varname></term>
2537
2538 <listitem><para>Similar to the <varname>EmitDNS=</varname> and <varname>DNS=</varname> settings
2539 described above, these settings configure whether and what server information for the indicate
2540 protocol shall be emitted as part of the DHCP lease. The same syntax, propagation semantics and
2541 defaults apply as for <varname>EmitDNS=</varname> and <varname>DNS=</varname>.</para></listitem>
2542 </varlistentry>
2543
2544 <varlistentry>
2545 <term><varname>EmitRouter=</varname></term>
2546 <term><varname>Router=</varname></term>
2547
2548 <listitem><para>The <varname>EmitRouter=</varname> setting takes a boolean value, and configures
2549 whether the DHCP lease should contain the router option. The <varname>Router=</varname> setting
2550 takes an IPv4 address, and configures the router address to be emitted. When the
2551 <varname>Router=</varname> setting is not specified, then the server address will be used for
2552 the router option. When the <varname>EmitRouter=</varname> setting is disabled, the
2553 <varname>Router=</varname> setting will be ignored. The <varname>EmitRouter=</varname> setting
2554 defaults to true, and the <varname>Router=</varname> setting defaults to unset.
2555 </para></listitem>
2556 </varlistentry>
2557
2558 <varlistentry>
2559 <term><varname>EmitTimezone=</varname></term>
2560 <term><varname>Timezone=</varname></term>
2561
2562 <listitem><para>Takes a boolean. Configures whether the DHCP leases handed out
2563 to clients shall contain timezone information. Defaults to <literal>yes</literal>. The
2564 <varname>Timezone=</varname> setting takes a timezone string
2565 (such as <literal>Europe/Berlin</literal> or
2566 <literal>UTC</literal>) to pass to clients. If no explicit
2567 timezone is set, the system timezone of the local host is
2568 propagated, as determined by the
2569 <filename>/etc/localtime</filename> symlink.</para></listitem>
2570 </varlistentry>
2571
2572 <varlistentry>
2573 <term><varname>SendOption=</varname></term>
2574 <listitem>
2575 <para>Send a raw option with value via DHCPv4 server. Takes a DHCP option number, data type
2576 and data (<literal><replaceable>option</replaceable>:<replaceable>type</replaceable>:<replaceable>value</replaceable></literal>).
2577 The option number is an integer in the range 1254. The type takes one of <literal>uint8</literal>,
2578 <literal>uint16</literal>, <literal>uint32</literal>, <literal>ipv4address</literal>, <literal>ipv6address</literal>, or
2579 <literal>string</literal>. Special characters in the data string may be escaped using
2580 <ulink url="https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
2581 escapes</ulink>. This setting can be specified multiple times. If an empty string is specified,
2582 then all options specified earlier are cleared. Defaults to unset.</para>
2583 </listitem>
2584 </varlistentry>
2585
2586 <varlistentry>
2587 <term><varname>SendVendorOption=</varname></term>
2588 <listitem>
2589 <para>Send a vendor option with value via DHCPv4 server. Takes a DHCP option number, data type
2590 and data (<literal><replaceable>option</replaceable>:<replaceable>type</replaceable>:<replaceable>value</replaceable></literal>).
2591 The option number is an integer in the range 1254. The type takes one of <literal>uint8</literal>,
2592 <literal>uint16</literal>, <literal>uint32</literal>, <literal>ipv4address</literal>, or
2593 <literal>string</literal>. Special characters in the data string may be escaped using
2594 <ulink url="https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
2595 escapes</ulink>. This setting can be specified multiple times. If an empty string is specified,
2596 then all options specified earlier are cleared. Defaults to unset.</para>
2597 </listitem>
2598 </varlistentry>
2599 <varlistentry>
2600 <term><varname>BindToInterface=</varname></term>
2601 <listitem>
2602 <para>Takes a boolean value. When <literal>yes</literal>, DHCP server socket will be bound
2603 to its network interface and all socket communication will be restricted to this interface.
2604 Defaults to <literal>yes</literal>, except if <varname>RelayTarget=</varname> is used (see below),
2605 in which case it defaults to <literal>no</literal>.</para>
2606 </listitem>
2607 </varlistentry>
2608 <varlistentry>
2609 <term><varname>RelayTarget=</varname></term>
2610 <listitem>
2611 <para>Takes an IPv4 address, which must be in the format described in
2612 <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
2613 Turns this DHCP server into a DHCP relay agent. See <ulink url="https://tools.ietf.org/html/rfc1542">RFC 1542</ulink>.
2614 The address is the address of DHCP server or another relay agent to forward DHCP messages to and from.</para>
2615 </listitem>
2616 </varlistentry>
2617 <varlistentry>
2618 <term><varname>RelayAgentCircuitId=</varname></term>
2619 <listitem>
2620 <para>Specifies value for Agent Circuit ID suboption of Relay Agent Information option.
2621 Takes a string, which must be in the format <literal>string:<replaceable>value</replaceable></literal>,
2622 where <literal><replaceable>value</replaceable></literal> should be replaced with the value of the suboption.
2623 Defaults to unset (means no Agent Circuit ID suboption is generated).
2624 Ignored if <varname>RelayTarget=</varname> is not specified.</para>
2625 </listitem>
2626 </varlistentry>
2627 <varlistentry>
2628 <term><varname>RelayAgentRemoteId=</varname></term>
2629 <listitem>
2630 <para>Specifies value for Agent Remote ID suboption of Relay Agent Information option.
2631 Takes a string, which must be in the format <literal>string:<replaceable>value</replaceable></literal>,
2632 where <literal><replaceable>value</replaceable></literal> should be replaced with the value of the suboption.
2633 Defaults to unset (means no Agent Remote ID suboption is generated).
2634 Ignored if <varname>RelayTarget=</varname> is not specified.</para>
2635 </listitem>
2636 </varlistentry>
2637
2638 </variablelist>
2639 </refsect1>
2640
2641 <refsect1>
2642 <title>[DHCPServerStaticLease] Section Options</title>
2643 <para>The <literal>[DHCPServerStaticLease]</literal> section configures a static DHCP lease to assign a
2644 fixed IPv4 address to a specific device based on its MAC address. This section can be specified multiple
2645 times.</para>
2646
2647 <variablelist class='network-directives'>
2648 <varlistentry>
2649 <term><varname>MACAddress=</varname></term>
2650
2651 <listitem><para>The hardware address of a device to match. This key is mandatory.</para></listitem>
2652 </varlistentry>
2653
2654 <varlistentry>
2655 <term><varname>Address=</varname></term>
2656
2657 <listitem><para>The IPv4 address that should be assigned to the device that was matched with
2658 <varname>MACAddress=</varname>. This key is mandatory.</para></listitem>
2659 </varlistentry>
2660 </variablelist>
2661 </refsect1>
2662
2663 <refsect1>
2664 <title>[IPv6SendRA] Section Options</title>
2665 <para>The [IPv6SendRA] section contains settings for sending IPv6 Router Advertisements and whether
2666 to act as a router, if enabled via the <varname>IPv6SendRA=</varname> option described above. IPv6
2667 network prefixes or routes are defined with one or more [IPv6Prefix] or [IPv6RoutePrefix] sections.
2668 </para>
2669
2670 <variablelist class='network-directives'>
2671
2672 <varlistentry>
2673 <term><varname>Managed=</varname></term>
2674 <term><varname>OtherInformation=</varname></term>
2675
2676 <listitem><para>Takes a boolean. Controls whether a DHCPv6 server is used to acquire IPv6
2677 addresses on the network link when <varname>Managed=</varname>
2678 is set to <literal>true</literal> or if only additional network
2679 information can be obtained via DHCPv6 for the network link when
2680 <varname>OtherInformation=</varname> is set to
2681 <literal>true</literal>. Both settings default to
2682 <literal>false</literal>, which means that a DHCPv6 server is not being
2683 used.</para></listitem>
2684 </varlistentry>
2685
2686 <varlistentry>
2687 <term><varname>RouterLifetimeSec=</varname></term>
2688
2689 <listitem><para>Takes a timespan. Configures the IPv6 router lifetime in seconds. The value must be 0
2690 seconds, or between 4 seconds and 9000 seconds. When set to 0, the host is not acting as a router.
2691 Defaults to 1800 seconds (30 minutes).</para>
2692 </listitem>
2693 </varlistentry>
2694
2695 <varlistentry>
2696 <term><varname>RouterPreference=</varname></term>
2697
2698 <listitem><para>Configures IPv6 router preference if
2699 <varname>RouterLifetimeSec=</varname> is non-zero. Valid values are
2700 <literal>high</literal>, <literal>medium</literal> and
2701 <literal>low</literal>, with <literal>normal</literal> and
2702 <literal>default</literal> added as synonyms for
2703 <literal>medium</literal> just to make configuration easier. See
2704 <ulink url="https://tools.ietf.org/html/rfc4191">RFC 4191</ulink>
2705 for details. Defaults to <literal>medium</literal>.</para></listitem>
2706 </varlistentry>
2707
2708 <varlistentry>
2709 <term><varname>UplinkInterface=</varname></term>
2710 <listitem><para>Specifies the name or the index of the uplink interface, or one of the special
2711 values <literal>:none</literal> and <literal>:auto</literal>. When emitting DNS servers or
2712 search domains is enabled but no servers are specified, the servers configured in the uplink
2713 interface will be emitted. When <literal>:auto</literal>, the value specified to the same
2714 setting in the [DHCPv6PrefixDelegation] section will be used if
2715 <varname>DHCPv6PrefixDelegation=</varname> is enabled, otherwise the link which has a default
2716 gateway with the highest priority will be automatically selected. When <literal>:none</literal>,
2717 no uplink interface will be selected. Defaults to <literal>:auto</literal>.</para></listitem>
2718 </varlistentry>
2719
2720 <varlistentry>
2721 <term><varname>EmitDNS=</varname></term>
2722 <term><varname>DNS=</varname></term>
2723
2724 <listitem><para><varname>DNS=</varname> specifies a list of recursive DNS server IPv6 addresses
2725 that are distributed via Router Advertisement messages when <varname>EmitDNS=</varname> is true.
2726 <varname>DNS=</varname> also takes special value <literal>_link_local</literal>; in that case
2727 the IPv6 link local address is distributed. If <varname>DNS=</varname> is empty, DNS servers are
2728 read from the [Network] section. If the [Network] section does not contain any DNS servers
2729 either, DNS servers from the uplink interface specified in <varname>UplinkInterface=</varname>
2730 will be used. When <varname>EmitDNS=</varname> is false, no DNS server information is sent in
2731 Router Advertisement messages. <varname>EmitDNS=</varname> defaults to true.</para></listitem>
2732 </varlistentry>
2733
2734 <varlistentry>
2735 <term><varname>EmitDomains=</varname></term>
2736 <term><varname>Domains=</varname></term>
2737
2738 <listitem><para>A list of DNS search domains distributed via Router Advertisement messages when
2739 <varname>EmitDomains=</varname> is true. If <varname>Domains=</varname> is empty, DNS search
2740 domains are read from the [Network] section. If the [Network] section does not contain any DNS
2741 search domains either, DNS search domains from the uplink interface specified in
2742 <varname>UplinkInterface=</varname> will be used. When <varname>EmitDomains=</varname> is false,
2743 no DNS search domain information is sent in Router Advertisement messages.
2744 <varname>EmitDomains=</varname> defaults to true.</para></listitem>
2745 </varlistentry>
2746
2747 <varlistentry>
2748 <term><varname>DNSLifetimeSec=</varname></term>
2749
2750 <listitem><para>Lifetime in seconds for the DNS server addresses listed in
2751 <varname>DNS=</varname> and search domains listed in <varname>Domains=</varname>. Defaults to
2752 3600 seconds (one hour).</para></listitem>
2753 </varlistentry>
2754
2755 </variablelist>
2756 </refsect1>
2757
2758 <refsect1>
2759 <title>[IPv6Prefix] Section Options</title>
2760 <para>One or more [IPv6Prefix] sections contain the IPv6 prefixes that are announced via Router
2761 Advertisements. See <ulink url="https://tools.ietf.org/html/rfc4861">RFC 4861</ulink> for further
2762 details.</para>
2763
2764 <variablelist class='network-directives'>
2765
2766 <varlistentry>
2767 <term><varname>AddressAutoconfiguration=</varname></term>
2768 <term><varname>OnLink=</varname></term>
2769
2770 <listitem><para>Takes a boolean to specify whether IPv6 addresses can be
2771 autoconfigured with this prefix and whether the prefix can be used for
2772 onlink determination. Both settings default to <literal>true</literal>
2773 in order to ease configuration.
2774 </para></listitem>
2775 </varlistentry>
2776
2777 <varlistentry>
2778 <term><varname>Prefix=</varname></term>
2779
2780 <listitem><para>The IPv6 prefix that is to be distributed to hosts. Similarly to configuring static
2781 IPv6 addresses, the setting is configured as an IPv6 prefix and its prefix length, separated by a
2782 <literal>/</literal> character. Use multiple [IPv6Prefix] sections to configure multiple IPv6
2783 prefixes since prefix lifetimes, address autoconfiguration and onlink status may differ from one
2784 prefix to another.</para></listitem>
2785 </varlistentry>
2786
2787 <varlistentry>
2788 <term><varname>PreferredLifetimeSec=</varname></term>
2789 <term><varname>ValidLifetimeSec=</varname></term>
2790
2791 <listitem><para>Preferred and valid lifetimes for the prefix measured in seconds.
2792 <varname>PreferredLifetimeSec=</varname> defaults to 1800 seconds (30 minutes) and
2793 <varname>ValidLifetimeSec=</varname> defaults to 3600 seconds (one hour).</para></listitem>
2794 </varlistentry>
2795
2796 <varlistentry>
2797 <term><varname>Assign=</varname></term>
2798 <listitem><para>Takes a boolean. When true, adds an address from the prefix. Default to false.
2799 </para></listitem>
2800 </varlistentry>
2801
2802 <varlistentry>
2803 <term><varname>Token=</varname></term>
2804 <listitem>
2805 <para>Specifies an optional address generation mode for assigning an address in each
2806 prefix. This accepts the same syntax as <varname>Token=</varname> in the [IPv6AcceptRA]
2807 section. If <varname>Assign=</varname> is set to false, then this setting will be ignored.
2808 Defaults to unset, which means the EUI-64 algorithm will be used.</para>
2809 </listitem>
2810 </varlistentry>
2811
2812 <varlistentry>
2813 <term><varname>RouteMetric=</varname></term>
2814 <listitem>
2815 <para>The metric of the prefix route. Takes an unsigned integer in the range 04294967295.
2816 When unset or set to 0, the kernel's default value is used. This setting is ignored when
2817 <varname>Assign=</varname> is false.</para>
2818 </listitem>
2819 </varlistentry>
2820 </variablelist>
2821 </refsect1>
2822
2823 <refsect1>
2824 <title>[IPv6RoutePrefix] Section Options</title>
2825 <para>One or more [IPv6RoutePrefix] sections contain the IPv6
2826 prefix routes that are announced via Router Advertisements. See
2827 <ulink url="https://tools.ietf.org/html/rfc4191">RFC 4191</ulink>
2828 for further details.</para>
2829
2830 <variablelist class='network-directives'>
2831
2832 <varlistentry>
2833 <term><varname>Route=</varname></term>
2834
2835 <listitem><para>The IPv6 route that is to be distributed to hosts. Similarly to configuring static
2836 IPv6 routes, the setting is configured as an IPv6 prefix routes and its prefix route length,
2837 separated by a <literal>/</literal> character. Use multiple [IPv6PrefixRoutes] sections to configure
2838 multiple IPv6 prefix routes.</para></listitem>
2839 </varlistentry>
2840
2841 <varlistentry>
2842 <term><varname>LifetimeSec=</varname></term>
2843
2844 <listitem><para>Lifetime for the route prefix measured in seconds.
2845 <varname>LifetimeSec=</varname> defaults to 3600 seconds (one hour).</para></listitem>
2846 </varlistentry>
2847
2848 </variablelist>
2849 </refsect1>
2850
2851 <refsect1>
2852 <title>[Bridge] Section Options</title>
2853 <para>The [Bridge] section accepts the following keys:</para>
2854 <variablelist class='network-directives'>
2855 <varlistentry>
2856 <term><varname>UnicastFlood=</varname></term>
2857 <listitem>
2858 <para>Takes a boolean. Controls whether the bridge should flood
2859 traffic for which an FDB entry is missing and the destination
2860 is unknown through this port. When unset, the kernel's default will be used.
2861 </para>
2862 </listitem>
2863 </varlistentry>
2864 <varlistentry>
2865 <term><varname>MulticastFlood=</varname></term>
2866 <listitem>
2867 <para>Takes a boolean. Controls whether the bridge should flood
2868 traffic for which an MDB entry is missing and the destination
2869 is unknown through this port. When unset, the kernel's default will be used.
2870 </para>
2871 </listitem>
2872 </varlistentry>
2873 <varlistentry>
2874 <term><varname>MulticastToUnicast=</varname></term>
2875 <listitem>
2876 <para>Takes a boolean. Multicast to unicast works on top of the multicast snooping feature of
2877 the bridge. Which means unicast copies are only delivered to hosts which are interested in it.
2878 When unset, the kernel's default will be used.
2879 </para>
2880 </listitem>
2881 </varlistentry>
2882 <varlistentry>
2883 <term><varname>NeighborSuppression=</varname></term>
2884 <listitem>
2885 <para>Takes a boolean. Configures whether ARP and ND neighbor suppression is enabled for
2886 this port. When unset, the kernel's default will be used.
2887 </para>
2888 </listitem>
2889 </varlistentry>
2890 <varlistentry>
2891 <term><varname>Learning=</varname></term>
2892 <listitem>
2893 <para>Takes a boolean. Configures whether MAC address learning is enabled for
2894 this port. When unset, the kernel's default will be used.
2895 </para>
2896 </listitem>
2897 </varlistentry>
2898 <varlistentry>
2899 <term><varname>HairPin=</varname></term>
2900 <listitem>
2901 <para>Takes a boolean. Configures whether traffic may be sent back out of the port on which it
2902 was received. When this flag is false, then the bridge will not forward traffic back out of the
2903 receiving port. When unset, the kernel's default will be used.</para>
2904 </listitem>
2905 </varlistentry>
2906 <varlistentry>
2907 <term><varname>UseBPDU=</varname></term>
2908 <listitem>
2909 <para>Takes a boolean. Configures whether STP Bridge Protocol Data Units will be
2910 processed by the bridge port. When unset, the kernel's default will be used.</para>
2911 </listitem>
2912 </varlistentry>
2913 <varlistentry>
2914 <term><varname>FastLeave=</varname></term>
2915 <listitem>
2916 <para>Takes a boolean. This flag allows the bridge to immediately stop multicast
2917 traffic on a port that receives an IGMP Leave message. It is only used with
2918 IGMP snooping if enabled on the bridge. When unset, the kernel's default will be used.</para>
2919 </listitem>
2920 </varlistentry>
2921 <varlistentry>
2922 <term><varname>AllowPortToBeRoot=</varname></term>
2923 <listitem>
2924 <para>Takes a boolean. Configures whether a given port is allowed to
2925 become a root port. Only used when STP is enabled on the bridge.
2926 When unset, the kernel's default will be used.</para>
2927 </listitem>
2928 </varlistentry>
2929 <varlistentry>
2930 <term><varname>ProxyARP=</varname></term>
2931 <listitem>
2932 <para>Takes a boolean. Configures whether proxy ARP to be enabled on this port.
2933 When unset, the kernel's default will be used.</para>
2934 </listitem>
2935 </varlistentry>
2936 <varlistentry>
2937 <term><varname>ProxyARPWiFi=</varname></term>
2938 <listitem>
2939 <para>Takes a boolean. Configures whether proxy ARP to be enabled on this port
2940 which meets extended requirements by IEEE 802.11 and Hotspot 2.0 specifications.
2941 When unset, the kernel's default will be used.</para>
2942 </listitem>
2943 </varlistentry>
2944 <varlistentry>
2945 <term><varname>MulticastRouter=</varname></term>
2946 <listitem>
2947 <para>Configures this port for having multicast routers attached. A port with a multicast
2948 router will receive all multicast traffic. Takes one of <literal>no</literal>
2949 to disable multicast routers on this port, <literal>query</literal> to let the system detect
2950 the presence of routers, <literal>permanent</literal> to permanently enable multicast traffic
2951 forwarding on this port, or <literal>temporary</literal> to enable multicast routers temporarily
2952 on this port, not depending on incoming queries. When unset, the kernel's default will be used.</para>
2953 </listitem>
2954 </varlistentry>
2955 <varlistentry>
2956 <term><varname>Cost=</varname></term>
2957 <listitem>
2958 <para>Sets the "cost" of sending packets of this interface.
2959 Each port in a bridge may have a different speed and the cost
2960 is used to decide which link to use. Faster interfaces
2961 should have lower costs. It is an integer value between 1 and
2962 65535.</para>
2963 </listitem>
2964 </varlistentry>
2965 <varlistentry>
2966 <term><varname>Priority=</varname></term>
2967 <listitem>
2968 <para>Sets the "priority" of sending packets on this interface.
2969 Each port in a bridge may have a different priority which is used
2970 to decide which link to use. Lower value means higher priority.
2971 It is an integer value between 0 to 63. Networkd does not set any
2972 default, meaning the kernel default value of 32 is used.</para>
2973 </listitem>
2974 </varlistentry>
2975 </variablelist>
2976 </refsect1>
2977 <refsect1>
2978 <title>[BridgeFDB] Section Options</title>
2979 <para>The [BridgeFDB] section manages the forwarding database table of a port and accepts the following
2980 keys. Specify several [BridgeFDB] sections to configure several static MAC table entries.</para>
2981
2982 <variablelist class='network-directives'>
2983 <varlistentry>
2984 <term><varname>MACAddress=</varname></term>
2985 <listitem>
2986 <para>As in the [Network] section. This key is mandatory.</para>
2987 </listitem>
2988 </varlistentry>
2989 <varlistentry>
2990 <term><varname>Destination=</varname></term>
2991 <listitem>
2992 <para>Takes an IP address of the destination VXLAN tunnel endpoint.</para>
2993 </listitem>
2994 </varlistentry>
2995 <varlistentry>
2996 <term><varname>VLANId=</varname></term>
2997 <listitem>
2998 <para>The VLAN ID for the new static MAC table entry. If
2999 omitted, no VLAN ID information is appended to the new static MAC
3000 table entry.</para>
3001 </listitem>
3002 </varlistentry>
3003 <varlistentry>
3004 <term><varname>VNI=</varname></term>
3005 <listitem>
3006 <para>The VXLAN Network Identifier (or VXLAN Segment ID) to use to connect to
3007 the remote VXLAN tunnel endpoint. Takes a number in the range 116777215.
3008 Defaults to unset.</para>
3009 </listitem>
3010 </varlistentry>
3011 <varlistentry>
3012 <term><varname>AssociatedWith=</varname></term>
3013 <listitem>
3014 <para>Specifies where the address is associated with. Takes one of <literal>use</literal>,
3015 <literal>self</literal>, <literal>master</literal> or <literal>router</literal>.
3016 <literal>use</literal> means the address is in use. User space can use this option to
3017 indicate to the kernel that the fdb entry is in use. <literal>self</literal> means
3018 the address is associated with the port drivers fdb. Usually hardware. <literal>master</literal>
3019 means the address is associated with master devices fdb. <literal>router</literal> means
3020 the destination address is associated with a router. Note that it's valid if the referenced
3021 device is a VXLAN type device and has route shortcircuit enabled. Defaults to <literal>self</literal>.</para>
3022 </listitem>
3023 </varlistentry>
3024 <varlistentry>
3025 <term><varname>OutgoingInterface=</varname></term>
3026 <listitem>
3027 <para>Specifies the name or index of the outgoing interface for the VXLAN device driver to
3028 reach the remote VXLAN tunnel endpoint. Defaults to unset.</para>
3029 </listitem>
3030 </varlistentry>
3031 </variablelist>
3032 </refsect1>
3033 <refsect1>
3034 <title>[BridgeMDB] Section Options</title>
3035 <para>The [BridgeMDB] section manages the multicast membership entries forwarding database table of a port and accepts the following
3036 keys. Specify several [BridgeMDB] sections to configure several permanent multicast membership entries.</para>
3037
3038 <variablelist class='network-directives'>
3039 <varlistentry>
3040 <term><varname>MulticastGroupAddress=</varname></term>
3041 <listitem>
3042 <para>Specifies the IPv4 or IPv6 multicast group address to add. This setting is mandatory.</para>
3043 </listitem>
3044 </varlistentry>
3045 <varlistentry>
3046 <term><varname>VLANId=</varname></term>
3047 <listitem>
3048 <para>The VLAN ID for the new entry. Valid ranges are 0 (no VLAN) to 4094. Optional, defaults to 0.</para>
3049 </listitem>
3050 </varlistentry>
3051 </variablelist>
3052 </refsect1>
3053
3054 <refsect1>
3055 <title>[LLDP] Section Options</title>
3056 <para>The [LLDP] section manages the Link Layer Discovery Protocol (LLDP) and accepts the following
3057 keys:</para>
3058 <variablelist class='network-directives'>
3059 <varlistentry>
3060 <term><varname>MUDURL=</varname></term>
3061 <listitem>
3062 <para>When configured, the specified Manufacturer Usage Descriptions (MUD) URL will be sent in
3063 LLDP packets. The syntax and semantics are the same as for <varname>MUDURL=</varname> in the
3064 [DHCPv4] section described above.</para>
3065
3066 <para>The MUD URLs received via LLDP packets are saved and can be read using the
3067 <function>sd_lldp_neighbor_get_mud_url()</function> function.</para>
3068 </listitem>
3069 </varlistentry>
3070 </variablelist>
3071 </refsect1>
3072
3073 <refsect1>
3074 <title>[CAN] Section Options</title>
3075 <para>The [CAN] section manages the Controller Area Network (CAN bus) and accepts the
3076 following keys:</para>
3077 <variablelist class='network-directives'>
3078 <varlistentry>
3079 <term><varname>BitRate=</varname></term>
3080 <listitem>
3081 <para>The bitrate of CAN device in bits per second. The usual SI prefixes (K, M) with the base of 1000 can
3082 be used here. Takes a number in the range 14294967295.</para>
3083 </listitem>
3084 </varlistentry>
3085 <varlistentry>
3086 <term><varname>SamplePoint=</varname></term>
3087 <listitem>
3088 <para>Optional sample point in percent with one decimal (e.g. <literal>75%</literal>,
3089 <literal>87.5%</literal>) or permille (e.g. <literal>875</literal>). This will be ignored when
3090 <varname>BitRate=</varname> is unspecified.</para>
3091 </listitem>
3092 </varlistentry>
3093 <varlistentry>
3094 <term><varname>TimeQuantaNSec=</varname></term>
3095 <term><varname>PropagationSegment=</varname></term>
3096 <term><varname>PhaseBufferSegment1=</varname></term>
3097 <term><varname>PhaseBufferSegment2=</varname></term>
3098 <term><varname>SyncJumpWidth=</varname></term>
3099 <listitem>
3100 <para>Specifies the time quanta, propagation segment, phase buffer segment 1 and 2, and the
3101 synchronization jump width, which allow to define the CAN bit-timing in a hardware
3102 independent format as proposed by the Bosch CAN 2.0 Specification.
3103 <varname>TimeQuantaNSec=</varname> takes a timespan in nanoseconds.
3104 <varname>PropagationSegment=</varname>, <varname>PhaseBufferSegment1=</varname>,
3105 <varname>PhaseBufferSegment2=</varname>, and <varname>SyncJumpWidth=</varname> take number
3106 of time quantum specified in <varname>TimeQuantaNSec=</varname> and must be an unsigned
3107 integer in the range 04294967295. These settings except for
3108 <varname>SyncJumpWidth=</varname> will be ignored when <varname>BitRate=</varname> is
3109 specified.</para>
3110 </listitem>
3111 </varlistentry>
3112 <varlistentry>
3113 <term><varname>DataBitRate=</varname></term>
3114 <term><varname>DataSamplePoint=</varname></term>
3115 <listitem>
3116 <para>The bitrate and sample point for the data phase, if CAN-FD is used. These settings are
3117 analogous to the <varname>BitRate=</varname> and <varname>SamplePoint=</varname> keys.</para>
3118 </listitem>
3119 </varlistentry>
3120 <varlistentry>
3121 <term><varname>DataTimeQuantaNSec=</varname></term>
3122 <term><varname>DataPropagationSegment=</varname></term>
3123 <term><varname>DataPhaseBufferSegment1=</varname></term>
3124 <term><varname>DataPhaseBufferSegment2=</varname></term>
3125 <term><varname>DataSyncJumpWidth=</varname></term>
3126 <listitem>
3127 <para>Specifies the time quanta, propagation segment, phase buffer segment 1 and 2, and the
3128 synchronization jump width for the data phase, if CAN-FD is used. These settings are
3129 analogous to the <varname>TimeQuantaNSec=</varname> or related settings.</para>
3130 </listitem>
3131 </varlistentry>
3132 <varlistentry>
3133 <term><varname>FDMode=</varname></term>
3134 <listitem>
3135 <para>Takes a boolean. When <literal>yes</literal>, CAN-FD mode is enabled for the interface.
3136 Note, that a bitrate and optional sample point should also be set for the CAN-FD data phase using
3137 the <varname>DataBitRate=</varname> and <varname>DataSamplePoint=</varname> keys, or
3138 <varname>DataTimeQuanta=</varname> and related settings.</para>
3139 </listitem>
3140 </varlistentry>
3141 <varlistentry>
3142 <term><varname>FDNonISO=</varname></term>
3143 <listitem>
3144 <para>Takes a boolean. When <literal>yes</literal>, non-ISO CAN-FD mode is enabled for the
3145 interface. When unset, the kernel's default will be used.</para>
3146 </listitem>
3147 </varlistentry>
3148 <varlistentry>
3149 <term><varname>RestartSec=</varname></term>
3150 <listitem>
3151 <para>Automatic restart delay time. If set to a non-zero value, a restart of the CAN controller will be
3152 triggered automatically in case of a bus-off condition after the specified delay time. Subsecond delays can
3153 be specified using decimals (e.g. <literal>0.1s</literal>) or a <literal>ms</literal> or
3154 <literal>us</literal> postfix. Using <literal>infinity</literal> or <literal>0</literal> will turn the
3155 automatic restart off. By default automatic restart is disabled.</para>
3156 </listitem>
3157 </varlistentry>
3158 <varlistentry>
3159 <term><varname>Termination=</varname></term>
3160 <listitem>
3161 <para>Takes a boolean or a termination resistor value in ohm in the range 065535. When
3162 <literal>yes</literal>, the termination resistor is set to 120 ohm. When
3163 <literal>no</literal> or <literal>0</literal> is set, the termination resistor is disabled.
3164 When unset, the kernel's default will be used.</para>
3165 </listitem>
3166 </varlistentry>
3167 <varlistentry>
3168 <term><varname>TripleSampling=</varname></term>
3169 <listitem>
3170 <para>Takes a boolean. When <literal>yes</literal>, three samples (instead of one) are used to determine
3171 the value of a received bit by majority rule. When unset, the kernel's default will be used.</para>
3172 </listitem>
3173 </varlistentry>
3174 <varlistentry>
3175 <term><varname>BusErrorReporting=</varname></term>
3176 <listitem>
3177 <para>Takes a boolean. When <literal>yes</literal>, reporting of CAN bus errors is activated
3178 (those include single bit, frame format, and bit stuffing errors, unable to send dominant bit,
3179 unable to send recessive bit, bus overload, active error announcement, error occurred on
3180 transmission). When unset, the kernel's default will be used. Note: in case of a CAN bus with a
3181 single CAN device, sending a CAN frame may result in a huge number of CAN bus errors.</para>
3182 </listitem>
3183 </varlistentry>
3184 <varlistentry>
3185 <term><varname>ListenOnly=</varname></term>
3186 <listitem>
3187 <para>Takes a boolean. When <literal>yes</literal>, listen-only mode is enabled. When the
3188 interface is in listen-only mode, the interface neither transmit CAN frames nor send ACK
3189 bit. Listen-only mode is important to debug CAN networks without interfering with the
3190 communication or acknowledge the CAN frame. When unset, the kernel's default will be used.
3191 </para>
3192 </listitem>
3193 </varlistentry>
3194 <varlistentry>
3195 <term><varname>Loopback=</varname></term>
3196 <listitem>
3197 <para>Takes a boolean. When <literal>yes</literal>, loopback mode is enabled. When the
3198 loopback mode is enabled, the interface treats messages transmitted by itself as received
3199 messages. The loopback mode is important to debug CAN networks. When unset, the kernel's
3200 default will be used.</para>
3201 </listitem>
3202 </varlistentry>
3203 <varlistentry>
3204 <term><varname>OneShot=</varname></term>
3205 <listitem>
3206 <para>Takes a boolean. When <literal>yes</literal>, one-shot mode is enabled. When unset,
3207 the kernel's default will be used.</para>
3208 </listitem>
3209 </varlistentry>
3210 <varlistentry>
3211 <term><varname>PresumeAck=</varname></term>
3212 <listitem>
3213 <para>Takes a boolean. When <literal>yes</literal>, the interface will ignore missing CAN
3214 ACKs. When unset, the kernel's default will be used.</para>
3215 </listitem>
3216 </varlistentry>
3217 <varlistentry>
3218 <term><varname>ClassicDataLengthCode=</varname></term>
3219 <listitem>
3220 <para>Takes a boolean. When <literal>yes</literal>, the interface will handle the 4bit data
3221 length code (DLC). When unset, the kernel's default will be used.</para>
3222 </listitem>
3223 </varlistentry>
3224 </variablelist>
3225 </refsect1>
3226
3227 <refsect1>
3228 <title>[IPoIB] Section Options</title>
3229 <para>The [IPoIB] section manages the IP over Infiniband and accepts the following keys:</para>
3230 <variablelist class='network-directives'>
3231 <xi:include href="systemd.netdev.xml" xpointer="ipoib_mode" />
3232 <xi:include href="systemd.netdev.xml" xpointer="ipoib_umcast" />
3233 </variablelist>
3234 </refsect1>
3235
3236 <refsect1>
3237 <title>[QDisc] Section Options</title>
3238 <para>The [QDisc] section manages the traffic control queueing discipline (qdisc).</para>
3239
3240 <variablelist class='network-directives'>
3241 <varlistentry>
3242 <term><varname>Parent=</varname></term>
3243 <listitem>
3244 <para>Specifies the parent Queueing Discipline (qdisc). Takes one of <literal>clsact</literal>
3245 or <literal>ingress</literal>. This is mandatory.</para>
3246 </listitem>
3247 </varlistentry>
3248
3249 <xi:include href="tc.xml" xpointer="qdisc-handle" />
3250 </variablelist>
3251 </refsect1>
3252
3253 <refsect1>
3254 <title>[NetworkEmulator] Section Options</title>
3255 <para>The [NetworkEmulator] section manages the queueing discipline (qdisc) of the network emulator. It
3256 can be used to configure the kernel packet scheduler and simulate packet delay and loss for UDP or TCP
3257 applications, or limit the bandwidth usage of a particular service to simulate internet connections.
3258 </para>
3259
3260 <variablelist class='network-directives'>
3261 <xi:include href="tc.xml" xpointer="qdisc-parent" />
3262 <xi:include href="tc.xml" xpointer="qdisc-handle" />
3263
3264 <varlistentry>
3265 <term><varname>DelaySec=</varname></term>
3266 <listitem>
3267 <para>Specifies the fixed amount of delay to be added to all packets going out of the
3268 interface. Defaults to unset.</para>
3269 </listitem>
3270 </varlistentry>
3271
3272 <varlistentry>
3273 <term><varname>DelayJitterSec=</varname></term>
3274 <listitem>
3275 <para>Specifies the chosen delay to be added to the packets outgoing to the network
3276 interface. Defaults to unset.</para>
3277 </listitem>
3278 </varlistentry>
3279
3280 <varlistentry>
3281 <term><varname>PacketLimit=</varname></term>
3282 <listitem>
3283 <para>Specifies the maximum number of packets the qdisc may hold queued at a time.
3284 An unsigned integer in the range 04294967294. Defaults to 1000.</para>
3285 </listitem>
3286 </varlistentry>
3287
3288 <varlistentry>
3289 <term><varname>LossRate=</varname></term>
3290 <listitem>
3291 <para>Specifies an independent loss probability to be added to the packets outgoing from the
3292 network interface. Takes a percentage value, suffixed with "%". Defaults to unset.</para>
3293 </listitem>
3294 </varlistentry>
3295
3296 <varlistentry>
3297 <term><varname>DuplicateRate=</varname></term>
3298 <listitem>
3299 <para>Specifies that the chosen percent of packets is duplicated before queuing them.
3300 Takes a percentage value, suffixed with "%". Defaults to unset.</para>
3301 </listitem>
3302 </varlistentry>
3303 </variablelist>
3304 </refsect1>
3305
3306 <refsect1>
3307 <title>[TokenBucketFilter] Section Options</title>
3308 <para>The [TokenBucketFilter] section manages the queueing discipline (qdisc) of token bucket filter
3309 (tbf).</para>
3310
3311 <variablelist class='network-directives'>
3312 <xi:include href="tc.xml" xpointer="qdisc-parent" />
3313 <xi:include href="tc.xml" xpointer="qdisc-handle" />
3314
3315 <varlistentry>
3316 <term><varname>LatencySec=</varname></term>
3317 <listitem>
3318 <para>Specifies the latency parameter, which specifies the maximum amount of time a
3319 packet can sit in the Token Bucket Filter (TBF). Defaults to unset.</para>
3320 </listitem>
3321 </varlistentry>
3322
3323 <varlistentry>
3324 <term><varname>LimitBytes=</varname></term>
3325 <listitem>
3326 <para>Takes the number of bytes that can be queued waiting for tokens to become available.
3327 When the size is suffixed with K, M, or G, it is parsed as Kilobytes, Megabytes, or Gigabytes,
3328 respectively, to the base of 1024. Defaults to unset.</para>
3329 </listitem>
3330 </varlistentry>
3331
3332 <varlistentry>
3333 <term><varname>BurstBytes=</varname></term>
3334 <listitem>
3335 <para>Specifies the size of the bucket. This is the maximum amount of bytes that tokens
3336 can be available for instantaneous transfer. When the size is suffixed with K, M, or G, it is
3337 parsed as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of 1024. Defaults to
3338 unset.</para>
3339 </listitem>
3340 </varlistentry>
3341
3342 <varlistentry>
3343 <term><varname>Rate=</varname></term>
3344 <listitem>
3345 <para>Specifies the device specific bandwidth. When suffixed with K, M, or G, the specified
3346 bandwidth is parsed as Kilobits, Megabits, or Gigabits, respectively, to the base of 1000.
3347 Defaults to unset.</para>
3348 </listitem>
3349 </varlistentry>
3350
3351 <varlistentry>
3352 <term><varname>MPUBytes=</varname></term>
3353 <listitem>
3354 <para>The Minimum Packet Unit (MPU) determines the minimal token usage (specified in bytes)
3355 for a packet. When suffixed with K, M, or G, the specified size is parsed as Kilobytes,
3356 Megabytes, or Gigabytes, respectively, to the base of 1024. Defaults to zero.</para>
3357 </listitem>
3358 </varlistentry>
3359
3360 <varlistentry>
3361 <term><varname>PeakRate=</varname></term>
3362 <listitem>
3363 <para>Takes the maximum depletion rate of the bucket. When suffixed with K, M, or G, the
3364 specified size is parsed as Kilobits, Megabits, or Gigabits, respectively, to the base of
3365 1000. Defaults to unset.</para>
3366 </listitem>
3367 </varlistentry>
3368
3369 <varlistentry>
3370 <term><varname>MTUBytes=</varname></term>
3371 <listitem>
3372 <para>Specifies the size of the peakrate bucket. When suffixed with K, M, or G, the specified
3373 size is parsed as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of 1024.
3374 Defaults to unset.</para>
3375 </listitem>
3376 </varlistentry>
3377 </variablelist>
3378 </refsect1>
3379
3380 <refsect1>
3381 <title>[PIE] Section Options</title>
3382 <para>The [PIE] section manages the queueing discipline (qdisc) of Proportional Integral
3383 controller-Enhanced (PIE).</para>
3384
3385 <variablelist class='network-directives'>
3386 <xi:include href="tc.xml" xpointer="qdisc-parent" />
3387 <xi:include href="tc.xml" xpointer="qdisc-handle" />
3388
3389 <varlistentry>
3390 <term><varname>PacketLimit=</varname></term>
3391 <listitem>
3392 <para>Specifies the hard limit on the queue size in number of packets. When this limit is reached,
3393 incoming packets are dropped. An unsigned integer in the range 14294967294. Defaults to unset and
3394 kernel's default is used.</para>
3395 </listitem>
3396 </varlistentry>
3397 </variablelist>
3398 </refsect1>
3399
3400 <refsect1>
3401 <title>[FlowQueuePIE] Section Options</title>
3402 <para>The <literal>[FlowQueuePIE]</literal> section manages the queueing discipline
3403 (qdisc) of Flow Queue Proportional Integral controller-Enhanced (fq_pie).</para>
3404
3405 <variablelist class='network-directives'>
3406 <xi:include href="tc.xml" xpointer="qdisc-parent" />
3407 <xi:include href="tc.xml" xpointer="qdisc-handle" />
3408
3409 <varlistentry>
3410 <term><varname>PacketLimit=</varname></term>
3411 <listitem>
3412 <para>Specifies the hard limit on the queue size in number of packets. When this limit is reached,
3413 incoming packets are dropped. An unsigned integer ranges 1 to 4294967294. Defaults to unset and
3414 kernel's default is used.</para>
3415 </listitem>
3416 </varlistentry>
3417 </variablelist>
3418 </refsect1>
3419
3420 <refsect1>
3421 <title>[StochasticFairBlue] Section Options</title>
3422 <para>The [StochasticFairBlue] section manages the queueing discipline (qdisc) of stochastic fair blue
3423 (sfb).</para>
3424
3425 <variablelist class='network-directives'>
3426 <xi:include href="tc.xml" xpointer="qdisc-parent" />
3427 <xi:include href="tc.xml" xpointer="qdisc-handle" />
3428
3429 <varlistentry>
3430 <term><varname>PacketLimit=</varname></term>
3431 <listitem>
3432 <para>Specifies the hard limit on the queue size in number of packets. When this limit is reached,
3433 incoming packets are dropped. An unsigned integer in the range 04294967294. Defaults to unset and
3434 kernel's default is used.</para>
3435 </listitem>
3436 </varlistentry>
3437 </variablelist>
3438 </refsect1>
3439
3440 <refsect1>
3441 <title>[StochasticFairnessQueueing] Section Options</title>
3442 <para>The [StochasticFairnessQueueing] section manages the queueing discipline (qdisc) of stochastic
3443 fairness queueing (sfq).</para>
3444
3445 <variablelist class='network-directives'>
3446 <xi:include href="tc.xml" xpointer="qdisc-parent" />
3447 <xi:include href="tc.xml" xpointer="qdisc-handle" />
3448
3449 <varlistentry>
3450 <term><varname>PerturbPeriodSec=</varname></term>
3451 <listitem>
3452 <para>Specifies the interval in seconds for queue algorithm perturbation. Defaults to unset.</para>
3453 </listitem>
3454 </varlistentry>
3455 </variablelist>
3456 </refsect1>
3457
3458 <refsect1>
3459 <title>[BFIFO] Section Options</title>
3460 <para>The [BFIFO] section manages the queueing discipline (qdisc) of Byte limited Packet First In First
3461 Out (bfifo).</para>
3462
3463 <variablelist class='network-directives'>
3464 <xi:include href="tc.xml" xpointer="qdisc-parent" />
3465 <xi:include href="tc.xml" xpointer="qdisc-handle" />
3466
3467 <varlistentry>
3468 <term><varname>LimitBytes=</varname></term>
3469 <listitem>
3470 <para>Specifies the hard limit in bytes on the FIFO buffer size. The size limit prevents overflow
3471 in case the kernel is unable to dequeue packets as quickly as it receives them. When this limit is
3472 reached, incoming packets are dropped. When suffixed with K, M, or G, the specified size is parsed
3473 as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of 1024. Defaults to unset and
3474 kernel default is used.</para>
3475 </listitem>
3476 </varlistentry>
3477 </variablelist>
3478 </refsect1>
3479
3480 <refsect1>
3481 <title>[PFIFO] Section Options</title>
3482 <para>The [PFIFO] section manages the queueing discipline (qdisc) of Packet First In First Out
3483 (pfifo).</para>
3484
3485 <variablelist class='network-directives'>
3486 <xi:include href="tc.xml" xpointer="qdisc-parent" />
3487 <xi:include href="tc.xml" xpointer="qdisc-handle" />
3488
3489 <varlistentry>
3490 <term><varname>PacketLimit=</varname></term>
3491 <listitem>
3492 <para>Specifies the hard limit on the number of packets in the FIFO queue. The size limit prevents
3493 overflow in case the kernel is unable to dequeue packets as quickly as it receives them. When this
3494 limit is reached, incoming packets are dropped. An unsigned integer in the range
3495 04294967294. Defaults to unset and kernel's default is used.</para>
3496 </listitem>
3497 </varlistentry>
3498 </variablelist>
3499 </refsect1>
3500
3501 <refsect1>
3502 <title>[PFIFOHeadDrop] Section Options</title>
3503 <para>The [PFIFOHeadDrop] section manages the queueing discipline (qdisc) of Packet First In First Out
3504 Head Drop (pfifo_head_drop).</para>
3505
3506 <variablelist class='network-directives'>
3507 <xi:include href="tc.xml" xpointer="qdisc-parent" />
3508 <xi:include href="tc.xml" xpointer="qdisc-handle" />
3509
3510 <varlistentry>
3511 <term><varname>PacketLimit=</varname></term>
3512 <listitem>
3513 <para>As in [PFIFO] section.</para></listitem>
3514 </varlistentry>
3515 </variablelist>
3516 </refsect1>
3517
3518 <refsect1>
3519 <title>[PFIFOFast] Section Options</title>
3520 <para>The [PFIFOFast] section manages the queueing discipline (qdisc) of Packet First In First Out Fast
3521 (pfifo_fast).</para>
3522
3523 <variablelist class='network-directives'>
3524 <xi:include href="tc.xml" xpointer="qdisc-parent" />
3525 <xi:include href="tc.xml" xpointer="qdisc-handle" />
3526 </variablelist>
3527 </refsect1>
3528
3529 <refsect1>
3530 <title>[CAKE] Section Options</title>
3531 <para>The [CAKE] section manages the queueing discipline (qdisc) of Common Applications Kept Enhanced
3532 (CAKE).</para>
3533
3534 <variablelist class='network-directives'>
3535 <xi:include href="tc.xml" xpointer="qdisc-parent" />
3536 <xi:include href="tc.xml" xpointer="qdisc-handle" />
3537
3538 <varlistentry>
3539 <term><varname>Bandwidth=</varname></term>
3540 <listitem>
3541 <para>Specifies the shaper bandwidth. When suffixed with K, M, or G, the specified size is
3542 parsed as Kilobits, Megabits, or Gigabits, respectively, to the base of 1000. Defaults to
3543 unset and kernel's default is used.</para>
3544 </listitem>
3545 </varlistentry>
3546
3547 <varlistentry>
3548 <term><varname>AutoRateIngress=</varname></term>
3549 <listitem>
3550 <para>Takes a boolean value. Enables automatic capacity estimation based on traffic arriving
3551 at this qdisc. This is most likely to be useful with cellular links, which tend to change
3552 quality randomly. If this setting is enabled, the <varname>Bandwidth=</varname> setting is
3553 used as an initial estimate. Defaults to unset, and the kernel's default is used.</para>
3554 </listitem>
3555 </varlistentry>
3556
3557 <varlistentry>
3558 <term><varname>OverheadBytes=</varname></term>
3559 <listitem>
3560 <para>Specifies that bytes to be addeded to the size of each packet. Bytes may be negative.
3561 Takes an integer in the range -64256. Defaults to unset and kernel's default is used.
3562 </para>
3563 </listitem>
3564 </varlistentry>
3565
3566 <varlistentry>
3567 <term><varname>MPUBytes=</varname></term>
3568 <listitem>
3569 <para>Rounds each packet (including overhead) up to the specified bytes. Takes an integer in
3570 the range 1256. Defaults to unset and kernel's default is used.</para>
3571 </listitem>
3572 </varlistentry>
3573
3574 <varlistentry>
3575 <term><varname>CompensationMode=</varname></term>
3576 <listitem>
3577 <para>Takes one of <literal>none</literal>, <literal>atm</literal>, or <literal>ptm</literal>.
3578 Specifies the compensation mode for overhead calculation. When <literal>none</literal>, no
3579 compensation is taken into account. When <literal>atm</literal>, enables the compensation for
3580 ATM cell framing, which is normally found on ADSL links. When <literal>ptm</literal>, enables
3581 the compensation for PTM encoding, which is normally found on VDSL2 links and uses a 64b/65b
3582 encoding scheme. Defaults to unset and the kernel's default is used.</para>
3583 </listitem>
3584 </varlistentry>
3585
3586 <varlistentry>
3587 <term><varname>UseRawPacketSize=</varname></term>
3588 <listitem>
3589 <para>Takes a boolean value. When true, the packet size reported by the Linux kernel will be
3590 used, instead of the underlying IP packet size. Defaults to unset, and the kernel's default
3591 is used.</para>
3592 </listitem>
3593 </varlistentry>
3594
3595 <varlistentry>
3596 <term><varname>FlowIsolationMode=</varname></term>
3597 <listitem>
3598 <para>CAKE places packets from different flows into different queues, then packets from each
3599 queue are delivered fairly. This specifies whether the fairness is based on source address,
3600 destination address, individual flows, or any combination of those. The available values are:
3601 </para>
3602
3603 <variablelist>
3604 <varlistentry>
3605 <term><option>none</option></term>
3606 <listitem><para>
3607 The flow isolation is disabled, and all traffic passes through a single queue.
3608 </para></listitem>
3609 </varlistentry>
3610 <varlistentry>
3611 <term><option>src-host</option></term>
3612 <listitem><para>
3613 Flows are defined only by source address. Equivalnet to the <literal>srchost</literal>
3614 option for <command>tc qdisc</command> command. See also
3615 <citerefentry project='man-pages'><refentrytitle>tc-cake</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
3616 </para></listitem>
3617 </varlistentry>
3618 <varlistentry>
3619 <term><option>dst-host</option></term>
3620 <listitem><para>
3621 Flows are defined only by destination address. Equivalnet to the
3622 <literal>srchost</literal> option for <command>tc qdisc</command> command. See also
3623 <citerefentry project='man-pages'><refentrytitle>tc-cake</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
3624 </para></listitem>
3625 </varlistentry>
3626 <varlistentry>
3627 <term><option>hosts</option></term>
3628 <listitem><para>
3629 Flows are defined by source-destination host pairs. Equivalent to the same option for
3630 <command>tc qdisc</command> command. See also
3631 <citerefentry project='man-pages'><refentrytitle>tc-cake</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
3632 </para></listitem>
3633 </varlistentry>
3634 <varlistentry>
3635 <term><option>flows</option></term>
3636 <listitem><para>
3637 Flows are defined by the entire 5-tuple of source address, destination address,
3638 transport protocol, source port and destination port. Equivalent to the same option for
3639 <command>tc qdisc</command> command. See also
3640 <citerefentry project='man-pages'><refentrytitle>tc-cake</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
3641 </para></listitem>
3642 </varlistentry>
3643 <varlistentry>
3644 <term><option>dual-src-host</option></term>
3645 <listitem><para>
3646 Flows are defined by the 5-tuple (see <literal>flows</literal> in the above), and
3647 fairness is applied first over source addresses, then over individual flows. Equivalnet
3648 to the <literal>dual-srchost</literal> option for <command>tc qdisc</command> command.
3649 See also
3650 <citerefentry project='man-pages'><refentrytitle>tc-cake</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
3651 </para></listitem>
3652 </varlistentry>
3653 <varlistentry>
3654 <term><option>dual-dst-host</option></term>
3655 <listitem><para>
3656 Flows are defined by the 5-tuple (see <literal>flows</literal> in the above), and
3657 fairness is applied first over destination addresses, then over individual flows.
3658 Equivalnet to the <literal>dual-dsthost</literal> option for
3659 <command>tc qdisc</command> command. See also
3660 <citerefentry project='man-pages'><refentrytitle>tc-cake</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
3661 </para></listitem>
3662 </varlistentry>
3663 <varlistentry>
3664 <term><option>triple</option></term>
3665 <listitem><para>
3666 Flows are defined by the 5-tuple (see <literal>flows</literal>), and fairness is
3667 applied over source and destination addresses, and also over individual flows.
3668 Equivalnet to the <literal>triple-isolate</literal> option for
3669 <command>tc qdisc</command> command. See also
3670 <citerefentry project='man-pages'><refentrytitle>tc-cake</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
3671 </para></listitem>
3672 </varlistentry>
3673 </variablelist>
3674
3675 <para>Defaults to unset and the kernel's default is used.</para>
3676 </listitem>
3677 </varlistentry>
3678
3679 <varlistentry>
3680 <term><varname>NAT=</varname></term>
3681 <listitem>
3682 <para>Takes a boolean value. When true, CAKE performs a NAT lookup before applying
3683 flow-isolation rules, to determine the true addresses and port numbers of the packet, to
3684 improve fairness between hosts inside the NAT. This has no practical effect when
3685 <varname>FlowIsolationMode=</varname> is <literal>none</literal> or <literal>flows</literal>,
3686 or if NAT is performed on a different host. Defaults to unset, and the kernel's default is
3687 used.</para>
3688 </listitem>
3689 </varlistentry>
3690
3691 <varlistentry>
3692 <term><varname>PriorityQueueingPreset=</varname></term>
3693 <listitem>
3694 <para>CAKE divides traffic into <literal>tins</literal>, and each tin has its own independent
3695 set of flow-isolation queues, bandwidth threshold, and priority. This specifies the preset of
3696 tin profiles. The available values are:</para>
3697
3698 <variablelist>
3699 <varlistentry>
3700 <term><option>besteffort</option></term>
3701 <listitem><para>
3702 Disables priority queueing by placing all traffic in one tin.
3703 </para></listitem>
3704 </varlistentry>
3705 <varlistentry>
3706 <term><option>precedence</option></term>
3707 <listitem><para>
3708 Enables priority queueing based on the legacy interpretation of TOS
3709 <literal>Precedence</literal> field. Use of this preset on the modern Internet is
3710 firmly discouraged.
3711 </para></listitem>
3712 </varlistentry>
3713 <varlistentry>
3714 <term><option>diffserv8</option></term>
3715 <listitem><para>
3716 Enables priority queueing based on the Differentiated Service
3717 (<literal>DiffServ</literal>) field with eight tins: Background Traffic, High
3718 Throughput, Best Effort, Video Streaming, Low Latency Transactions, Interactive Shell,
3719 Minimum Latency, and Network Control.
3720 </para></listitem>
3721 </varlistentry>
3722 <varlistentry>
3723 <term><option>diffserv4</option></term>
3724 <listitem><para>
3725 Enables priority queueing based on the Differentiated Service
3726 (<literal>DiffServ</literal>) field with four tins: Background Traffic, Best Effort,
3727 Streaming Media, and Latency Sensitive.
3728 </para></listitem>
3729 </varlistentry>
3730 <varlistentry>
3731 <term><option>diffserv3</option></term>
3732 <listitem><para>
3733 Enables priority queueing based on the Differentiated Service
3734 (<literal>DiffServ</literal>) field with three tins: Background Traffic, Best Effort,
3735 and Latency Sensitive.
3736 </para></listitem>
3737 </varlistentry>
3738 </variablelist>
3739
3740 <para>Defaults to unset, and the kernel's default is used.</para>
3741 </listitem>
3742 </varlistentry>
3743
3744 <varlistentry>
3745 <term><varname>FirewallMark=</varname></term>
3746 <listitem>
3747 <para>Takes an integer in the range 14294967295. When specified, firewall-mark-based
3748 overriding of CAKE's tin selection is enabled. Defaults to unset, and the kernel's default is
3749 used.</para>
3750 </listitem>
3751 </varlistentry>
3752
3753 <varlistentry>
3754 <term><varname>Wash=</varname></term>
3755 <listitem>
3756 <para>Takes a boolean value. When true, CAKE clears the DSCP fields, except for ECN bits, of
3757 any packet passing through CAKE. Defaults to unset, and the kernel's default is used.</para>
3758 </listitem>
3759 </varlistentry>
3760
3761 <varlistentry>
3762 <term><varname>SplitGSO=</varname></term>
3763 <listitem>
3764 <para>Takes a boolean value. When true, CAKE will split General Segmentation Offload (GSO)
3765 super-packets into their on-the-wire components and dequeue them individually. Defaults to
3766 unset, and the kernel's default is used.</para>
3767 </listitem>
3768 </varlistentry>
3769
3770 </variablelist>
3771 </refsect1>
3772
3773 <refsect1>
3774 <title>[ControlledDelay] Section Options</title>
3775 <para>The [ControlledDelay] section manages the queueing discipline (qdisc) of
3776 controlled delay (CoDel).</para>
3777
3778 <variablelist class='network-directives'>
3779 <xi:include href="tc.xml" xpointer="qdisc-parent" />
3780 <xi:include href="tc.xml" xpointer="qdisc-handle" />
3781
3782 <varlistentry>
3783 <term><varname>PacketLimit=</varname></term>
3784 <listitem>
3785 <para>Specifies the hard limit on the queue size in number of packets. When this limit is reached,
3786 incoming packets are dropped. An unsigned integer in the range 04294967294. Defaults to unset and
3787 kernel's default is used.</para>
3788 </listitem>
3789 </varlistentry>
3790
3791 <varlistentry>
3792 <term><varname>TargetSec=</varname></term>
3793 <listitem>
3794 <para>Takes a timespan. Specifies the acceptable minimum standing/persistent queue delay.
3795 Defaults to unset and kernel's default is used.</para>
3796 </listitem>
3797 </varlistentry>
3798
3799 <varlistentry>
3800 <term><varname>IntervalSec=</varname></term>
3801 <listitem>
3802 <para>Takes a timespan. This is used to ensure that the measured minimum delay does not
3803 become too stale. Defaults to unset and kernel's default is used.</para>
3804 </listitem>
3805 </varlistentry>
3806
3807 <varlistentry>
3808 <term><varname>ECN=</varname></term>
3809 <listitem>
3810 <para>Takes a boolean. This can be used to mark packets instead of dropping them. Defaults to
3811 unset and kernel's default is used.</para>
3812 </listitem>
3813 </varlistentry>
3814
3815 <varlistentry>
3816 <term><varname>CEThresholdSec=</varname></term>
3817 <listitem>
3818 <para>Takes a timespan. This sets a threshold above which all packets are marked with ECN
3819 Congestion Experienced (CE). Defaults to unset and kernel's default is used.</para>
3820 </listitem>
3821 </varlistentry>
3822 </variablelist>
3823 </refsect1>
3824
3825 <refsect1>
3826 <title>[DeficitRoundRobinScheduler] Section Options</title>
3827 <para>The [DeficitRoundRobinScheduler] section manages the queueing discipline (qdisc) of Deficit Round
3828 Robin Scheduler (DRR).</para>
3829
3830 <variablelist class='network-directives'>
3831 <xi:include href="tc.xml" xpointer="qdisc-parent" />
3832 <xi:include href="tc.xml" xpointer="qdisc-handle" />
3833 </variablelist>
3834 </refsect1>
3835
3836 <refsect1>
3837 <title>[DeficitRoundRobinSchedulerClass] Section Options</title>
3838 <para>The [DeficitRoundRobinSchedulerClass] section manages the traffic control class of Deficit Round
3839 Robin Scheduler (DRR).</para>
3840
3841 <variablelist class='network-directives'>
3842 <xi:include href="tc.xml" xpointer="tclass-parent" />
3843 <xi:include href="tc.xml" xpointer="tclass-classid" />
3844
3845 <varlistentry>
3846 <term><varname>QuantumBytes=</varname></term>
3847 <listitem>
3848 <para>Specifies the amount of bytes a flow is allowed to dequeue before the scheduler moves
3849 to the next class. When suffixed with K, M, or G, the specified size is parsed as Kilobytes,
3850 Megabytes, or Gigabytes, respectively, to the base of 1024. Defaults to the MTU of the
3851 interface.</para>
3852 </listitem>
3853 </varlistentry>
3854
3855 </variablelist>
3856 </refsect1>
3857
3858 <refsect1>
3859 <title>[EnhancedTransmissionSelection] Section Options</title>
3860 <para>The [EnhancedTransmissionSelection] section manages the queueing discipline (qdisc) of Enhanced
3861 Transmission Selection (ETS).</para>
3862
3863 <variablelist class='network-directives'>
3864 <xi:include href="tc.xml" xpointer="qdisc-parent" />
3865 <xi:include href="tc.xml" xpointer="qdisc-handle" />
3866
3867 <varlistentry>
3868 <term><varname>Bands=</varname></term>
3869 <listitem>
3870 <para>Specifies the number of bands. An unsigned integer in the range 116. This value has to be at
3871 least large enough to cover the strict bands specified through the <varname>StrictBands=</varname>
3872 and bandwidth-sharing bands specified in <varname>QuantumBytes=</varname>.</para>
3873 </listitem>
3874 </varlistentry>
3875
3876 <varlistentry>
3877 <term><varname>StrictBands=</varname></term>
3878 <listitem>
3879 <para>Specifies the number of bands that should be created in strict mode. An unsigned integer in
3880 the range 116.</para>
3881 </listitem>
3882 </varlistentry>
3883
3884 <varlistentry>
3885 <term><varname>QuantumBytes=</varname></term>
3886 <listitem>
3887 <para>Specifies the white-space separated list of quantum used in band-sharing bands. When
3888 suffixed with K, M, or G, the specified size is parsed as Kilobytes, Megabytes, or Gigabytes,
3889 respectively, to the base of 1024. This setting can be specified multiple times. If an empty
3890 string is assigned, then the all previous assignments are cleared.</para>
3891 </listitem>
3892 </varlistentry>
3893
3894 <varlistentry>
3895 <term><varname>PriorityMap=</varname></term>
3896 <listitem>
3897 <para>The priority map maps the priority of a packet to a band. The argument is a whitespace
3898 separated list of numbers. The first number indicates which band the packets with priority 0 should
3899 be put to, the second is for priority 1, and so on. There can be up to 16 numbers in the list. If
3900 there are fewer, the default band that traffic with one of the unmentioned priorities goes to is
3901 the last one. Each band number must be in the range 0255. This setting can be specified multiple
3902 times. If an empty string is assigned, then the all previous assignments are cleared.</para>
3903 </listitem>
3904 </varlistentry>
3905 </variablelist>
3906 </refsect1>
3907
3908 <refsect1>
3909 <title>[GenericRandomEarlyDetection] Section Options</title>
3910 <para>The [GenericRandomEarlyDetection] section manages the queueing discipline (qdisc) of Generic Random
3911 Early Detection (GRED).</para>
3912
3913 <variablelist class='network-directives'>
3914 <xi:include href="tc.xml" xpointer="qdisc-parent" />
3915 <xi:include href="tc.xml" xpointer="qdisc-handle" />
3916
3917 <varlistentry>
3918 <term><varname>VirtualQueues=</varname></term>
3919 <listitem>
3920 <para>Specifies the number of virtual queues. Takes an integer in the range 116. Defaults to unset
3921 and kernel's default is used.</para>
3922 </listitem>
3923 </varlistentry>
3924
3925 <varlistentry>
3926 <term><varname>DefaultVirtualQueue=</varname></term>
3927 <listitem>
3928 <para>Specifies the number of default virtual queue. This must be less than <varname>VirtualQueue=</varname>.
3929 Defaults to unset and kernel's default is used.</para>
3930 </listitem>
3931 </varlistentry>
3932
3933 <varlistentry>
3934 <term><varname>GenericRIO=</varname></term>
3935 <listitem>
3936 <para>Takes a boolean. It turns on the RIO-like buffering scheme. Defaults to
3937 unset and kernel's default is used.</para>
3938 </listitem>
3939 </varlistentry>
3940 </variablelist>
3941 </refsect1>
3942
3943 <refsect1>
3944 <title>[FairQueueingControlledDelay] Section Options</title>
3945 <para>The [FairQueueingControlledDelay] section manages the queueing discipline (qdisc) of fair queuing
3946 controlled delay (FQ-CoDel).</para>
3947
3948 <variablelist class='network-directives'>
3949 <xi:include href="tc.xml" xpointer="qdisc-parent" />
3950 <xi:include href="tc.xml" xpointer="qdisc-handle" />
3951
3952 <varlistentry>
3953 <term><varname>PacketLimit=</varname></term>
3954 <listitem>
3955 <para>Specifies the hard limit on the real queue size. When this limit is reached, incoming packets are
3956 dropped. Defaults to unset and kernel's default is used.</para>
3957 </listitem>
3958 </varlistentry>
3959
3960 <varlistentry>
3961 <term><varname>MemoryLimitBytes=</varname></term>
3962 <listitem>
3963 <para>Specifies the limit on the total number of bytes that can be queued in this FQ-CoDel instance.
3964 When suffixed with K, M, or G, the specified size is parsed as Kilobytes, Megabytes, or Gigabytes,
3965 respectively, to the base of 1024. Defaults to unset and kernel's default is used.</para>
3966 </listitem>
3967 </varlistentry>
3968
3969 <varlistentry>
3970 <term><varname>Flows=</varname></term>
3971 <listitem>
3972 <para>Specifies the number of flows into which the incoming packets are classified.
3973 Defaults to unset and kernel's default is used.</para>
3974 </listitem>
3975 </varlistentry>
3976
3977 <varlistentry>
3978 <term><varname>TargetSec=</varname></term>
3979 <listitem>
3980 <para>Takes a timespan. Specifies the acceptable minimum standing/persistent queue delay.
3981 Defaults to unset and kernel's default is used.</para>
3982 </listitem>
3983 </varlistentry>
3984
3985 <varlistentry>
3986 <term><varname>IntervalSec=</varname></term>
3987 <listitem>
3988 <para>Takes a timespan. This is used to ensure that the measured minimum delay does not
3989 become too stale. Defaults to unset and kernel's default is used.</para>
3990 </listitem>
3991 </varlistentry>
3992
3993 <varlistentry>
3994 <term><varname>QuantumBytes=</varname></term>
3995 <listitem>
3996 <para>Specifies the number of bytes used as the "deficit" in the fair queuing algorithm timespan.
3997 When suffixed with K, M, or G, the specified size is parsed as Kilobytes, Megabytes, or Gigabytes,
3998 respectively, to the base of 1024. Defaults to unset and kernel's default is used.</para>
3999 </listitem>
4000 </varlistentry>
4001
4002 <varlistentry>
4003 <term><varname>ECN=</varname></term>
4004 <listitem>
4005 <para>Takes a boolean. This can be used to mark packets instead of dropping them. Defaults to
4006 unset and kernel's default is used.</para>
4007 </listitem>
4008 </varlistentry>
4009
4010 <varlistentry>
4011 <term><varname>CEThresholdSec=</varname></term>
4012 <listitem>
4013 <para>Takes a timespan. This sets a threshold above which all packets are marked with ECN
4014 Congestion Experienced (CE). Defaults to unset and kernel's default is used.</para>
4015 </listitem>
4016 </varlistentry>
4017 </variablelist>
4018 </refsect1>
4019
4020 <refsect1>
4021 <title>[FairQueueing] Section Options</title>
4022 <para>The [FairQueueing] section manages the queueing discipline (qdisc) of fair queue traffic policing
4023 (FQ).</para>
4024
4025 <variablelist class='network-directives'>
4026 <xi:include href="tc.xml" xpointer="qdisc-parent" />
4027 <xi:include href="tc.xml" xpointer="qdisc-handle" />
4028
4029 <varlistentry>
4030 <term><varname>PacketLimit=</varname></term>
4031 <listitem>
4032 <para>Specifies the hard limit on the real queue size. When this limit is reached, incoming packets are
4033 dropped. Defaults to unset and kernel's default is used.</para>
4034 </listitem>
4035 </varlistentry>
4036
4037 <varlistentry>
4038 <term><varname>FlowLimit=</varname></term>
4039 <listitem>
4040 <para>Specifies the hard limit on the maximum number of packets queued per flow. Defaults to
4041 unset and kernel's default is used.</para>
4042 </listitem>
4043 </varlistentry>
4044
4045 <varlistentry>
4046 <term><varname>QuantumBytes=</varname></term>
4047 <listitem>
4048 <para>Specifies the credit per dequeue RR round, i.e. the amount of bytes a flow is allowed
4049 to dequeue at once. When suffixed with K, M, or G, the specified size is parsed as Kilobytes,
4050 Megabytes, or Gigabytes, respectively, to the base of 1024. Defaults to unset and kernel's
4051 default is used.</para>
4052 </listitem>
4053 </varlistentry>
4054
4055 <varlistentry>
4056 <term><varname>InitialQuantumBytes=</varname></term>
4057 <listitem>
4058 <para>Specifies the initial sending rate credit, i.e. the amount of bytes a new flow is
4059 allowed to dequeue initially. When suffixed with K, M, or G, the specified size is parsed as
4060 Kilobytes, Megabytes, or Gigabytes, respectively, to the base of 1024. Defaults to unset and
4061 kernel's default is used.</para>
4062 </listitem>
4063 </varlistentry>
4064
4065 <varlistentry>
4066 <term><varname>MaximumRate=</varname></term>
4067 <listitem>
4068 <para>Specifies the maximum sending rate of a flow. When suffixed with K, M, or G, the
4069 specified size is parsed as Kilobits, Megabits, or Gigabits, respectively, to the base of
4070 1000. Defaults to unset and kernel's default is used.</para>
4071 </listitem>
4072 </varlistentry>
4073
4074 <varlistentry>
4075 <term><varname>Buckets=</varname></term>
4076 <listitem>
4077 <para>Specifies the size of the hash table used for flow lookups. Defaults to unset and
4078 kernel's default is used.</para>
4079 </listitem>
4080 </varlistentry>
4081
4082 <varlistentry>
4083 <term><varname>OrphanMask=</varname></term>
4084 <listitem>
4085 <para>Takes an unsigned integer. For packets not owned by a socket, fq is able to mask a part
4086 of hash and reduce number of buckets associated with the traffic. Defaults to unset and
4087 kernel's default is used.</para>
4088 </listitem>
4089 </varlistentry>
4090
4091 <varlistentry>
4092 <term><varname>Pacing=</varname></term>
4093 <listitem>
4094 <para>Takes a boolean, and enables or disables flow pacing. Defaults to unset and kernel's
4095 default is used.</para>
4096 </listitem>
4097 </varlistentry>
4098
4099 <varlistentry>
4100 <term><varname>CEThresholdSec=</varname></term>
4101 <listitem>
4102 <para>Takes a timespan. This sets a threshold above which all packets are marked with ECN
4103 Congestion Experienced (CE). Defaults to unset and kernel's default is used.</para>
4104 </listitem>
4105 </varlistentry>
4106 </variablelist>
4107 </refsect1>
4108
4109 <refsect1>
4110 <title>[TrivialLinkEqualizer] Section Options</title>
4111 <para>The [TrivialLinkEqualizer] section manages the queueing discipline (qdisc) of trivial link
4112 equalizer (teql).</para>
4113
4114 <variablelist class='network-directives'>
4115 <xi:include href="tc.xml" xpointer="qdisc-parent" />
4116 <xi:include href="tc.xml" xpointer="qdisc-handle" />
4117
4118 <varlistentry>
4119 <term><varname>Id=</varname></term>
4120 <listitem>
4121 <para>Specifies the interface ID <literal>N</literal> of teql. Defaults to <literal>0</literal>.
4122 Note that when teql is used, currently, the module <constant>sch_teql</constant> with
4123 <constant>max_equalizers=N+1</constant> option must be loaded before
4124 <command>systemd-networkd</command> is started.</para>
4125 </listitem>
4126 </varlistentry>
4127 </variablelist>
4128 </refsect1>
4129
4130 <refsect1>
4131 <title>[HierarchyTokenBucket] Section Options</title>
4132 <para>The [HierarchyTokenBucket] section manages the queueing discipline (qdisc) of hierarchy token
4133 bucket (htb).</para>
4134
4135 <variablelist class='network-directives'>
4136 <xi:include href="tc.xml" xpointer="qdisc-parent" />
4137 <xi:include href="tc.xml" xpointer="qdisc-handle" />
4138
4139 <varlistentry>
4140 <term><varname>DefaultClass=</varname></term>
4141 <listitem>
4142 <para>Takes the minor id in hexadecimal of the default class. Unclassified traffic gets sent
4143 to the class. Defaults to unset.</para>
4144 </listitem>
4145 </varlistentry>
4146
4147 <varlistentry>
4148 <term><varname>RateToQuantum=</varname></term>
4149 <listitem>
4150 <para>Takes an unsigned integer. The DRR quantums are calculated by dividing the value
4151 configured in <varname>Rate=</varname> by <varname>RateToQuantum=</varname>.</para>
4152 </listitem>
4153 </varlistentry>
4154 </variablelist>
4155 </refsect1>
4156
4157 <refsect1>
4158 <title>[HierarchyTokenBucketClass] Section Options</title>
4159 <para>The [HierarchyTokenBucketClass] section manages the traffic control class of hierarchy token bucket
4160 (htb).</para>
4161
4162 <variablelist class='network-directives'>
4163 <xi:include href="tc.xml" xpointer="tclass-parent" />
4164 <xi:include href="tc.xml" xpointer="tclass-classid" />
4165
4166 <varlistentry>
4167 <term><varname>Priority=</varname></term>
4168 <listitem>
4169 <para>Specifies the priority of the class. In the round-robin process, classes with the lowest
4170 priority field are tried for packets first.</para>
4171 </listitem>
4172 </varlistentry>
4173
4174 <varlistentry>
4175 <term><varname>QuantumBytes=</varname></term>
4176 <listitem>
4177 <para>Specifies how many bytes to serve from leaf at once. When suffixed with K, M, or G, the
4178 specified size is parsed as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of
4179 1024.</para>
4180 </listitem>
4181 </varlistentry>
4182
4183 <varlistentry>
4184 <term><varname>MTUBytes=</varname></term>
4185 <listitem>
4186 <para>Specifies the maximum packet size we create. When suffixed with K, M, or G, the specified
4187 size is parsed as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of 1024.</para>
4188 </listitem>
4189 </varlistentry>
4190
4191 <varlistentry>
4192 <term><varname>OverheadBytes=</varname></term>
4193 <listitem>
4194 <para>Takes an unsigned integer which specifies per-packet size overhead used in rate
4195 computations. When suffixed with K, M, or G, the specified size is parsed as Kilobytes,
4196 Megabytes, or Gigabytes, respectively, to the base of 1024.</para>
4197 </listitem>
4198 </varlistentry>
4199
4200 <varlistentry>
4201 <term><varname>Rate=</varname></term>
4202 <listitem>
4203 <para>Specifies the maximum rate this class and all its children are guaranteed. When suffixed
4204 with K, M, or G, the specified size is parsed as Kilobits, Megabits, or Gigabits, respectively,
4205 to the base of 1000. This setting is mandatory.</para>
4206 </listitem>
4207 </varlistentry>
4208
4209 <varlistentry>
4210 <term><varname>CeilRate=</varname></term>
4211 <listitem>
4212 <para>Specifies the maximum rate at which a class can send, if its parent has bandwidth to spare.
4213 When suffixed with K, M, or G, the specified size is parsed as Kilobits, Megabits, or Gigabits,
4214 respectively, to the base of 1000. When unset, the value specified with <varname>Rate=</varname>
4215 is used.</para>
4216 </listitem>
4217 </varlistentry>
4218
4219 <varlistentry>
4220 <term><varname>BufferBytes=</varname></term>
4221 <listitem>
4222 <para>Specifies the maximum bytes burst which can be accumulated during idle period. When suffixed
4223 with K, M, or G, the specified size is parsed as Kilobytes, Megabytes, or Gigabytes, respectively,
4224 to the base of 1024.</para>
4225 </listitem>
4226 </varlistentry>
4227
4228 <varlistentry>
4229 <term><varname>CeilBufferBytes=</varname></term>
4230 <listitem>
4231 <para>Specifies the maximum bytes burst for ceil which can be accumulated during idle period.
4232 When suffixed with K, M, or G, the specified size is parsed as Kilobytes, Megabytes, or Gigabytes,
4233 respectively, to the base of 1024.</para>
4234 </listitem>
4235 </varlistentry>
4236 </variablelist>
4237 </refsect1>
4238
4239 <refsect1>
4240 <title>[HeavyHitterFilter] Section Options</title>
4241 <para>The [HeavyHitterFilter] section manages the queueing discipline (qdisc) of Heavy Hitter Filter
4242 (hhf).</para>
4243
4244 <variablelist class='network-directives'>
4245 <xi:include href="tc.xml" xpointer="qdisc-parent" />
4246 <xi:include href="tc.xml" xpointer="qdisc-handle" />
4247
4248 <varlistentry>
4249 <term><varname>PacketLimit=</varname></term>
4250 <listitem>
4251 <para>Specifies the hard limit on the queue size in number of packets. When this limit is reached,
4252 incoming packets are dropped. An unsigned integer in the range 04294967294. Defaults to unset and
4253 kernel's default is used.</para>
4254 </listitem>
4255 </varlistentry>
4256 </variablelist>
4257 </refsect1>
4258
4259 <refsect1>
4260 <title>[QuickFairQueueing] Section Options</title>
4261 <para>The [QuickFairQueueing] section manages the queueing discipline (qdisc) of Quick Fair Queueing
4262 (QFQ).</para>
4263
4264 <variablelist class='network-directives'>
4265 <xi:include href="tc.xml" xpointer="qdisc-parent" />
4266 <xi:include href="tc.xml" xpointer="qdisc-handle" />
4267 </variablelist>
4268 </refsect1>
4269
4270 <refsect1>
4271 <title>[QuickFairQueueingClass] Section Options</title>
4272 <para>The [QuickFairQueueingClass] section manages the traffic control class of Quick Fair Queueing
4273 (qfq).</para>
4274
4275 <variablelist class='network-directives'>
4276 <xi:include href="tc.xml" xpointer="tclass-parent" />
4277 <xi:include href="tc.xml" xpointer="tclass-classid" />
4278
4279 <varlistentry>
4280 <term><varname>Weight=</varname></term>
4281 <listitem>
4282 <para>Specifies the weight of the class. Takes an integer in the range 11023. Defaults to
4283 unset in which case the kernel default is used.</para>
4284 </listitem>
4285 </varlistentry>
4286
4287 <varlistentry>
4288 <term><varname>MaxPacketBytes=</varname></term>
4289 <listitem>
4290 <para>Specifies the maximum packet size in bytes for the class. When suffixed with K, M, or G, the
4291 specified size is parsed as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of
4292 1024. When unset, the kernel default is used.</para>
4293 </listitem>
4294 </varlistentry>
4295 </variablelist>
4296 </refsect1>
4297
4298 <refsect1>
4299 <title>[BridgeVLAN] Section Options</title>
4300 <para>The [BridgeVLAN] section manages the VLAN ID configuration of a bridge port and accepts the
4301 following keys. Specify several [BridgeVLAN] sections to configure several VLAN entries. The
4302 <varname>VLANFiltering=</varname> option has to be enabled, see the [Bridge] section in
4303 <citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
4304
4305 <variablelist class='network-directives'>
4306 <varlistentry>
4307 <term><varname>VLAN=</varname></term>
4308 <listitem>
4309 <para>The VLAN ID allowed on the port. This can be either a single ID or a range M-N. Takes
4310 an integer in the range 14094.</para>
4311 </listitem>
4312 </varlistentry>
4313 <varlistentry>
4314 <term><varname>EgressUntagged=</varname></term>
4315 <listitem>
4316 <para>The VLAN ID specified here will be used to untag frames on egress. Configuring
4317 <varname>EgressUntagged=</varname> implicates the use of <varname>VLAN=</varname> above and will enable the
4318 VLAN ID for ingress as well. This can be either a single ID or a range M-N.</para>
4319 </listitem>
4320 </varlistentry>
4321 <varlistentry>
4322 <term><varname>PVID=</varname></term>
4323 <listitem>
4324 <para>The Port VLAN ID specified here is assigned to all untagged frames at ingress.
4325 <varname>PVID=</varname> can be used only once. Configuring <varname>PVID=</varname> implicates the use of
4326 <varname>VLAN=</varname> above and will enable the VLAN ID for ingress as well.</para>
4327 </listitem>
4328 </varlistentry>
4329 </variablelist>
4330 </refsect1>
4331
4332 <refsect1>
4333 <title>Examples</title>
4334 <example>
4335 <title>Static network configuration</title>
4336
4337 <programlisting># /etc/systemd/network/50-static.network
4338 [Match]
4339 Name=enp2s0
4340
4341 [Network]
4342 Address=192.168.0.15/24
4343 Gateway=192.168.0.1</programlisting>
4344
4345 <para>This brings interface <literal>enp2s0</literal> up with a static address. The
4346 specified gateway will be used for a default route.</para>
4347 </example>
4348
4349 <example>
4350 <title>DHCP on ethernet links</title>
4351
4352 <programlisting># /etc/systemd/network/80-dhcp.network
4353 [Match]
4354 Name=en*
4355
4356 [Network]
4357 DHCP=yes</programlisting>
4358
4359 <para>This will enable DHCPv4 and DHCPv6 on all interfaces with names starting with
4360 <literal>en</literal> (i.e. ethernet interfaces).</para>
4361 </example>
4362
4363 <example>
4364 <title>IPv6 Prefix Delegation</title>
4365
4366 <programlisting># /etc/systemd/network/55-ipv6-pd-upstream.network
4367 [Match]
4368 Name=enp1s0
4369
4370 [Network]
4371 DHCP=ipv6</programlisting>
4372
4373 <programlisting># /etc/systemd/network/56-ipv6-pd-downstream.network
4374 [Match]
4375 Name=enp2s0
4376
4377 [Network]
4378 IPv6SendRA=yes
4379 DHCPv6PrefixDelegation=yes</programlisting>
4380
4381 <para>This will enable DHCPv6-PD on the interface enp1s0 as an upstream interface where the
4382 DHCPv6 client is running and enp2s0 as a downstream interface where the prefix is delegated to.
4383 The delegated prefixes are distributed by IPv6 Router Advertisement on the downstream network.
4384 </para>
4385 </example>
4386
4387 <example>
4388 <title>A bridge with two enslaved links</title>
4389
4390 <programlisting># /etc/systemd/network/25-bridge-static.network
4391 [Match]
4392 Name=bridge0
4393
4394 [Network]
4395 Address=192.168.0.15/24
4396 Gateway=192.168.0.1
4397 DNS=192.168.0.1</programlisting>
4398
4399 <programlisting># /etc/systemd/network/25-bridge-slave-interface-1.network
4400 [Match]
4401 Name=enp2s0
4402
4403 [Network]
4404 Bridge=bridge0</programlisting>
4405
4406 <programlisting># /etc/systemd/network/25-bridge-slave-interface-2.network
4407 [Match]
4408 Name=wlp3s0
4409
4410 [Network]
4411 Bridge=bridge0</programlisting>
4412
4413 <para>This creates a bridge and attaches devices <literal>enp2s0</literal> and
4414 <literal>wlp3s0</literal> to it. The bridge will have the specified static address
4415 and network assigned, and a default route via the specified gateway will be
4416 added. The specified DNS server will be added to the global list of DNS resolvers.
4417 </para>
4418 </example>
4419
4420 <example>
4421 <title></title>
4422
4423 <programlisting>
4424 # /etc/systemd/network/20-bridge-slave-interface-vlan.network
4425 [Match]
4426 Name=enp2s0
4427
4428 [Network]
4429 Bridge=bridge0
4430
4431 [BridgeVLAN]
4432 VLAN=1-32
4433 PVID=42
4434 EgressUntagged=42
4435
4436 [BridgeVLAN]
4437 VLAN=100-200
4438
4439 [BridgeVLAN]
4440 EgressUntagged=300-400</programlisting>
4441
4442 <para>This overrides the configuration specified in the previous example for the
4443 interface <literal>enp2s0</literal>, and enables VLAN on that bridge port. VLAN IDs
4444 1-32, 42, 100-400 will be allowed. Packets tagged with VLAN IDs 42, 300-400 will be
4445 untagged when they leave on this interface. Untagged packets which arrive on this
4446 interface will be assigned VLAN ID 42.</para>
4447 </example>
4448
4449 <example>
4450 <title>Various tunnels</title>
4451
4452 <programlisting>/etc/systemd/network/25-tunnels.network
4453 [Match]
4454 Name=ens1
4455
4456 [Network]
4457 Tunnel=ipip-tun
4458 Tunnel=sit-tun
4459 Tunnel=gre-tun
4460 Tunnel=vti-tun
4461 </programlisting>
4462
4463 <programlisting>/etc/systemd/network/25-tunnel-ipip.netdev
4464 [NetDev]
4465 Name=ipip-tun
4466 Kind=ipip
4467 </programlisting>
4468
4469 <programlisting>/etc/systemd/network/25-tunnel-sit.netdev
4470 [NetDev]
4471 Name=sit-tun
4472 Kind=sit
4473 </programlisting>
4474
4475 <programlisting>/etc/systemd/network/25-tunnel-gre.netdev
4476 [NetDev]
4477 Name=gre-tun
4478 Kind=gre
4479 </programlisting>
4480
4481 <programlisting>/etc/systemd/network/25-tunnel-vti.netdev
4482 [NetDev]
4483 Name=vti-tun
4484 Kind=vti
4485 </programlisting>
4486
4487 <para>This will bring interface <literal>ens1</literal> up and create an IPIP tunnel,
4488 a SIT tunnel, a GRE tunnel, and a VTI tunnel using it.</para>
4489 </example>
4490
4491 <example>
4492 <title>A bond device</title>
4493
4494 <programlisting># /etc/systemd/network/30-bond1.network
4495 [Match]
4496 Name=bond1
4497
4498 [Network]
4499 DHCP=ipv6
4500 </programlisting>
4501
4502 <programlisting># /etc/systemd/network/30-bond1.netdev
4503 [NetDev]
4504 Name=bond1
4505 Kind=bond
4506 </programlisting>
4507
4508 <programlisting># /etc/systemd/network/30-bond1-dev1.network
4509 [Match]
4510 MACAddress=52:54:00:e9:64:41
4511
4512 [Network]
4513 Bond=bond1
4514 </programlisting>
4515
4516 <programlisting># /etc/systemd/network/30-bond1-dev2.network
4517 [Match]
4518 MACAddress=52:54:00:e9:64:42
4519
4520 [Network]
4521 Bond=bond1
4522 </programlisting>
4523
4524 <para>This will create a bond device <literal>bond1</literal> and enslave the two
4525 devices with MAC addresses 52:54:00:e9:64:41 and 52:54:00:e9:64:42 to it. IPv6 DHCP
4526 will be used to acquire an address.</para>
4527 </example>
4528
4529 <example>
4530 <title>Virtual Routing and Forwarding (VRF)</title>
4531 <para>Add the <literal>bond1</literal> interface to the VRF master interface
4532 <literal>vrf1</literal>. This will redirect routes generated on this interface to be
4533 within the routing table defined during VRF creation. For kernels before 4.8 traffic
4534 won't be redirected towards the VRFs routing table unless specific ip-rules are added.
4535 </para>
4536 <programlisting># /etc/systemd/network/25-vrf.network
4537 [Match]
4538 Name=bond1
4539
4540 [Network]
4541 VRF=vrf1
4542 </programlisting>
4543 </example>
4544
4545 <example>
4546 <title>MacVTap</title>
4547 <para>This brings up a network interface <literal>macvtap-test</literal>
4548 and attaches it to <literal>enp0s25</literal>.</para>
4549 <programlisting># /usr/lib/systemd/network/25-macvtap.network
4550 [Match]
4551 Name=enp0s25
4552
4553 [Network]
4554 MACVTAP=macvtap-test
4555 </programlisting>
4556 </example>
4557
4558 <example>
4559 <title>A Xfrm interface with physical underlying device.</title>
4560
4561 <programlisting># /etc/systemd/network/27-xfrm.netdev
4562 [NetDev]
4563 Name=xfrm0
4564
4565 [Xfrm]
4566 InterfaceId=7</programlisting>
4567
4568 <programlisting># /etc/systemd/network/27-eth0.network
4569 [Match]
4570 Name=eth0
4571
4572 [Network]
4573 Xfrm=xfrm0</programlisting>
4574
4575 <para>This creates a <literal>xfrm0</literal> interface and binds it to the <literal>eth0</literal> device.
4576 This allows hardware based ipsec offloading to the <literal>eth0</literal> nic.
4577 If offloading is not needed, xfrm interfaces can be assigned to the <literal>lo</literal> device.
4578 </para>
4579 </example>
4580 </refsect1>
4581
4582 <refsect1>
4583 <title>See Also</title>
4584 <para>
4585 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
4586 <citerefentry><refentrytitle>systemd-networkd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
4587 <citerefentry><refentrytitle>systemd.link</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
4588 <citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
4589 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
4590 </para>
4591 </refsect1>
4592
4593 </refentry>