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