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