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