2 <!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
4 <!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
6 <refentry id=
"systemd.network" conditional='ENABLE_NETWORKD'
7 xmlns:
xi=
"http://www.w3.org/2001/XInclude">
10 <title>systemd.network
</title>
11 <productname>systemd
</productname>
15 <refentrytitle>systemd.network
</refentrytitle>
16 <manvolnum>5</manvolnum>
20 <refname>systemd.network
</refname>
21 <refpurpose>Network configuration
</refpurpose>
25 <para><filename><replaceable>network
</replaceable>.network
</filename></para>
29 <title>Description
</title>
31 <para>A plain ini-style text file that encodes network configuration for matching network
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>
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>
40 <para>The
<filename>.network
</filename> files are read from the files located in the system network
41 directories
<filename>/usr/lib/systemd/network
</filename> and
42 <filename>/usr/local/lib/systemd/network
</filename>, the volatile runtime network directory
43 <filename>/run/systemd/network
</filename> and the local administration network directory
44 <filename>/etc/systemd/network
</filename>. All configuration files are collectively sorted and
45 processed in alphanumeric order, regardless of the directories in which they live. However, files
46 with identical filenames replace each other. It is recommended that each filename is prefixed with
47 a number smaller than
<literal>70</literal> (e.g.
<filename>10-eth0.network
</filename>). Otherwise, the
48 default
<filename>.network
</filename> files or those generated by
49 <citerefentry><refentrytitle>systemd-network-generator.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>
50 may take precedence over user configured files. Files in
<filename>/etc/
</filename> have the highest
51 priority, files in
<filename>/run/
</filename> take precedence over files with the same name under
52 <filename>/usr/
</filename>. This can be used to override a system-supplied configuration file with
53 a local file if needed. As a special case, an empty file (file size
0) or symlink with the same
54 name pointing to
<filename>/dev/null
</filename> disables the configuration file entirely (it is
57 <para>Along with the network file
<filename>foo.network
</filename>, a
"drop-in" directory
58 <filename>foo.network.d/
</filename> may exist. All files with the suffix
59 <literal>.conf
</literal> from this directory will be merged in the alphanumeric order and parsed
60 after the main file itself has been parsed. This is useful to alter or add configuration settings,
61 without having to modify the main configuration file. Each drop-in file must have appropriate
62 section headers.
</para>
64 <para>In addition to
<filename>/etc/systemd/network
</filename>, drop-in
<literal>.d
</literal>
65 directories can be placed in
<filename>/usr/lib/systemd/network
</filename> or
66 <filename>/run/systemd/network
</filename> directories. Drop-in files in
67 <filename>/etc/
</filename> take precedence over those in
<filename>/run/
</filename> which in turn
68 take precedence over those in
<filename>/usr/lib/
</filename>. Drop-in files under any of these
69 directories take precedence over the main network file wherever located.
</para>
73 <title>[Match] Section Options
</title>
75 <para>The network file contains a [Match] section, which determines if a given network file may
76 be applied to a given interface; and a [Network] section specifying how the interface should be
77 configured. The first (in alphanumeric order) of the network files that matches a given interface
78 is applied, all later files are ignored, even if they match as well.
</para>
80 <para>Note that any network interfaces that have the
<varname>ID_NET_MANAGED_BY=
</varname> udev property
81 set will never be matched by any .network files – unless the property's value is the string
82 <literal>io.systemd.Network
</literal> – even if the [Match] section would otherwise match. This may be
83 used to exclude specific network interfaces from
<command>systemd-networkd
</command>'s management, while
84 keeping the [Match] section generic. The
<varname>ID_NET_MANAGED_BY=
</varname> property thus declares
85 intended
<emphasis>ownership
</emphasis> of the device, and permits ensuring that concurrent network
86 management implementations do not compete for management of specific devices.
</para>
88 <para>A network file is said to match a network interface if all matches specified by the [Match]
89 section are satisfied. When a network file does not contain valid settings in [Match] section, then
90 the file will match all interfaces and
<command>systemd-networkd
</command> warns about that. Hint:
91 to avoid the warning and to make it clear that all interfaces shall be matched, add the following:
92 <programlisting>Name=*
</programlisting> The following keys are accepted:
</para>
94 <variablelist class='network-directives'
>
95 <xi:include href=
"systemd.link.xml" xpointer=
"mac-address" />
96 <xi:include href=
"systemd.link.xml" xpointer=
"permanent-mac-address" />
97 <xi:include href=
"systemd.link.xml" xpointer=
"path" />
98 <xi:include href=
"systemd.link.xml" xpointer=
"driver" />
99 <xi:include href=
"systemd.link.xml" xpointer=
"type" />
100 <xi:include href=
"systemd.link.xml" xpointer=
"kind" />
101 <xi:include href=
"systemd.link.xml" xpointer=
"property" />
104 <term><varname>Name=
</varname></term>
106 <para>A whitespace-separated list of shell-style globs matching the device name, as exposed
107 by the udev property
<literal>INTERFACE
</literal>, or device's alternative names. If the
108 list is prefixed with a
"!", the test is inverted.
</para>
110 <xi:include href=
"version-info.xml" xpointer=
"v211"/>
115 <term><varname>WLANInterfaceType=
</varname></term>
117 <para>A whitespace-separated list of wireless network type. Supported values are
118 <literal>ad-hoc
</literal>,
<literal>station
</literal>,
<literal>ap
</literal>,
119 <literal>ap-vlan
</literal>,
<literal>wds
</literal>,
<literal>monitor
</literal>,
120 <literal>mesh-point
</literal>,
<literal>p2p-client
</literal>,
<literal>p2p-go
</literal>,
121 <literal>p2p-device
</literal>,
<literal>ocb
</literal>, and
<literal>nan
</literal>. If the
122 list is prefixed with a
"!", the test is inverted.
</para>
124 <xi:include href=
"version-info.xml" xpointer=
"v244"/>
129 <term><varname>SSID=
</varname></term>
131 <para>A whitespace-separated list of shell-style globs matching the SSID of the currently
132 connected wireless LAN. If the list is prefixed with a
"!", the test is inverted.
</para>
134 <xi:include href=
"version-info.xml" xpointer=
"v244"/>
139 <term><varname>BSSID=
</varname></term>
141 <para>A whitespace-separated list of hardware address of the currently connected wireless
142 LAN. Use full colon-, hyphen- or dot-delimited hexadecimal. See the example in
143 <varname>MACAddress=
</varname>. This option may appear more than once, in which case the
144 lists are merged. If the empty string is assigned to this option, the list is reset.
</para>
146 <xi:include href=
"version-info.xml" xpointer=
"v244"/>
150 <xi:include href=
"systemd.link.xml" xpointer=
"host" />
151 <xi:include href=
"systemd.link.xml" xpointer=
"virtualization" />
152 <xi:include href=
"systemd.link.xml" xpointer=
"kernel-command-line" />
153 <xi:include href=
"systemd.link.xml" xpointer=
"kernel-version" />
154 <xi:include href=
"systemd.link.xml" xpointer=
"credential" />
155 <xi:include href=
"systemd.link.xml" xpointer=
"architecture" />
156 <xi:include href=
"systemd.link.xml" xpointer=
"firmware" />
161 <title>[Link] Section Options
</title>
163 <para>The [Link] section accepts the following keys:
</para>
165 <variablelist class='network-directives'
>
167 <term><varname>MACAddress=
</varname></term>
169 <para>The hardware address to set for the device.
</para>
171 <xi:include href=
"version-info.xml" xpointer=
"v218"/>
176 <term><varname>MTUBytes=
</varname></term>
178 <para>The maximum transmission unit in bytes to set for the device. The usual suffixes K, M,
179 G, are supported and are understood to the base of
1024.
</para>
180 <para>Note that if IPv6 is enabled on the interface, and the MTU is chosen below
1280 (the
181 minimum MTU for IPv6) it will automatically be increased to this value.
</para>
183 <xi:include href=
"version-info.xml" xpointer=
"v218"/>
188 <term><varname>ARP=
</varname></term>
190 <para>Takes a boolean. If set to true, the ARP (low-level Address Resolution Protocol)
191 for this interface is enabled. When unset, the kernel's default will be used.
</para>
192 <para> For example, disabling ARP is useful when creating multiple MACVLAN or VLAN virtual
193 interfaces atop a single lower-level physical interface, which will then only serve as a
194 link/
"bridge" device aggregating traffic to the same physical link and not participate in
195 the network otherwise. Defaults to unset.
</para>
197 <xi:include href=
"version-info.xml" xpointer=
"v232"/>
202 <term><varname>Multicast=
</varname></term>
204 <para>Takes a boolean. If set to true, the multicast flag on the device is enabled. Defaults
207 <xi:include href=
"version-info.xml" xpointer=
"v239"/>
212 <term><varname>AllMulticast=
</varname></term>
214 <para>Takes a boolean. If set to true, the driver retrieves all multicast packets from the
215 network. This happens when multicast routing is enabled. Defaults to unset.
</para>
217 <xi:include href=
"version-info.xml" xpointer=
"v239"/>
222 <term><varname>Promiscuous=
</varname></term>
224 <para>Takes a boolean. If set to true, promiscuous mode of the interface is enabled. Defaults
226 <para>If this is set to false for the underlying link of a
<literal>passthru
</literal> mode
227 MACVLAN/MACVTAP, the virtual interface will be created with the
<literal>nopromisc
</literal>
230 <xi:include href=
"version-info.xml" xpointer=
"v248"/>
235 <term><varname>Unmanaged=
</varname></term>
237 <para>Takes a boolean. When
<literal>yes
</literal>, no attempts are made to bring up or
238 configure matching links, equivalent to when there are no matching network files. Defaults to
239 <literal>no
</literal>.
</para>
240 <para>This is useful for preventing later matching network files from interfering with
241 certain interfaces that are fully controlled by other applications.
</para>
243 <xi:include href=
"version-info.xml" xpointer=
"v233"/>
248 <term><varname>Group=
</varname></term>
250 <para>Link groups are similar to port ranges found in managed switches. When network
251 interfaces are added to a numbered group, operations on all the interfaces from that group
252 can be performed at once. Takes an unsigned integer in the range
0…
2147483647. Defaults to
255 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
260 <term><varname>RequiredForOnline=
</varname></term>
262 <para>Takes a boolean, a minimum operational state (e.g.,
<literal>carrier
</literal>), or a range
263 of operational state separated with a colon (e.g.,
<literal>degraded:routable
</literal>).
265 <citerefentry><refentrytitle>networkctl
</refentrytitle><manvolnum>1</manvolnum></citerefentry>
266 for possible operational states. When
<literal>yes
</literal>, the network is deemed required
267 when determining whether the system is online (including when running
268 <command>systemd-networkd-wait-online
</command>). When
<literal>no
</literal>, the network is
269 ignored when determining the online state. When a minimum operational state and an optional
270 maximum operational state are set,
<literal>yes
</literal> is implied, and this controls the
271 minimum and maximum operational state required for the network interface to be considered
274 <para>When
<literal>yes
</literal> is specified for a CAN device,
275 <command>systemd-networkd-wait-online
</command> deems that the interface is online when its
276 operational state becomes
<literal>carrier
</literal>. For an interface with other type, e.g.
277 <literal>ether
</literal>, the interface is deened online when its online state is
278 <literal>degraded
</literal> or
<literal>routable
</literal>.
</para>
280 <para>Defaults to
<literal>yes
</literal> when
<varname>ActivationPolicy=
</varname> is not
281 set, or set to
<literal>up
</literal>,
<literal>always-up
</literal>, or
282 <literal>bound
</literal>. Defaults to
<literal>no
</literal> when
283 <varname>ActivationPolicy=
</varname> is set to
<literal>manual
</literal> or
284 <literal>down
</literal>. This is forced to
<literal>no
</literal> when
285 <varname>ActivationPolicy=
</varname> is set to
<literal>always-down
</literal>.
</para>
287 <para>The network will be brought up normally (as configured by
288 <varname>ActivationPolicy=
</varname>), but in the event that there is no address being
289 assigned by DHCP or the cable is not plugged in, the link will simply remain offline and be
290 skipped automatically by
<command>systemd-networkd-wait-online
</command> if
291 <literal>RequiredForOnline=no
</literal>.
</para>
293 <xi:include href=
"version-info.xml" xpointer=
"v236"/>
298 <term><varname>RequiredFamilyForOnline=
</varname></term>
300 <para>Takes an address family. When specified, an IP address in the given family is deemed
301 required when determining whether the link is online (including when running
302 <command>systemd-networkd-wait-online
</command>). Takes one of
<literal>ipv4
</literal>,
303 <literal>ipv6
</literal>,
<literal>both
</literal>, or
<literal>any
</literal>. Defaults to
304 <literal>any
</literal>. Note that this option has no effect if
305 <literal>RequiredForOnline=no
</literal>, or if
<literal>RequiredForOnline=
</literal>
306 specifies a minimum operational state below
<literal>degraded
</literal>.
</para>
308 <xi:include href=
"version-info.xml" xpointer=
"v249"/>
313 <term><varname>ActivationPolicy=
</varname></term>
315 <para>Specifies the policy for
<command>systemd-networkd
</command> managing the link
316 administrative state. Specifically, this controls how
<command>systemd-networkd
</command>
317 changes the network device's
<literal>IFF_UP
</literal> flag, which is sometimes
318 controlled by system administrators by running e.g.,
319 <command>ip link set dev eth0 up
</command> or
<command>ip link set dev eth0 down
</command>,
320 and can also be changed with
<command>networkctl up eth0
</command> or
321 <command>networkctl down eth0
</command>.
</para>
323 <para>Takes one of
<literal>up
</literal>,
<literal>always-up
</literal>,
324 <literal>manual
</literal>,
<literal>always-down
</literal>,
<literal>down
</literal>,
325 or
<literal>bound
</literal>. When
<literal>manual
</literal>,
326 <command>systemd-networkd
</command> will not change the link's admin state automatically;
327 the system administrator must bring the interface up or down manually, as desired. When
328 <literal>up
</literal> (the default) or
<literal>always-up
</literal>, or
329 <literal>down
</literal> or
<literal>always-down
</literal>,
330 <command>systemd-networkd
</command> will set the link up or down, respectively, when the
331 interface is (re)configured. When
<literal>always-up
</literal> or
332 <literal>always-down
</literal>,
<command>systemd-networkd
</command> will set the link up or
333 down, respectively, any time
<command>systemd-networkd
</command> detects a change in the
334 administrative state. When
<varname>BindCarrier=
</varname> is also set, this is automatically
335 set to
<literal>bound
</literal> and any other value is ignored.
</para>
337 <para>When the policy is set to
<literal>down
</literal> or
<literal>manual
</literal>, the
338 default value of
<varname>RequiredForOnline=
</varname> is
<literal>no
</literal>. When the
339 policy is set to
<literal>always-down
</literal>, the value of
340 <varname>RequiredForOnline=
</varname> forced to
<literal>no
</literal>.
</para>
342 <para>The administrative state is not the same as the carrier state, so using
343 <literal>always-up
</literal> does not mean the link will never lose carrier. The link carrier
344 depends on both the administrative state as well as the network device's physical connection.
345 However, to avoid reconfiguration failures, when using
<literal>always-up
</literal>,
346 <varname>IgnoreCarrierLoss=
</varname> is forced to true.
</para>
348 <xi:include href=
"version-info.xml" xpointer=
"v248"/>
354 <xi:include href=
"systemd.link.xml" xpointer=
"sr-iov" />
357 <title>[Network] Section Options
</title>
359 <para>The [Network] section accepts the following keys:
</para>
361 <variablelist class='network-directives'
>
363 <term><varname>Description=
</varname></term>
365 <para>A description of the device. This is only used for presentation purposes.
</para>
367 <xi:include href=
"version-info.xml" xpointer=
"v211"/>
372 <term><varname>DHCP=
</varname></term>
374 <para>Enables DHCPv4 and/or DHCPv6 client support. Accepts
<literal>yes
</literal>,
375 <literal>no
</literal>,
<literal>ipv4
</literal>, or
<literal>ipv6
</literal>. Defaults to
376 <literal>no
</literal>.
</para>
378 <para>Note that DHCPv6 will by default be triggered by Router Advertisements, if reception is
379 enabled, regardless of this parameter. By explicitly enabling DHCPv6 support here, the DHCPv6
380 client will be started in the mode specified by the
<varname>WithoutRA=
</varname> setting in the
381 [DHCPv6] section, regardless of the presence of routers on the link, or what flags the routers
382 pass. See
<varname>IPv6AcceptRA=
</varname>.
</para>
384 <para>Furthermore, note that by default the domain name specified through DHCP is not used
385 for name resolution. See option
<option>UseDomains=
</option> below.
</para>
387 <para>See the [DHCPv4] or [DHCPv6] sections below for further configuration options for the
388 DHCP client support.
</para>
390 <xi:include href=
"version-info.xml" xpointer=
"v211"/>
395 <term><varname>DHCPServer=
</varname></term>
397 <para>Takes a boolean. If set to
<literal>yes
</literal>, DHCPv4 server will be started.
398 Defaults to
<literal>no
</literal>. Further settings for the DHCP server may be set in the
399 [DHCPServer] section described below.
</para>
401 <xi:include href=
"version-info.xml" xpointer=
"v215"/>
406 <term><varname>LinkLocalAddressing=
</varname></term>
408 <para>Enables link-local address autoconfiguration. Accepts
<option>yes
</option>,
409 <option>no
</option>,
<option>ipv4
</option>, and
<option>ipv6
</option>. An IPv6 link-local
410 address is configured when
<option>yes
</option> or
<option>ipv6
</option>. An IPv4 link-local
411 address is configured when
<option>yes
</option> or
<option>ipv4
</option> and when DHCPv4
412 autoconfiguration has been unsuccessful for some time. (IPv4 link-local address
413 autoconfiguration will usually happen in parallel with repeated attempts to acquire a DHCPv4
416 <para>Defaults to
<option>no
</option> when
<varname>KeepMaster=
</varname> or
417 <varname>Bridge=
</varname> is set or when the specified
418 <varname>MACVLAN=
</varname>/
<varname>MACVTAP=
</varname> has
<varname>Mode=passthru
</varname>,
419 or
<option>ipv6
</option> otherwise.
</para>
421 <xi:include href=
"version-info.xml" xpointer=
"v219"/>
426 <term><varname>IPv6LinkLocalAddressGenerationMode=
</varname></term>
428 <para>Specifies how IPv6 link-local address is generated. Takes one of
429 <literal>eui64
</literal>,
<literal>none
</literal>,
<literal>stable-privacy
</literal> and
430 <literal>random
</literal>. When unset,
<literal>stable-privacy
</literal> is used if
431 <varname>IPv6StableSecretAddress=
</varname> is specified, and if not,
432 <literal>eui64
</literal> is used. Note that if
<varname>LinkLocalAddressing=
</varname> is
433 <literal>no
</literal> or
<literal>ipv4
</literal>, then
434 <varname>IPv6LinkLocalAddressGenerationMode=
</varname> will be ignored. Also, even if
435 <varname>LinkLocalAddressing=
</varname> is
<literal>yes
</literal> or
<literal>ipv6
</literal>,
436 setting
<varname>IPv6LinkLocalAddressGenerationMode=none
</varname>
437 disables to configure an IPv6 link-local address.
</para>
439 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
444 <term><varname>IPv6StableSecretAddress=
</varname></term>
446 <para>Takes an IPv6 address. The specified address will be used as a stable secret for
447 generating IPv6 link-local address. If this setting is specified, and
448 <varname>IPv6LinkLocalAddressGenerationMode=
</varname> is unset, then
449 <varname>IPv6LinkLocalAddressGenerationMode=stable-privacy
</varname> is implied.
450 If this setting is not specified, and
<literal>stable-privacy
</literal> is set to
451 <varname>IPv6LinkLocalAddressGenerationMode=
</varname>,
452 then a stable secret address will be generated from the local machine ID and the interface
455 <xi:include href=
"version-info.xml" xpointer=
"v249"/>
460 <term><varname>IPv4LLStartAddress=
</varname></term>
462 <para>Specifies the first IPv4 link-local address to try. Takes an IPv4 address for example
463 169.254.1.2, from the link-local address range:
169.254.0.0/
16 except for
169.254.0.0/
24 and
464 169.254.255.0/
24. This setting may be useful if the device should always have the same address
465 as long as there is no address conflict. When unset, a random address will be automatically
466 selected. Defaults to unset.
</para>
468 <xi:include href=
"version-info.xml" xpointer=
"v252"/>
473 <term><varname>IPv4LLRoute=
</varname></term>
475 <para>Takes a boolean. If set to true, sets up the route needed for non-IPv4LL hosts to
476 communicate with IPv4LL-only hosts. Defaults to false.
</para>
478 <xi:include href=
"version-info.xml" xpointer=
"v216"/>
483 <term><varname>DefaultRouteOnDevice=
</varname></term>
485 <para>Takes a boolean. If set to true, sets up the IPv4 default route bound to the interface.
486 Defaults to false. This is useful when creating routes on point-to-point interfaces. This is
487 equivalent to e.g. the following,
488 <programlisting>ip route add default dev veth99
</programlisting>
490 <programlisting>[Route]
491 Gateway=
0.0.0.0</programlisting></para>
492 <para>Currently, there are no way to specify e.g., the table for the route configured by this
493 setting. To configure the default route with such an additional property, please use the
495 <programlisting>[Route]
497 Table=
1234</programlisting></para>
498 <para>If you'd like to create an IPv6 default route bound to the interface, please use the
500 <programlisting>[Route]
502 Table=
1234</programlisting></para>
504 <xi:include href=
"version-info.xml" xpointer=
"v243"/>
509 <term><varname>LLMNR=
</varname></term>
511 <para>Takes a boolean or
<literal>resolve
</literal>. When true, enables
512 <ulink url=
"https://tools.ietf.org/html/rfc4795">Link-Local Multicast Name Resolution
</ulink>
513 on the link. When set to
<literal>resolve
</literal>, only resolution is enabled, but not host
514 registration and announcement. Defaults to true. This setting is read by
515 <citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
518 <xi:include href=
"version-info.xml" xpointer=
"v216"/>
523 <term><varname>MulticastDNS=
</varname></term>
525 <para>Takes a boolean or
<literal>resolve
</literal>. When true, enables
526 <ulink url=
"https://tools.ietf.org/html/rfc6762">Multicast DNS
</ulink> support on the link.
527 When set to
<literal>resolve
</literal>, only resolution is enabled, but not host or service
528 registration and announcement. Defaults to false. This setting is read by
529 <citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
532 <xi:include href=
"version-info.xml" xpointer=
"v229"/>
537 <term><varname>DNSOverTLS=
</varname></term>
539 <para>Takes a boolean or
<literal>opportunistic
</literal>. When true, enables
540 <ulink url=
"https://tools.ietf.org/html/rfc7858">DNS-over-TLS
</ulink> support on the link.
541 When set to
<literal>opportunistic
</literal>, compatibility with non-DNS-over-TLS servers is
542 increased, by automatically turning off DNS-over-TLS servers in this case. This option
543 defines a per-interface setting for
544 <citerefentry><refentrytitle>resolved.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>'s
545 global
<varname>DNSOverTLS=
</varname> option. Defaults to unset, and the global setting will
546 be used. This setting is read by
547 <citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
550 <xi:include href=
"version-info.xml" xpointer=
"v239"/>
555 <term><varname>DNSSEC=
</varname></term>
557 <para>Takes a boolean or
<literal>allow-downgrade
</literal>. When true, enables
558 <ulink url=
"https://tools.ietf.org/html/rfc4033">DNSSEC
</ulink> DNS validation support on the
559 link. When set to
<literal>allow-downgrade
</literal>, compatibility with non-DNSSEC capable
560 networks is increased, by automatically turning off DNSSEC in this case. This option defines
561 a per-interface setting for
562 <citerefentry><refentrytitle>resolved.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>'s
563 global
<varname>DNSSEC=
</varname> option. Defaults to unset, and the global setting will be
564 used. This setting is read by
565 <citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
568 <xi:include href=
"version-info.xml" xpointer=
"v229"/>
573 <term><varname>DNSSECNegativeTrustAnchors=
</varname></term>
575 <para>A space-separated list of DNSSEC negative trust anchor domains. If specified and DNSSEC
576 is enabled, look-ups done via the interface's DNS server will be subject to the list of
577 negative trust anchors, and not require authentication for the specified domains, or anything
578 below it. Use this to disable DNSSEC authentication for specific private domains, that cannot
579 be proven valid using the Internet DNS hierarchy. Defaults to the empty list. This setting is
581 <citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
584 <xi:include href=
"version-info.xml" xpointer=
"v229"/>
589 <term><varname>LLDP=
</varname></term>
591 <para>Controls support for Ethernet LLDP packet reception. LLDP is a link-layer protocol
592 commonly implemented on professional routers and bridges which announces which physical port
593 a system is connected to, as well as other related data. Accepts a boolean or the special
594 value
<literal>routers-only
</literal>. When true, incoming LLDP packets are accepted and a
595 database of all LLDP neighbors maintained. If
<literal>routers-only
</literal> is set only
596 LLDP data of various types of routers is collected and LLDP data about other types of devices
597 ignored (such as stations, telephones and others). If false, LLDP reception is disabled.
598 Defaults to
<literal>routers-only
</literal>. Use
599 <citerefentry><refentrytitle>networkctl
</refentrytitle><manvolnum>1</manvolnum></citerefentry>
600 to query the collected neighbor data. LLDP is only available on Ethernet links. See
601 <varname>EmitLLDP=
</varname> below for enabling LLDP packet emission from the local system.
604 <xi:include href=
"version-info.xml" xpointer=
"v219"/>
609 <term><varname>EmitLLDP=
</varname></term>
611 <para>Controls support for Ethernet LLDP packet emission. Accepts a boolean parameter or the
612 special values
<literal>nearest-bridge
</literal>,
<literal>non-tpmr-bridge
</literal> and
613 <literal>customer-bridge
</literal>. Defaults to false, which turns off LLDP packet emission.
614 If not false, a short LLDP packet with information about the local system is sent out in
615 regular intervals on the link. The LLDP packet will contain information about the local
616 hostname, the local machine ID (as stored in
617 <citerefentry><refentrytitle>machine-id
</refentrytitle><manvolnum>5</manvolnum></citerefentry>)
618 and the local interface name, as well as the pretty hostname of the system (as set in
619 <citerefentry><refentrytitle>machine-info
</refentrytitle><manvolnum>5</manvolnum></citerefentry>).
620 LLDP emission is only available on Ethernet links. Note that this setting passes data
621 suitable for identification of host to the network and should thus not be enabled on
622 untrusted networks, where such identification data should not be made available. Use this
623 option to permit other systems to identify on which interfaces they are connected to this
624 system. The three special values control propagation of the LLDP packets. The
625 <literal>nearest-bridge
</literal> setting permits propagation only to the nearest connected
626 bridge,
<literal>non-tpmr-bridge
</literal> permits propagation across Two-Port MAC Relays,
627 but not any other bridges, and
<literal>customer-bridge
</literal> permits propagation until
628 a customer bridge is reached. For details about these concepts, see
629 <ulink url=
"https://standards.ieee.org/findstds/standard/802.1AB-2016.html">IEEE
802.1AB-
2016</ulink>.
630 Note that configuring this setting to true is equivalent to
631 <literal>nearest-bridge
</literal>, the recommended and most restricted level of propagation.
632 See
<varname>LLDP=
</varname> above for an option to enable LLDP reception.
</para>
634 <xi:include href=
"version-info.xml" xpointer=
"v230"/>
639 <term><varname>BindCarrier=
</varname></term>
641 <para>A link name or a list of link names. When set, controls the behavior of the current
642 link. When all links in the list are in an operational down state, the current link is
643 brought down. When at least one link has carrier, the current interface is brought up.
</para>
645 <para>This forces
<varname>ActivationPolicy=
</varname> to be set to
<literal>bound
</literal>.
648 <xi:include href=
"version-info.xml" xpointer=
"v220"/>
653 <term><varname>Address=
</varname></term>
655 <para>A static IPv4 or IPv6 address and its prefix length, separated by a
656 <literal>/
</literal> character. Specify this key more than once to configure several
657 addresses. The format of the address must be as described in
658 <citerefentry project='man-pages'
><refentrytitle>inet_pton
</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
659 This is a short-hand for an [Address] section only containing an Address key (see below).
660 This option may be specified more than once.
</para>
662 <para>If the specified address is
<literal>0.0.0.0</literal> (for IPv4) or
663 <literal>::
</literal> (for IPv6), a new address range of the requested size is automatically
664 allocated from a system-wide pool of unused ranges. Note that the prefix length must be equal
665 or larger than
8 for IPv4, and
64 for IPv6. The allocated range is checked against all
666 current network interfaces and all known network configuration files to avoid address range
667 conflicts. The default system-wide pool consists of
192.168.0.0/
16,
172.16.0.0/
12 and
668 10.0.0.0/
8 for IPv4, and fd00::/
8 for IPv6. This functionality is useful to manage a large
669 number of dynamically created network interfaces with the same network configuration and
670 automatic address range assignment.
</para>
672 <para>If an empty string is specified, then the all previous assignments in both [Network] and
673 [Address] sections are cleared.
</para>
675 <xi:include href=
"version-info.xml" xpointer=
"v211"/>
680 <term><varname>Gateway=
</varname></term>
682 <para>The gateway address, which must be in the format described in
683 <citerefentry project='man-pages'
><refentrytitle>inet_pton
</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
684 This is a short-hand for a [Route] section only containing a
<varname>Gateway=
</varname> key.
685 This option may be specified more than once.
</para>
687 <xi:include href=
"version-info.xml" xpointer=
"v211"/>
692 <term><varname>DNS=
</varname></term>
694 <para>A DNS server address, which must be in the format described in
695 <citerefentry project='man-pages'
><refentrytitle>inet_pton
</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
696 This option may be specified more than once. Each address can optionally take a port number
697 separated with
<literal>:
</literal>, a network interface name or index separated with
698 <literal>%
</literal>, and a Server Name Indication (SNI) separated with
<literal>#
</literal>.
699 When IPv6 address is specified with a port number, then the address must be in the square
700 brackets. That is, the acceptable full formats are
701 <literal>111.222.333.444:
9953%ifname#example.com
</literal> for IPv4 and
702 <literal>[
1111:
2222::
3333]:
9953%ifname#example.com
</literal> for IPv6. If an empty string is
703 assigned, then the all previous assignments are cleared. This setting is read by
704 <citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
707 <xi:include href=
"version-info.xml" xpointer=
"v211"/>
712 <term><varname>Domains=
</varname></term>
714 <para>A whitespace-separated list of domains which should be resolved using the DNS servers
715 on this link. Each item in the list should be a domain name, optionally prefixed with a tilde
716 (
<literal>~
</literal>). The domains with the prefix are called
"routing-only domains". The
717 domains without the prefix are called
"search domains" and are first used as search suffixes
718 for extending single-label hostnames (hostnames containing no dots) to become fully qualified
719 domain names (FQDNs). If a single-label hostname is resolved on this interface, each of the
720 specified search domains are appended to it in turn, converting it into a fully qualified
721 domain name, until one of them may be successfully resolved.
</para>
723 <para>Both
"search" and
"routing-only" domains are used for routing of DNS queries: look-ups
724 for hostnames ending in those domains (hence also single label names, if any
"search domains"
725 are listed), are routed to the DNS servers configured for this interface. The domain routing
726 logic is particularly useful on multi-homed hosts with DNS servers serving particular private
727 DNS zones on each interface.
</para>
729 <para>The
"routing-only" domain
<literal>~.
</literal> (the tilde indicating definition of a
730 routing domain, the dot referring to the DNS root domain which is the implied suffix of all
731 valid DNS names) has special effect. It causes all DNS traffic which does not match another
732 configured domain routing entry to be routed to DNS servers specified for this interface.
733 This setting is useful to prefer a certain set of DNS servers if a link on which they are
734 connected is available.
</para>
736 <para>This setting is read by
737 <citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
738 "Search domains" correspond to the
<varname>domain
</varname> and
<varname>search
</varname>
740 <citerefentry project='man-pages'
><refentrytitle>resolv.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
741 Domain name routing has no equivalent in the traditional glibc API, which has no concept of
742 domain name servers limited to a specific link.
</para>
744 <xi:include href=
"version-info.xml" xpointer=
"v216"/>
749 <term><varname>DNSDefaultRoute=
</varname></term>
751 <para>Takes a boolean argument. If true, this link's configured DNS servers are used for
752 resolving domain names that do not match any link's configured
<varname>Domains=
</varname>
753 setting. If false, this link's configured DNS servers are never used for such domains, and
754 are exclusively used for resolving names that match at least one of the domains configured on
755 this link. If not specified defaults to an automatic mode: queries not matching any link's
756 configured domains will be routed to this link if it has no routing-only domains configured.
759 <xi:include href=
"version-info.xml" xpointer=
"v240"/>
764 <term><varname>NTP=
</varname></term>
766 <para>An NTP server address (either an IP address, or a hostname). This option may be
767 specified more than once. This setting is read by
768 <citerefentry><refentrytitle>systemd-timesyncd.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
771 <xi:include href=
"version-info.xml" xpointer=
"v216"/>
776 <term><varname>IPForward=
</varname></term>
778 <para>Configures IP packet forwarding for the system. If enabled, incoming packets on any
779 network interface will be forwarded to any other interfaces according to the routing table.
780 Takes a boolean, or the values
<literal>ipv4
</literal> or
<literal>ipv6
</literal>, which only
781 enable IP packet forwarding for the specified address family. This controls the
782 <filename>net.ipv4.ip_forward
</filename> and
<filename>net.ipv6.conf.all.forwarding
</filename>
783 sysctl options of the network interface (see
784 <ulink url=
"https://docs.kernel.org/networking/ip-sysctl.html">IP Sysctl
</ulink>
785 for details about sysctl options). Defaults to
<literal>no
</literal>.
</para>
787 <para>Note: this setting controls a global kernel option, and does so one way only: if a
788 network that has this setting enabled is set up the global setting is turned on. However,
789 it is never turned off again, even after all networks with this setting enabled are shut
792 <para>To allow IP packet forwarding only between specific network interfaces use a firewall.
795 <xi:include href=
"version-info.xml" xpointer=
"v219"/>
800 <term><varname>IPMasquerade=
</varname></term>
802 <para>Configures IP masquerading for the network interface. If enabled, packets forwarded
803 from the network interface will be appear as coming from the local host. Takes one of
804 <literal>ipv4
</literal>,
<literal>ipv6
</literal>,
<literal>both
</literal>, or
805 <literal>no
</literal>. Defaults to
<literal>no
</literal>. If enabled, this automatically sets
806 <varname>IPForward=
</varname> to one of
<literal>ipv4
</literal>,
<literal>ipv6
</literal> or
807 <literal>yes
</literal>.
</para>
808 <para>Note. Any positive boolean values such as
<literal>yes
</literal> or
809 <literal>true
</literal> are now deprecated. Please use one of the values in the above.
</para>
811 <xi:include href=
"version-info.xml" xpointer=
"v219"/>
816 <term><varname>IPv6PrivacyExtensions=
</varname></term>
818 <para>Configures use of stateless temporary addresses that change over time (see
819 <ulink url=
"https://tools.ietf.org/html/rfc4941">RFC
4941</ulink>,
820 Privacy Extensions for Stateless Address Autoconfiguration in IPv6). Takes a boolean or the
821 special values
<literal>prefer-public
</literal> and
<literal>kernel
</literal>. When true,
822 enables the privacy extensions and prefers temporary addresses over public addresses. When
823 <literal>prefer-public
</literal>, enables the privacy extensions, but prefers public
824 addresses over temporary addresses. When false, the privacy extensions remain disabled. When
825 <literal>kernel
</literal>, the kernel's default setting will be left in place. When unspecified,
826 the value specified in the same setting in
827 <citerefentry><refentrytitle>networkd.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
828 which defaults to
<literal>no
</literal>, will be used.
</para>
830 <xi:include href=
"version-info.xml" xpointer=
"v222"/>
835 <term><varname>IPv6AcceptRA=
</varname></term>
837 <para>Takes a boolean. Controls IPv6 Router Advertisement (RA) reception support for the
838 interface. If true, RAs are accepted; if false, RAs are ignored. When RAs are accepted, they
839 may trigger the start of the DHCPv6 client if the relevant flags are set in the RA data, or
840 if no routers are found on the link. The default is to disable RA reception for bridge
841 devices or when IP forwarding is enabled, and to enable it otherwise. Cannot be enabled on
842 devices aggregated in a bond device or when link-local addressing is disabled.
</para>
844 <para>Further settings for the IPv6 RA support may be configured in the [IPv6AcceptRA]
845 section, see below.
</para>
848 <ulink url=
"https://docs.kernel.org/networking/ip-sysctl.html">IP Sysctl
</ulink>
849 in the kernel documentation regarding
<literal>accept_ra
</literal>, but note that systemd's
850 setting of
<constant>1</constant> (i.e. true) corresponds to kernel's setting of
851 <constant>2</constant>.
</para>
853 <para>Note that kernel's implementation of the IPv6 RA protocol is always disabled,
854 regardless of this setting. If this option is enabled, a userspace implementation of the IPv6
855 RA protocol is used, and the kernel's own implementation remains disabled, since
856 <command>systemd-networkd
</command> needs to know all details supplied in the advertisements,
857 and these are not available from the kernel if the kernel's own implementation is used.
860 <xi:include href=
"version-info.xml" xpointer=
"v231"/>
865 <term><varname>IPv6DuplicateAddressDetection=
</varname></term>
867 <para>Configures the amount of IPv6 Duplicate Address Detection (DAD) probes to send. When
868 unset, the kernel's default will be used.
</para>
870 <xi:include href=
"version-info.xml" xpointer=
"v228"/>
875 <term><varname>IPv6HopLimit=
</varname></term>
877 <para>Configures IPv6 Hop Limit. Takes an integer in the range
1…
255. For each router that
878 forwards the packet, the hop limit is decremented by
1. When the hop limit field reaches zero, the
879 packet is discarded. When unset, the kernel's default will be used.
</para>
881 <xi:include href=
"version-info.xml" xpointer=
"v228"/>
886 <term><varname>IPv4ReversePathFilter=
</varname></term>
888 <para>Configure IPv4 Reverse Path Filtering. If enabled, when an IPv4 packet is received, the machine will first check
889 whether the
<emphasis>source
</emphasis> of the packet would be routed through the interface it came in. If there is no
890 route to the source on that interface, the machine will drop the packet. Takes one of
891 <literal>no
</literal>,
<literal>strict
</literal>, or
<literal>loose
</literal>. When
<literal>no
</literal>,
892 no source validation will be done. When
<literal>strict
</literal>, mode each incoming packet is tested against the FIB and
893 if the incoming interface is not the best reverse path, the packet check will fail. By default failed packets are discarded.
894 When
<literal>loose
</literal>, mode each incoming packet's source address is tested against the FIB. The packet is dropped
895 only if the source address is not reachable via any interface on that router.
896 See
<ulink url=
"https://tools.ietf.org/html/rfc1027">RFC
3704</ulink>.
897 When unset, the kernel's default will be used.
</para>
899 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
904 <term><varname>IPv4AcceptLocal=
</varname></term>
906 <para>Takes a boolean. Accept packets with local source addresses. In combination with
907 suitable routing, this can be used to direct packets between two local interfaces over the
908 wire and have them accepted properly. When unset, the kernel's default will be used.
</para>
910 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
915 <term><varname>IPv4RouteLocalnet=
</varname></term>
917 <para>Takes a boolean. When true, the kernel does not consider loopback addresses as martian
918 source or destination while routing. This enables the use of
127.0.0.0/
8 for local routing
919 purposes. When unset, the kernel's default will be used.
</para>
921 <xi:include href=
"version-info.xml" xpointer=
"v248"/>
926 <term><varname>IPv4ProxyARP=
</varname></term>
928 <para>Takes a boolean. Configures proxy ARP for IPv4. Proxy ARP is the technique in which one
929 host, usually a router, answers ARP requests intended for another machine. By
"faking" its
930 identity, the router accepts responsibility for routing packets to the
"real" destination.
931 See
<ulink url=
"https://tools.ietf.org/html/rfc1027">RFC
1027</ulink>. When unset, the
932 kernel's default will be used.
</para>
934 <xi:include href=
"version-info.xml" xpointer=
"v233"/>
939 <term><varname>IPv4ProxyARPPrivateVLAN=
</varname></term>
941 <para>Takes a boolean. Configures proxy ARP private VLAN for IPv4, also known as VLAN aggregation,
942 private VLAN, source-port filtering, port-isolation, or MAC-forced forwarding.
</para>
944 <para>This variant of the ARP proxy technique will allow the ARP proxy to reply back to the same
947 <para>See
<ulink url=
"https://tools.ietf.org/html/rfc3069">RFC
3069</ulink>. When unset,
948 the kernel's default will be used.
</para>
949 <xi:include href=
"version-info.xml" xpointer=
"v256"/>
954 <term><varname>IPv6ProxyNDP=
</varname></term>
956 <para>Takes a boolean. Configures proxy NDP for IPv6. Proxy NDP (Neighbor Discovery Protocol)
957 is a technique for IPv6 to allow routing of addresses to a different destination when peers
958 expect them to be present on a certain physical link. In this case a router answers Neighbour
959 Advertisement messages intended for another machine by offering its own MAC address as
960 destination. Unlike proxy ARP for IPv4, it is not enabled globally, but will only send
961 Neighbour Advertisement messages for addresses in the IPv6 neighbor proxy table, which can
962 also be shown by
<command>ip -
6 neighbour show proxy
</command>. systemd-networkd will control
963 the per-interface `proxy_ndp` switch for each configured interface depending on this option.
964 When unset, the kernel's default will be used.
</para>
966 <xi:include href=
"version-info.xml" xpointer=
"v234"/>
971 <term><varname>IPv6ProxyNDPAddress=
</varname></term>
973 <para>An IPv6 address, for which Neighbour Advertisement messages will be proxied. This
974 option may be specified more than once. systemd-networkd will add the
975 <varname>IPv6ProxyNDPAddress=
</varname> entries to the kernel's IPv6 neighbor proxy table.
976 This setting implies
<varname>IPv6ProxyNDP=yes
</varname> but has no effect if
977 <varname>IPv6ProxyNDP=
</varname> has been set to false. When unset, the kernel's default will
980 <xi:include href=
"version-info.xml" xpointer=
"v233"/>
985 <term><varname>IPv6SendRA=
</varname></term>
987 <para>Whether to enable or disable Router Advertisement sending on a link. Takes a boolean
988 value. When enabled, prefixes configured in [IPv6Prefix] sections and routes configured in
989 the [IPv6RoutePrefix] sections are distributed as defined in the [IPv6SendRA] section. If
990 <varname>DHCPPrefixDelegation=
</varname> is enabled, then the delegated prefixes are also
991 distributed. See
<varname>DHCPPrefixDelegation=
</varname> setting and the [IPv6SendRA],
992 [IPv6Prefix], [IPv6RoutePrefix], and [DHCPPrefixDelegation] sections for more configuration
995 <xi:include href=
"version-info.xml" xpointer=
"v247"/>
1000 <term><varname>DHCPPrefixDelegation=
</varname></term>
1002 <para>Takes a boolean value. When enabled, requests subnet prefixes on another link via the DHCPv6
1003 protocol or via the
6RD option in the DHCPv4 protocol. An address within each delegated prefix will
1004 be assigned, and the prefixes will be announced through IPv6 Router Advertisement if
1005 <varname>IPv6SendRA=
</varname> is enabled. This behaviour can be configured in the
1006 [DHCPPrefixDelegation] section. Defaults to disabled.
</para>
1008 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
1013 <term><varname>IPv6MTUBytes=
</varname></term>
1015 <para>Configures IPv6 maximum transmission unit (MTU). An integer greater than or equal to
1016 1280 bytes. When unset, the kernel's default will be used.
</para>
1018 <xi:include href=
"version-info.xml" xpointer=
"v239"/>
1023 <term><varname>KeepMaster=
</varname></term>
1025 <para>Takes a boolean value. When enabled, the current master interface index will not be
1026 changed, and
<varname>BatmanAdvanced=
</varname>,
<varname>Bond=
</varname>,
1027 <varname>Bridge=
</varname>, and
<varname>VRF=
</varname> settings are ignored. This may be
1028 useful when a netdev with a master interface is created by another program, e.g.
1029 <citerefentry><refentrytitle>systemd-nspawn
</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
1030 Defaults to false.
</para>
1032 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
1037 <term><varname>BatmanAdvanced=
</varname></term>
1038 <term><varname>Bond=
</varname></term>
1039 <term><varname>Bridge=
</varname></term>
1040 <term><varname>VRF=
</varname></term>
1042 <para>The name of the B.A.T.M.A.N. Advanced, bond, bridge, or VRF interface to add the link
1044 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
1047 <xi:include href=
"version-info.xml" xpointer=
"v211"/>
1052 <term><varname>IPoIB=
</varname></term>
1053 <term><varname>IPVLAN=
</varname></term>
1054 <term><varname>IPVTAP=
</varname></term>
1055 <term><varname>MACsec=
</varname></term>
1056 <term><varname>MACVLAN=
</varname></term>
1057 <term><varname>MACVTAP=
</varname></term>
1058 <term><varname>Tunnel=
</varname></term>
1059 <term><varname>VLAN=
</varname></term>
1060 <term><varname>VXLAN=
</varname></term>
1061 <term><varname>Xfrm=
</varname></term>
1063 <para>The name of an IPoIB, IPVLAN, IPVTAP, MACsec, MACVLAN, MACVTAP, tunnel, VLAN,
1064 VXLAN, or Xfrm to be created on the link. See
1065 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
1066 This option may be specified more than once.
</para>
1068 <xi:include href=
"version-info.xml" xpointer=
"v211"/>
1073 <term><varname>ActiveSlave=
</varname></term>
1075 <para>Takes a boolean. Specifies the new active slave. The
<literal>ActiveSlave=
</literal>
1076 option is only valid for following modes:
<literal>active-backup
</literal>,
1077 <literal>balance-alb
</literal>, and
<literal>balance-tlb
</literal>. Defaults to false.
</para>
1079 <xi:include href=
"version-info.xml" xpointer=
"v235"/>
1084 <term><varname>PrimarySlave=
</varname></term>
1086 <para>Takes a boolean. Specifies which slave is the primary device. The specified device will
1087 always be the active slave while it is available. Only when the primary is off-line will
1088 alternate devices be used. This is useful when one slave is preferred over another, e.g.
1089 when one slave has higher throughput than another. The
<literal>PrimarySlave=
</literal>
1090 option is only valid for following modes:
<literal>active-backup
</literal>,
1091 <literal>balance-alb
</literal>, and
<literal>balance-tlb
</literal>. Defaults to false.
</para>
1093 <xi:include href=
"version-info.xml" xpointer=
"v235"/>
1098 <term><varname>ConfigureWithoutCarrier=
</varname></term>
1100 <para>Takes a boolean. Allows networkd to configure a specific link even if it has no
1101 carrier. Defaults to false. If enabled, and the
<varname>IgnoreCarrierLoss=
</varname> setting
1102 is not explicitly set, then it is enabled as well.
</para>
1104 <xi:include href=
"version-info.xml" xpointer=
"v235"/>
1109 <term><varname>IgnoreCarrierLoss=
</varname></term>
1111 <para>Takes a boolean or a timespan. When true,
<command>systemd-networkd
</command> retains
1112 both the static and dynamic configuration of the interface even if its carrier is lost. When
1113 false,
<command>systemd-networkd
</command> drops both the static and dynamic configuration of
1114 the interface. When a timespan is specified,
<command>systemd-networkd
</command> waits for
1115 the specified timespan, and ignores the carrier loss if the link regain its carrier within
1116 the timespan. Setting
0 seconds is equivalent to
<literal>no
</literal>, and
1117 <literal>infinite
</literal> is equivalent to
<literal>yes
</literal>.
</para>
1119 <para>Setting a finite timespan may be useful when e.g. in the following cases:
1122 <para>A wireless interface connecting to a network which has multiple access points with
1123 the same SSID.
</para>
1126 <para>Enslaving a wireless interface to a bond interface, which may disconnect from the
1127 connected access point and causes its carrier to be lost.
</para>
1130 <para>The driver of the interface resets when the MTU is changed.
</para>
1135 <para>When
<varname>Bond=
</varname> is specified to a wireless interface, defaults to
3
1136 seconds. When the DHCPv4 client is enabled and
<varname>UseMTU=
</varname> in the [DHCPv4]
1137 section enabled, defaults to
5 seconds. Otherwise, defaults to the value specified with
1138 <varname>ConfigureWithoutCarrier=
</varname>. When
<varname>ActivationPolicy=
</varname> is set
1139 to
<literal>always-up
</literal>, this is forced to
<literal>yes
</literal>, and ignored any
1140 user specified values.
</para>
1142 <xi:include href=
"version-info.xml" xpointer=
"v242"/>
1147 <term><varname>KeepConfiguration=
</varname></term>
1149 <para>Takes a boolean or one of
<literal>static
</literal>,
<literal>dhcp-on-stop
</literal>,
1150 <literal>dhcp
</literal>. When
<literal>static
</literal>,
<command>systemd-networkd
</command>
1151 will not drop static addresses and routes on starting up process. When set to
1152 <literal>dhcp-on-stop
</literal>,
<command>systemd-networkd
</command> will not drop addresses
1153 and routes on stopping the daemon. When
<literal>dhcp
</literal>,
1154 the addresses and routes provided by a DHCP server will never be dropped even if the DHCP
1155 lease expires. This is contrary to the DHCP specification, but may be the best choice if,
1156 e.g., the root filesystem relies on this connection. The setting
<literal>dhcp
</literal>
1157 implies
<literal>dhcp-on-stop
</literal>, and
<literal>yes
</literal> implies
1158 <literal>dhcp
</literal> and
<literal>static
</literal>. Defaults to
1159 <literal>dhcp-on-stop
</literal> when
<command>systemd-networkd
</command> is running in
1160 initrd,
<literal>yes
</literal> when the root filesystem is a network filesystem, and
1161 <literal>no
</literal> otherwise.
</para>
1163 <xi:include href=
"version-info.xml" xpointer=
"v243"/>
1170 <title>[Address] Section Options
</title>
1172 <para>An [Address] section accepts the following keys. Specify several [Address] sections to
1173 configure several addresses.
</para>
1175 <variablelist class='network-directives'
>
1177 <term><varname>Address=
</varname></term>
1179 <para>As in the [Network] section. This setting is mandatory. Each [Address] section can
1180 contain one
<varname>Address=
</varname> setting.
</para>
1182 <xi:include href=
"version-info.xml" xpointer=
"v211"/>
1187 <term><varname>Peer=
</varname></term>
1189 <para>The peer address in a point-to-point connection. Accepts the same format as the
1190 <varname>Address=
</varname> setting.
</para>
1192 <xi:include href=
"version-info.xml" xpointer=
"v216"/>
1197 <term><varname>Broadcast=
</varname></term>
1199 <para>Takes an IPv4 address or boolean value. The address must be in the format described in
1200 <citerefentry project='man-pages'
><refentrytitle>inet_pton
</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
1201 If set to true, then the IPv4 broadcast address will be derived from the
1202 <varname>Address=
</varname> setting. If set to false, then the broadcast address will not be
1203 set. Defaults to true, except for wireguard interfaces, where it default to false.
</para>
1205 <xi:include href=
"version-info.xml" xpointer=
"v211"/>
1210 <term><varname>Label=
</varname></term>
1212 <para>Specifies the label for the IPv4 address. The label must be a
7-bit ASCII string with
1213 a length of
1…
15 characters. Defaults to unset.
</para>
1215 <xi:include href=
"version-info.xml" xpointer=
"v211"/>
1220 <term><varname>PreferredLifetime=
</varname></term>
1222 <para>Allows the default
"preferred lifetime" of the address to be overridden. Only three
1223 settings are accepted:
<literal>forever
</literal>,
<literal>infinity
</literal>, which is the
1224 default and means that the address never expires, and
<literal>0</literal>, which means that
1225 the address is considered immediately
"expired" and will not be used, unless explicitly
1226 requested. A setting of
<option>PreferredLifetime=
0</option> is useful for addresses which
1227 are added to be used only by a specific application, which is then configured to use them
1230 <xi:include href=
"version-info.xml" xpointer=
"v230"/>
1235 <term><varname>Scope=
</varname></term>
1237 <para>The scope of the address, which can be
<literal>global
</literal> (valid everywhere on
1238 the network, even through a gateway),
<literal>link
</literal> (only valid on this device,
1239 will not traverse a gateway) or
<literal>host
</literal> (only valid within the device itself,
1240 e.g.
127.0.0.1) or an integer in the range
0…
255. Defaults to
<literal>global
</literal>.
1241 IPv4 only - IPv6 scope is automatically assigned by the kernel and cannot be set manually.
1244 <xi:include href=
"version-info.xml" xpointer=
"v235"/>
1249 <term><varname>RouteMetric=
</varname></term>
1251 <para>The metric of the prefix route, which is pointing to the subnet of the configured IP
1252 address, taking the configured prefix length into account. Takes an unsigned integer in the
1253 range
0…
4294967295. When unset or set to
0, the kernel's default value is used. This
1254 setting will be ignored when
<varname>AddPrefixRoute=
</varname> is false.
</para>
1256 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
1261 <term><varname>HomeAddress=
</varname></term>
1263 <para>Takes a boolean. Designates this address the
"home address" as defined in
1264 <ulink url=
"https://tools.ietf.org/html/rfc6275">RFC
6275</ulink>. Supported only on IPv6.
1265 Defaults to false.
</para>
1267 <xi:include href=
"version-info.xml" xpointer=
"v232"/>
1272 <term><varname>DuplicateAddressDetection=
</varname></term>
1274 <para>Takes one of
<literal>ipv4
</literal>,
<literal>ipv6
</literal>,
<literal>both
</literal>,
1275 or
<literal>none
</literal>. When
<literal>ipv4
</literal>, performs IPv4 Address Conflict
1276 Detection. See
<ulink url=
"https://tools.ietf.org/html/rfc5227">RFC
5227</ulink>.
1277 When
<literal>ipv6
</literal>, performs IPv6 Duplicate Address Detection. See
1278 <ulink url=
"https://tools.ietf.org/html/rfc4862">RFC
4862</ulink>. Defaults to
1279 <literal>ipv4
</literal> for IPv4 link-local addresses,
<literal>ipv6
</literal> for IPv6
1280 addresses, and
<literal>none
</literal> otherwise.
</para>
1282 <xi:include href=
"version-info.xml" xpointer=
"v232"/>
1287 <term><varname>ManageTemporaryAddress=
</varname></term>
1289 <para>Takes a boolean. If true the kernel manage temporary addresses created from this one as
1290 template on behalf of Privacy Extensions
1291 <ulink url=
"https://tools.ietf.org/html/rfc3041">RFC
3041</ulink>. For this to become active,
1292 the use_tempaddr sysctl setting has to be set to a value greater than zero. The given address
1293 needs to have a prefix length of
64. This flag allows using privacy extensions in a manually
1294 configured network, just like if stateless auto-configuration was active. Defaults to false.
1297 <xi:include href=
"version-info.xml" xpointer=
"v232"/>
1302 <term><varname>AddPrefixRoute=
</varname></term>
1304 <para>Takes a boolean. When true, the prefix route for the address is automatically added.
1305 Defaults to true.
</para>
1307 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
1312 <term><varname>AutoJoin=
</varname></term>
1314 <para>Takes a boolean. Joining multicast group on ethernet level via
1315 <command>ip maddr
</command> command would not work if we have an Ethernet switch that does
1316 IGMP snooping since the switch would not replicate multicast packets on ports that did not
1317 have IGMP reports for the multicast addresses. Linux vxlan interfaces created via
1318 <command>ip link add vxlan
</command> or networkd's netdev kind vxlan have the group option
1319 that enables them to do the required join. By extending
<command>ip address
</command> command
1320 with option
<literal>autojoin
</literal> we can get similar functionality for openvswitch (OVS)
1321 vxlan interfaces as well as other tunneling mechanisms that need to receive multicast traffic.
1322 Defaults to
<literal>no
</literal>.
</para>
1324 <xi:include href=
"version-info.xml" xpointer=
"v232"/>
1329 <term><varname>NetLabel=
</varname><replaceable>label
</replaceable></term>
1332 <para>This setting provides a method for integrating static and dynamic network configuration into
1333 Linux
<ulink url=
"https://docs.kernel.org/netlabel/index.html">NetLabel
</ulink> subsystem rules,
1334 used by
<ulink url=
"https://en.wikipedia.org/wiki/Linux_Security_Modules">Linux Security Modules
1335 (LSMs)
</ulink> for network access control. The label, with suitable LSM rules, can be used to
1336 control connectivity of (for example) a service with peers in the local network. At least with
1337 SELinux, only the ingress can be controlled but not egress. The benefit of using this setting is
1338 that it may be possible to apply interface independent part of NetLabel configuration at very early
1339 stage of system boot sequence, at the time when the network interfaces are not available yet, with
1341 project='man-pages'
><refentrytitle>netlabelctl
</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
1342 and the per-interface configuration with
<command>systemd-networkd
</command> once the interfaces
1343 appear later. Currently this feature is only implemented for SELinux.
</para>
1345 <para>The option expects a single NetLabel label. The label must conform to lexical restrictions of
1346 LSM labels. When an interface is configured with IP addresses, the addresses and subnetwork masks
1347 will be appended to the
<ulink
1348 url=
"https://github.com/SELinuxProject/selinux-notebook/blob/main/src/network_support.md">NetLabel
1349 Fallback Peer Labeling
</ulink> rules. They will be removed when the interface is
1350 deconfigured. Failures to manage the labels will be ignored.
</para>
1353 <para>Once labeling is enabled for network traffic, a lot of LSM access control points in
1354 Linux networking stack go from dormant to active. Care should be taken to avoid getting into a
1355 situation where for example remote connectivity is broken, when the security policy hasn't been
1356 updated to consider LSM per-packet access controls and no rules would allow any network
1357 traffic. Also note that additional configuration with
<citerefentry
1358 project='man-pages'
><refentrytitle>netlabelctl
</refentrytitle><manvolnum>8</manvolnum></citerefentry>
1363 <programlisting>[Address]
1364 NetLabel=system_u:object_r:localnet_peer_t:s0
</programlisting>
1366 With the example rules applying for interface
<literal>eth0
</literal>, when the interface is
1367 configured with an IPv4 address of
10.0.0.123/
8,
<command>systemd-networkd
</command> performs the
1368 equivalent of
<command>netlabelctl
</command> operation
1370 <programlisting>netlabelctl unlbl add interface eth0 address:
10.0.0.0/
8 label:system_u:object_r:localnet_peer_t:s0
</programlisting>
1372 and the reverse operation when the IPv4 address is deconfigured. The configuration can be used with
1373 LSM rules; in case of SELinux to allow a SELinux domain to receive data from objects of SELinux
1374 <literal>peer
</literal> class. For example:
1376 <programlisting>type localnet_peer_t;
1377 allow my_server_t localnet_peer_t:peer recv;
</programlisting>
1379 The effect of the above configuration and rules (in absence of other rules as may be the case) is
1380 to only allow
<literal>my_server_t
</literal> (and nothing else) to receive data from local subnet
1381 10.0.0.0/
8 of interface
<literal>eth0
</literal>.
1384 <xi:include href=
"version-info.xml" xpointer=
"v252"/>
1389 <term><varname>NFTSet=
</varname><replaceable>source
</replaceable>:
<replaceable>family
</replaceable>:
<replaceable>table
</replaceable>:
<replaceable>set
</replaceable></term>
1391 <para>This setting provides a method for integrating network configuration into firewall rules with
1392 <ulink url=
"https://netfilter.org/projects/nftables/index.html">NFT
</ulink> sets. The benefit of
1393 using the setting is that static network configuration (or dynamically obtained network addresses,
1394 see similar directives in other sections) can be used in firewall rules with the indirection of NFT
1395 set types. For example, access could be granted for hosts in the local subnetwork only. Firewall
1396 rules using IP address of an interface are also instantly updated when the network configuration
1397 changes, for example via DHCP.
</para>
1399 <para>This option expects a whitespace separated list of NFT set definitions. Each definition
1400 consists of a colon-separated tuple of source type (one of
<literal>address
</literal>,
1401 <literal>prefix
</literal> or
<literal>ifindex
</literal>), NFT address family (one of
1402 <literal>arp
</literal>,
<literal>bridge
</literal>,
<literal>inet
</literal>,
<literal>ip
</literal>,
1403 <literal>ip6
</literal>, or
<literal>netdev
</literal>), table name and set name. The names of tables
1404 and sets must conform to lexical restrictions of NFT table names. The type of the element used in
1405 the NFT filter must match the type implied by the directive (
<literal>address
</literal>,
1406 <literal>prefix
</literal> or
<literal>ifindex
</literal>) and address type (IPv4 or IPv6) as shown
1407 in the table below.
</para>
1410 <title>Defined
<varname>source type
</varname> values
</title>
1412 <colspec colname='source type'
/>
1413 <colspec colname='description'
/>
1414 <colspec colname='NFT type name'
/>
1417 <entry>Source type
</entry>
1418 <entry>Description
</entry>
1419 <entry>Corresponding NFT type name
</entry>
1425 <entry><literal>address
</literal></entry>
1426 <entry>host IP address
</entry>
1427 <entry><literal>ipv4_addr
</literal> or
<literal>ipv6_addr
</literal></entry>
1430 <entry><literal>prefix
</literal></entry>
1431 <entry>network prefix
</entry>
1432 <entry><literal>ipv4_addr
</literal> or
<literal>ipv6_addr
</literal>, with
<literal>flags interval
</literal></entry>
1435 <entry><literal>ifindex
</literal></entry>
1436 <entry>interface index
</entry>
1437 <entry><literal>iface_index
</literal></entry>
1443 <para>When an interface is configured with IP addresses, the addresses, subnetwork masks or
1444 interface index will be appended to the NFT sets. The information will be removed when the
1445 interface is deconfigured.
<command>systemd-networkd
</command> only inserts elements to (or removes
1446 from) the sets, so the related NFT rules, tables and sets must be prepared elsewhere in
1447 advance. Failures to manage the sets will be ignored.
</para>
1450 <programlisting>[Address]
1451 NFTSet=prefix:netdev:filter:eth_ipv4_prefix
</programlisting>
1452 Corresponding NFT rules:
1453 <programlisting>table netdev filter {
1454 set eth_ipv4_prefix {
1459 type filter hook ingress device
"eth0" priority filter; policy drop;
1460 ip daddr != @eth_ipv4_prefix drop
1466 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
1473 <title>[Neighbor] Section Options
</title>
1475 <para>A [Neighbor] section accepts the following keys. The neighbor section adds a permanent,
1476 static entry to the neighbor table (IPv6) or ARP table (IPv4) for the given hardware address on the
1477 links matched for the network. Specify several [Neighbor] sections to configure several static
1480 <variablelist class='network-directives'
>
1482 <term><varname>Address=
</varname></term>
1484 <para>The IP address of the neighbor.
</para>
1486 <xi:include href=
"version-info.xml" xpointer=
"v240"/>
1491 <term><varname>LinkLayerAddress=
</varname></term>
1493 <para>The link layer address (MAC address or IP address) of the neighbor.
</para>
1495 <xi:include href=
"version-info.xml" xpointer=
"v243"/>
1502 <title>[IPv6AddressLabel] Section Options
</title>
1504 <para>An [IPv6AddressLabel] section accepts the following keys. Specify several [IPv6AddressLabel]
1505 sections to configure several address labels. IPv6 address labels are used for address selection.
1506 See
<ulink url=
"https://tools.ietf.org/html/rfc3484">RFC
3484</ulink>. Precedence is managed by
1507 userspace, and only the label itself is stored in the kernel.
</para>
1509 <variablelist class='network-directives'
>
1511 <term><varname>Label=
</varname></term>
1513 <para>The label for the prefix, an unsigned integer in the range
0…
4294967294.
0xffffffff is
1514 reserved. This setting is mandatory.
</para>
1516 <xi:include href=
"version-info.xml" xpointer=
"v234"/>
1521 <term><varname>Prefix=
</varname></term>
1523 <para>IPv6 prefix is an address with a prefix length, separated by a slash
1524 <literal>/
</literal> character. This setting is mandatory.
</para>
1526 <xi:include href=
"version-info.xml" xpointer=
"v234"/>
1533 <title>[RoutingPolicyRule] Section Options
</title>
1535 <para>An [RoutingPolicyRule] section accepts the following settings. Specify several
1536 [RoutingPolicyRule] sections to configure several rules.
</para>
1538 <variablelist class='network-directives'
>
1540 <term><varname>TypeOfService=
</varname></term>
1543 This specifies the Type of Service (ToS) field of packets to match;
1544 it takes an unsigned integer in the range
0…
255.
1545 The field can be used to specify precedence (the first
3 bits) and ToS (the next
3 bits).
1546 The field can be also used to specify Differentiated Services Code Point (DSCP) (the first
6 bits) and
1547 Explicit Congestion Notification (ECN) (the last
2 bits).
1548 See
<ulink url=
"https://en.wikipedia.org/wiki/Type_of_service">Type of Service
</ulink>
1549 and
<ulink url=
"https://en.wikipedia.org/wiki/Differentiated_services">Differentiated services
</ulink>
1553 <xi:include href=
"version-info.xml" xpointer=
"v235"/>
1558 <term><varname>From=
</varname></term>
1560 <para>Specifies the source address prefix to match. Possibly followed by a slash and the
1561 prefix length.
</para>
1563 <xi:include href=
"version-info.xml" xpointer=
"v235"/>
1568 <term><varname>To=
</varname></term>
1570 <para>Specifies the destination address prefix to match. Possibly followed by a slash and the
1571 prefix length.
</para>
1573 <xi:include href=
"version-info.xml" xpointer=
"v235"/>
1578 <term><varname>FirewallMark=
</varname></term>
1580 <para>Specifies the iptables firewall mark value to match (a number in the range
1581 1…
4294967295). Optionally, the firewall mask (also a number between
1…
4294967295) can be
1582 suffixed with a slash (
<literal>/
</literal>), e.g.,
<literal>7/
255</literal>.
</para>
1584 <xi:include href=
"version-info.xml" xpointer=
"v235"/>
1589 <term><varname>Table=
</varname></term>
1591 <para>Specifies the routing table identifier to look up if the rule selector matches. Takes
1592 one of predefined names
<literal>default
</literal>,
<literal>main
</literal>, and
1593 <literal>local
</literal>, and names defined in
<varname>RouteTable=
</varname> in
1594 <citerefentry><refentrytitle>networkd.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1595 or a number between
1 and
4294967295. Defaults to
<literal>main
</literal>.
</para>
1597 <xi:include href=
"version-info.xml" xpointer=
"v235"/>
1602 <term><varname>Priority=
</varname></term>
1604 <para>Specifies the priority of this rule.
<varname>Priority=
</varname> is an integer in the
1605 range
0…
4294967295. Higher number means lower priority, and rules get processed in order of
1606 increasing number. Defaults to unset, and the kernel will pick a value dynamically.
</para>
1608 <xi:include href=
"version-info.xml" xpointer=
"v235"/>
1613 <term><varname>IncomingInterface=
</varname></term>
1615 <para>Specifies incoming device to match. If the interface is loopback, the rule only matches
1616 packets originating from this host.
</para>
1618 <xi:include href=
"version-info.xml" xpointer=
"v236"/>
1623 <term><varname>OutgoingInterface=
</varname></term>
1625 <para>Specifies the outgoing device to match. The outgoing interface is only available for
1626 packets originating from local sockets that are bound to a device.
</para>
1628 <xi:include href=
"version-info.xml" xpointer=
"v236"/>
1633 <term><varname>SourcePort=
</varname></term>
1635 <para>Specifies the source IP port or IP port range match in forwarding information base
1636 (FIB) rules. A port range is specified by the lower and upper port separated by a dash.
1637 Defaults to unset.
</para>
1639 <xi:include href=
"version-info.xml" xpointer=
"v240"/>
1644 <term><varname>DestinationPort=
</varname></term>
1646 <para>Specifies the destination IP port or IP port range match in forwarding information base
1647 (FIB) rules. A port range is specified by the lower and upper port separated by a dash.
1648 Defaults to unset.
</para>
1650 <xi:include href=
"version-info.xml" xpointer=
"v240"/>
1655 <term><varname>IPProtocol=
</varname></term>
1657 <para>Specifies the IP protocol to match in forwarding information base (FIB) rules. Takes IP
1658 protocol name such as
<literal>tcp
</literal>,
<literal>udp
</literal> or
1659 <literal>sctp
</literal>, or IP protocol number such as
<literal>6</literal> for
1660 <literal>tcp
</literal> or
<literal>17</literal> for
<literal>udp
</literal>. Defaults to unset.
1663 <xi:include href=
"version-info.xml" xpointer=
"v240"/>
1668 <term><varname>InvertRule=
</varname></term>
1670 <para>A boolean. Specifies whether the rule is to be inverted. Defaults to false.
</para>
1672 <xi:include href=
"version-info.xml" xpointer=
"v240"/>
1677 <term><varname>Family=
</varname></term>
1679 <para>Takes a special value
<literal>ipv4
</literal>,
<literal>ipv6
</literal>, or
1680 <literal>both
</literal>. By default, the address family is determined by the address
1681 specified in
<varname>To=
</varname> or
<varname>From=
</varname>. If neither
1682 <varname>To=
</varname> nor
<varname>From=
</varname> are specified, then defaults to
1683 <literal>ipv4
</literal>.
</para>
1685 <xi:include href=
"version-info.xml" xpointer=
"v243"/>
1690 <term><varname>User=
</varname></term>
1692 <para>Takes a username, a user ID, or a range of user IDs separated by a dash. Defaults to
1695 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
1700 <term><varname>SuppressPrefixLength=
</varname></term>
1702 <para>Takes a number
<replaceable>N
</replaceable> in the range
0…
128 and rejects routing
1703 decisions that have a prefix length of
<replaceable>N
</replaceable> or less. Defaults to
1706 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
1711 <term><varname>SuppressInterfaceGroup=
</varname></term>
1713 <para>Takes an integer in the range
0…
2147483647 and rejects routing decisions that have
1714 an interface with the same group id. It has the same meaning as
1715 <option>suppress_ifgroup
</option> in
<command>ip rule
</command>. Defaults to unset.
</para>
1717 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
1722 <term><varname>Type=
</varname></term>
1724 <para>Specifies Routing Policy Database (RPDB) rule type. Takes one of
1725 <literal>blackhole
</literal>,
<literal>unreachable
</literal> or
<literal>prohibit
</literal>.
1728 <xi:include href=
"version-info.xml" xpointer=
"v248"/>
1735 <title>[NextHop] Section Options
</title>
1737 <para>The [NextHop] section is used to manipulate entries in the kernel's
"nexthop" tables. The
1738 [NextHop] section accepts the following settings. Specify several [NextHop] sections to configure
1739 several hops.
</para>
1741 <variablelist class='network-directives'
>
1743 <term><varname>Id=
</varname></term>
1745 <para>The id of the next hop. Takes an integer in the range
1…
4294967295.
1746 This is mandatory if
<varname>ManageForeignNextHops=no
</varname> is specified in
1747 <citerefentry><refentrytitle>networkd.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
1748 Otherwise, if unspecified, an unused ID will be automatically picked.
</para>
1750 <xi:include href=
"version-info.xml" xpointer=
"v244"/>
1755 <term><varname>Gateway=
</varname></term>
1757 <para>As in the [Network] section.
</para>
1759 <xi:include href=
"version-info.xml" xpointer=
"v244"/>
1764 <term><varname>Family=
</varname></term>
1766 <para>Takes one of the special values
<literal>ipv4
</literal> or
<literal>ipv6
</literal>.
1767 By default, the family is determined by the address specified in
1768 <varname>Gateway=
</varname>. If
<varname>Gateway=
</varname> is not specified, then defaults
1769 to
<literal>ipv4
</literal>.
</para>
1771 <xi:include href=
"version-info.xml" xpointer=
"v248"/>
1776 <term><varname>OnLink=
</varname></term>
1778 <para>Takes a boolean. If set to true, the kernel does not have to check if the gateway is
1779 reachable directly by the current machine (i.e., attached to the local network), so that we
1780 can insert the nexthop in the kernel table without it being complained about. Defaults to
1781 <literal>no
</literal>.
</para>
1783 <xi:include href=
"version-info.xml" xpointer=
"v248"/>
1788 <term><varname>Blackhole=
</varname></term>
1790 <para>Takes a boolean. If enabled, packets to the corresponding routes are discarded
1791 silently, and
<varname>Gateway=
</varname> cannot be specified. Defaults to
1792 <literal>no
</literal>.
</para>
1794 <xi:include href=
"version-info.xml" xpointer=
"v248"/>
1799 <term><varname>Group=
</varname></term>
1801 <para>Takes a whitespace separated list of nexthop IDs. Each ID must be in the range
1802 1…
4294967295. Optionally, each nexthop ID can take a weight after a colon
1803 (
<literal><replaceable>id
</replaceable><optional>:
<replaceable>weight
</replaceable></optional></literal>).
1804 The weight must be in the range
1…
255. If the weight is not specified, then it is assumed
1805 that the weight is
1. This setting cannot be specified with
<varname>Gateway=
</varname>,
1806 <varname>Family=
</varname>,
<varname>Blackhole=
</varname>. This setting can be specified
1807 multiple times. If an empty string is assigned, then the all previous assignments are
1808 cleared. Defaults to unset.
</para>
1810 <xi:include href=
"version-info.xml" xpointer=
"v249"/>
1817 <title>[Route] Section Options
</title>
1819 <para>The [Route] section accepts the following settings. Specify several [Route] sections to
1820 configure several routes.
</para>
1822 <variablelist class='network-directives'
>
1824 <term><varname>Gateway=
</varname></term>
1826 <para>Takes the gateway address or the special values
<literal>_dhcp4
</literal> and
1827 <literal>_ipv6ra
</literal>. If
<literal>_dhcp4
</literal> or
<literal>_ipv6ra
</literal> is
1828 set, then the gateway address provided by DHCPv4 or IPv6 RA is used.
</para>
1830 <xi:include href=
"version-info.xml" xpointer=
"v211"/>
1835 <term><varname>GatewayOnLink=
</varname></term>
1837 <para>Takes a boolean. If set to true, the kernel does not have to check if the gateway is
1838 reachable directly by the current machine (i.e., attached to the local network), so that we
1839 can insert the route in the kernel table without it being complained about. Defaults to
1840 <literal>no
</literal>.
</para>
1842 <xi:include href=
"version-info.xml" xpointer=
"v234"/>
1847 <term><varname>Destination=
</varname></term>
1849 <para>The destination prefix of the route. Possibly followed by a slash and the prefix
1850 length. If omitted, a full-length host route is assumed.
</para>
1852 <xi:include href=
"version-info.xml" xpointer=
"v211"/>
1857 <term><varname>Source=
</varname></term>
1859 <para>The source prefix of the route. Possibly followed by a slash and the prefix length. If
1860 omitted, a full-length host route is assumed.
</para>
1862 <xi:include href=
"version-info.xml" xpointer=
"v218"/>
1867 <term><varname>Metric=
</varname></term>
1869 <para>The metric of the route. Takes an unsigned integer in the range
0…
4294967295. Defaults
1870 to unset, and the kernel's default will be used.
</para>
1872 <xi:include href=
"version-info.xml" xpointer=
"v216"/>
1877 <term><varname>IPv6Preference=
</varname></term>
1879 <para>Specifies the route preference as defined in
1880 <ulink url=
"https://tools.ietf.org/html/rfc4191">RFC
4191</ulink> for Router Discovery
1881 messages. Which can be one of
<literal>low
</literal> the route has a lowest priority,
1882 <literal>medium
</literal> the route has a default priority or
<literal>high
</literal> the
1883 route has a highest priority.
</para>
1885 <xi:include href=
"version-info.xml" xpointer=
"v234"/>
1890 <term><varname>Scope=
</varname></term>
1892 <para>The scope of the IPv4 route, which can be
<literal>global
</literal>,
1893 <literal>site
</literal>,
<literal>link
</literal>,
<literal>host
</literal>, or
1894 <literal>nowhere
</literal>:
</para>
1897 <para><literal>global
</literal> means the route can reach hosts more than one hop away.
1902 <para><literal>site
</literal> means an interior route in the local autonomous system.
1907 <para><literal>link
</literal> means the route can only reach hosts on the local network
1908 (one hop away).
</para>
1912 <para><literal>host
</literal> means the route will not leave the local machine (used for
1913 internal addresses like
127.0.0.1).
</para>
1917 <para><literal>nowhere
</literal> means the destination doesn't exist.
</para>
1921 <para>For IPv4 route, defaults to
<literal>host
</literal> if
<varname>Type=
</varname> is
1922 <literal>local
</literal> or
<literal>nat
</literal>, and
<literal>link
</literal> if
1923 <varname>Type=
</varname> is
<literal>broadcast
</literal>,
<literal>multicast
</literal>,
1924 <literal>anycast
</literal>, or
<literal>unicast
</literal>. In other cases,
1925 defaults to
<literal>global
</literal>. The value is not used for IPv6.
</para>
1927 <xi:include href=
"version-info.xml" xpointer=
"v219"/>
1932 <term><varname>PreferredSource=
</varname></term>
1934 <para>The preferred source address of the route. The address must be in the format described
1936 <citerefentry project='man-pages'
><refentrytitle>inet_pton
</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
1939 <xi:include href=
"version-info.xml" xpointer=
"v227"/>
1944 <term><varname>Table=
</varname></term>
1946 <para>The table identifier for the route. Takes one of predefined names
1947 <literal>default
</literal>,
<literal>main
</literal>, and
<literal>local
</literal>, and names
1948 defined in
<varname>RouteTable=
</varname> in
1949 <citerefentry><refentrytitle>networkd.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1950 or a number between
1 and
4294967295. The table can be retrieved using
1951 <command>ip route show table
<replaceable>num
</replaceable></command>. If unset and
1952 <varname>Type=
</varname> is
<literal>local
</literal>,
<literal>broadcast
</literal>,
1953 <literal>anycast
</literal>, or
<literal>nat
</literal>, then
<literal>local
</literal> is used.
1954 In other cases, defaults to
<literal>main
</literal>.
</para>
1956 <xi:include href=
"version-info.xml" xpointer=
"v230"/>
1961 <term><varname>HopLimit=
</varname></term>
1963 <para>Configures per route hop limit. Takes an integer in the range
1…
255. See also
1964 <varname>IPv6HopLimit=
</varname>.
</para>
1966 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
1971 <term><varname>Protocol=
</varname></term>
1973 <para>The protocol identifier for the route. Takes a number between
0 and
255 or the special
1974 values
<literal>kernel
</literal>,
<literal>boot
</literal>,
<literal>static
</literal>,
1975 <literal>ra
</literal> and
<literal>dhcp
</literal>. Defaults to
<literal>static
</literal>.
1978 <xi:include href=
"version-info.xml" xpointer=
"v234"/>
1983 <term><varname>Type=
</varname></term>
1985 <para>Specifies the type for the route. Takes one of
<literal>unicast
</literal>,
1986 <literal>local
</literal>,
<literal>broadcast
</literal>,
<literal>anycast
</literal>,
1987 <literal>multicast
</literal>,
<literal>blackhole
</literal>,
<literal>unreachable
</literal>,
1988 <literal>prohibit
</literal>,
<literal>throw
</literal>,
<literal>nat
</literal>, and
1989 <literal>xresolve
</literal>. If
<literal>unicast
</literal>, a regular route is defined, i.e.
1990 a route indicating the path to take to a destination network address. If
1991 <literal>blackhole
</literal>, packets to the defined route are discarded silently. If
1992 <literal>unreachable
</literal>, packets to the defined route are discarded and the ICMP
1993 message
"Host Unreachable" is generated. If
<literal>prohibit
</literal>, packets to the
1994 defined route are discarded and the ICMP message
"Communication Administratively Prohibited"
1995 is generated. If
<literal>throw
</literal>, route lookup in the current routing table will
1996 fail and the route selection process will return to Routing Policy Database (RPDB). Defaults
1997 to
<literal>unicast
</literal>.
</para>
1999 <xi:include href=
"version-info.xml" xpointer=
"v235"/>
2004 <term><varname>InitialCongestionWindow=
</varname></term>
2006 <para>The TCP initial congestion window is used during the start of a TCP connection.
2007 During the start of a TCP session, when a client requests a resource, the server's initial
2008 congestion window determines how many packets will be sent during the initial burst of data
2009 without waiting for acknowledgement. Takes a number between
1 and
1023. Note that
100 is
2010 considered an extremely large value for this option. When unset, the kernel's default
2011 (typically
10) will be used.
</para>
2013 <xi:include href=
"version-info.xml" xpointer=
"v237"/>
2018 <term><varname>InitialAdvertisedReceiveWindow=
</varname></term>
2020 <para>The TCP initial advertised receive window is the amount of receive data (in bytes)
2021 that can initially be buffered at one time on a connection. The sending host can send only
2022 that amount of data before waiting for an acknowledgment and window update from the
2023 receiving host. Takes a number between
1 and
1023. Note that
100 is considered an extremely
2024 large value for this option. When unset, the kernel's default will be used.
</para>
2026 <xi:include href=
"version-info.xml" xpointer=
"v237"/>
2031 <term><varname>QuickAck=
</varname></term>
2033 <para>Takes a boolean. When true, the TCP quick ACK mode for the route is enabled. When unset,
2034 the kernel's default will be used.
</para>
2036 <xi:include href=
"version-info.xml" xpointer=
"v237"/>
2041 <term><varname>FastOpenNoCookie=
</varname></term>
2043 <para>Takes a boolean. When true enables TCP fastopen without a cookie on a per-route basis.
2044 When unset, the kernel's default will be used.
</para>
2046 <xi:include href=
"version-info.xml" xpointer=
"v243"/>
2051 <term><varname>MTUBytes=
</varname></term>
2053 <para>The maximum transmission unit in bytes to set for the route. The usual suffixes K, M,
2054 G, are supported and are understood to the base of
1024.
</para>
2056 <xi:include href=
"version-info.xml" xpointer=
"v239"/>
2061 <term><varname>TCPAdvertisedMaximumSegmentSize=
</varname></term>
2063 <para>Specifies the Path MSS (in bytes) hints given on TCP layer. The usual suffixes K, M, G,
2064 are supported and are understood to the base of
1024. An unsigned integer in the range
2065 1…
4294967294. When unset, the kernel's default will be used.
</para>
2067 <xi:include href=
"version-info.xml" xpointer=
"v248"/>
2072 <term><varname>TCPCongestionControlAlgorithm=
</varname></term>
2074 <para>Specifies the TCP congestion control algorithm for the route. Takes a name of the algorithm,
2075 e.g.
<literal>bbr
</literal>,
<literal>dctcp
</literal>, or
<literal>vegas
</literal>. When unset,
2076 the kernel's default will be used.
</para>
2078 <xi:include href=
"version-info.xml" xpointer=
"v252"/>
2083 <term><varname>TCPRetransmissionTimeoutSec=
</varname></term>
2085 <para>Specifies the TCP Retransmission Timeout (RTO) for the route. Takes time values in seconds.
2086 This value specifies the timeout of an alive TCP connection, when retransmissions remain
2087 unacknowledged. When unset, the kernel's default will be used.
</para>
2089 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
2094 <term><varname>MultiPathRoute=
<replaceable>address
</replaceable>[@
<replaceable>name
</replaceable>] [
<replaceable>weight
</replaceable>]
</varname></term>
2096 <para>Configures multipath route. Multipath routing is the technique of using multiple
2097 alternative paths through a network. Takes gateway address. Optionally, takes a network
2098 interface name or index separated with
<literal>@
</literal>, and a weight in
1.
.256 for this
2099 multipath route separated with whitespace. This setting can be specified multiple times. If
2100 an empty string is assigned, then the all previous assignments are cleared.
</para>
2102 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
2107 <term><varname>NextHop=
</varname></term>
2109 <para>Specifies the nexthop id. Takes an unsigned integer in the range
1…
4294967295. If set,
2110 the corresponding [NextHop] section must be configured. Defaults to unset.
</para>
2112 <xi:include href=
"version-info.xml" xpointer=
"v248"/>
2119 <title>[DHCPv4] Section Options
</title>
2121 <para>The [DHCPv4] section configures the DHCPv4 client, if it is enabled with the
2122 <varname>DHCP=
</varname> setting described above:
</para>
2124 <variablelist class='network-directives'
>
2126 <!-- DHCP packet contents -->
2129 <term><varname>RequestAddress=
</varname></term>
2131 <para>Takes an IPv4 address. When specified, the Requested IP Address option (option code
50) is
2132 added with it to the initial DHCPDISCOVER message sent by the DHCP client. Defaults to unset, and
2133 an already assigned dynamic address to the interface is automatically picked.
</para>
2135 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
2140 <term><varname>SendHostname=
</varname></term>
2142 <para>When true (the default), the machine's hostname (or the value specified with
2143 <varname>Hostname=
</varname>, described below) will be sent to the DHCP server. Note that the
2144 hostname must consist only of
7-bit ASCII lower-case characters and no spaces or dots, and be
2145 formatted as a valid DNS domain name. Otherwise, the hostname is not sent even if this option
2148 <xi:include href=
"version-info.xml" xpointer=
"v215"/>
2153 <term><varname>Hostname=
</varname></term>
2155 <para>Use this value for the hostname which is sent to the DHCP server, instead of machine's
2156 hostname. Note that the specified hostname must consist only of
7-bit ASCII lower-case
2157 characters and no spaces or dots, and be formatted as a valid DNS domain name.
</para>
2159 <xi:include href=
"version-info.xml" xpointer=
"v223"/>
2164 <term><varname>MUDURL=
</varname></term>
2166 <para>When configured, the specified Manufacturer Usage Description (MUD) URL will be sent
2167 to the DHCPv4 server. Takes a URL of length up to
255 characters. A superficial verification
2168 that the string is a valid URL will be performed. DHCPv4 clients are intended to have at most
2169 one MUD URL associated with them. See
2170 <ulink url=
"https://tools.ietf.org/html/rfc8520">RFC
8520</ulink>.
</para>
2172 <para>MUD is an embedded software standard defined by the IETF that allows IoT device makers
2173 to advertise device specifications, including the intended communication patterns for their
2174 device when it connects to the network. The network can then use this to author a
2175 context-specific access policy, so the device functions only within those parameters.
</para>
2177 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
2182 <term><varname>ClientIdentifier=
</varname></term>
2184 <para>The DHCPv4 client identifier to use. Takes one of
<option>mac
</option> or
2185 <option>duid
</option>. If set to
<option>mac
</option>, the MAC address of the link is used. If set
2186 to
<option>duid
</option>, an RFC4361-compliant Client ID, which is the combination of IAID and
2187 DUID, is used. IAID can be configured by
<varname>IAID=
</varname>. DUID can be configured by
2188 <varname>DUIDType=
</varname> and
<varname>DUIDRawData=
</varname>. Defaults to
2189 <option>duid
</option>.
</para>
2191 <xi:include href=
"version-info.xml" xpointer=
"v220"/>
2196 <term><varname>VendorClassIdentifier=
</varname></term>
2198 <para>The vendor class identifier used to identify vendor type and configuration.
</para>
2200 <xi:include href=
"version-info.xml" xpointer=
"v216"/>
2205 <term><varname>UserClass=
</varname></term>
2207 <para>A DHCPv4 client can use UserClass option to identify the type or category of user or
2208 applications it represents. The information contained in this option is a string that
2209 represents the user class of which the client is a member. Each class sets an identifying
2210 string of information to be used by the DHCP service to classify clients. Takes a
2211 whitespace-separated list of strings.
</para>
2213 <xi:include href=
"version-info.xml" xpointer=
"v239"/>
2218 <term><varname>DUIDType=
</varname></term>
2220 <para>Override the global
<varname>DUIDType=
</varname> setting for this network. See
2221 <citerefentry><refentrytitle>networkd.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>
2222 for a description of possible values.
</para>
2224 <xi:include href=
"version-info.xml" xpointer=
"v230"/>
2229 <term><varname>DUIDRawData=
</varname></term>
2231 <para>Override the global
<varname>DUIDRawData=
</varname> setting for this network. See
2232 <citerefentry><refentrytitle>networkd.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>
2233 for a description of possible values.
</para>
2235 <xi:include href=
"version-info.xml" xpointer=
"v230"/>
2240 <term><varname>IAID=
</varname></term>
2242 <para>The DHCP Identity Association Identifier (IAID) for the interface, a
32-bit unsigned
2245 <xi:include href=
"version-info.xml" xpointer=
"v230"/>
2250 <term><varname>RapidCommit=
</varname></term>
2252 <para>Takes a boolean. The DHCPv4 client can obtain configuration parameters from a DHCPv4 server
2253 through a rapid two-message exchange (discover and ack). When the rapid commit option is set by
2254 both the DHCPv4 client and the DHCPv4 server, the two-message exchange is used. Otherwise, the
2255 four-message exchange (discover, offer, request, and ack) is used. The two-message exchange
2256 provides faster client configuration. See
2257 <ulink url=
"https://tools.ietf.org/html/rfc4039">RFC
4039</ulink> for details.
2258 Defaults to true when
<varname>Anonymize=no
</varname> and neither
<varname>AllowList=
</varname>
2259 nor
<varname>DenyList=
</varname> is specified, and false otherwise.
</para>
2261 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
2266 <term><varname>Anonymize=
</varname></term>
2268 <para>Takes a boolean. When true, the options sent to the DHCP server will follow the
2269 <ulink url=
"https://tools.ietf.org/html/rfc7844">RFC
7844</ulink> (Anonymity Profiles for
2270 DHCP Clients) to minimize disclosure of identifying information. Defaults to false.
</para>
2272 <para>This option should only be set to true when
<varname>MACAddressPolicy=
</varname> is set
2273 to
<option>random
</option> (see
2274 <citerefentry><refentrytitle>systemd.link
</refentrytitle><manvolnum>5</manvolnum></citerefentry>).
2278 <varname>ClientIdentifier=mac
</varname>,
2279 <varname>RapidCommit=no
</varname>,
2280 <varname>SendHostname=no
</varname>,
2281 <varname>Use6RD=no
</varname>,
2282 <varname>UseCaptivePortal=no
</varname>,
2283 <varname>UseMTU=no
</varname>,
2284 <varname>UseNTP=no
</varname>,
2285 <varname>UseSIP=no
</varname>, and
2286 <varname>UseTimezone=no
</varname>
2287 are implied and these settings in the .network file are silently ignored. Also,
2288 <varname>Hostname=
</varname>,
2289 <varname>MUDURL=
</varname>,
2290 <varname>RequestAddress
</varname>,
2291 <varname>RequestOptions=
</varname>,
2292 <varname>SendOption=
</varname>,
2293 <varname>SendVendorOption=
</varname>,
2294 <varname>UserClass=
</varname>, and
2295 <varname>VendorClassIdentifier=
</varname>
2296 are silently ignored.
</para>
2298 <para>With this option enabled DHCP requests will mimic those generated by Microsoft
2299 Windows, in order to reduce the ability to fingerprint and recognize installations. This
2300 means DHCP request sizes will grow and lease data will be more comprehensive than normally,
2301 though most of the requested data is not actually used.
</para>
2303 <xi:include href=
"version-info.xml" xpointer=
"v235"/>
2308 <term><varname>RequestOptions=
</varname></term>
2310 <para>Sets request options to be sent to the server in the DHCPv4 request options list. A
2311 whitespace-separated list of integers in the range
1…
254. Defaults to unset.
</para>
2313 <xi:include href=
"version-info.xml" xpointer=
"v244"/>
2318 <term><varname>SendOption=
</varname></term>
2320 <para>Send an arbitrary raw option in the DHCPv4 request. Takes a DHCP option number, data
2321 type and data separated with a colon
2322 (
<literal><replaceable>option
</replaceable>:
<replaceable>type
</replaceable>:
<replaceable>value
</replaceable></literal>).
2323 The option number must be an integer in the range
1…
254. The type takes one of
2324 <literal>uint8
</literal>,
<literal>uint16
</literal>,
<literal>uint32
</literal>,
2325 <literal>ipv4address
</literal>, or
<literal>string
</literal>. Special characters in the data
2326 string may be escaped using
2327 <ulink url=
"https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
2328 escapes
</ulink>. This setting can be specified multiple times. If an empty string is
2329 specified, then all options specified earlier are cleared. Defaults to unset.
</para>
2331 <xi:include href=
"version-info.xml" xpointer=
"v244"/>
2336 <term><varname>SendVendorOption=
</varname></term>
2338 <para>Send an arbitrary vendor option in the DHCPv4 request. Takes a DHCP option number, data
2339 type and data separated with a colon
2340 (
<literal><replaceable>option
</replaceable>:
<replaceable>type
</replaceable>:
<replaceable>value
</replaceable></literal>).
2341 The option number must be an integer in the range
1…
254. The type takes one of
2342 <literal>uint8
</literal>,
<literal>uint16
</literal>,
<literal>uint32
</literal>,
2343 <literal>ipv4address
</literal>, or
<literal>string
</literal>. Special characters in the data
2344 string may be escaped using
2345 <ulink url=
"https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
2346 escapes
</ulink>. This setting can be specified multiple times. If an empty string is specified,
2347 then all options specified earlier are cleared. Defaults to unset.
</para>
2349 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
2354 <term><varname>IPServiceType=
</varname></term>
2356 <para>Takes one of the special values
<literal>none
</literal>,
<literal>CS6
</literal>, or
2357 <literal>CS4
</literal>. When
<literal>none
</literal> no IP service type is set to the packet
2358 sent from the DHCPv4 client. When
<literal>CS6
</literal> (network control) or
2359 <literal>CS4
</literal> (realtime), the corresponding service type will be set. Defaults to
2360 <literal>CS6
</literal>.
</para>
2362 <xi:include href=
"version-info.xml" xpointer=
"v244"/>
2367 <term><varname>SocketPriority=
</varname></term>
2369 <para>The Linux socket option
<constant>SO_PRIORITY
</constant> applied to the raw IP socket used for
2370 initial DHCPv4 messages. Unset by default. Usual values range from
0 to
6.
2371 More details about
<constant>SO_PRIORITY
</constant> socket option in
2372 <citerefentry project='man-pages'
><refentrytitle>socket
</refentrytitle><manvolnum>7</manvolnum></citerefentry>.
2373 Can be used in conjunction with [VLAN] section
<varname>EgressQOSMaps=
</varname> setting of .netdev
2374 file to set the
802.1Q VLAN ethernet tagged header priority, see
2375 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
2378 <xi:include href=
"version-info.xml" xpointer=
"v253"/>
2382 <!-- How to use the DHCP lease -->
2385 <term><varname>Label=
</varname></term>
2387 <para>Specifies the label for the IPv4 address received from the DHCP server. The label must
2388 be a
7-bit ASCII string with a length of
1…
15 characters. Defaults to unset.
</para>
2390 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
2395 <term><varname>UseDNS=
</varname></term>
2397 <para>When true (the default), the DNS servers received from the DHCP server will be used.
2400 <para>This corresponds to the
<option>nameserver
</option> option in
2401 <citerefentry project='man-pages'
><refentrytitle>resolv.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
2404 <xi:include href=
"version-info.xml" xpointer=
"v211"/>
2409 <term><varname>RoutesToDNS=
</varname></term>
2411 <para>When true, the routes to the DNS servers received from the DHCP server will be
2412 configured. When
<varname>UseDNS=
</varname> is disabled, this setting is ignored. Defaults to
2415 <xi:include href=
"version-info.xml" xpointer=
"v243"/>
2420 <term><varname>UseNTP=
</varname></term>
2422 <para>When true (the default), the NTP servers received from the DHCP server will be used by
2423 <filename>systemd-timesyncd.service
</filename>.
</para>
2425 <xi:include href=
"version-info.xml" xpointer=
"v220"/>
2430 <term><varname>RoutesToNTP=
</varname></term>
2432 <para>When true, the routes to the NTP servers received from the DHCP server will be
2433 configured. When
<varname>UseNTP=
</varname> is disabled, this setting is ignored. Defaults to
2436 <xi:include href=
"version-info.xml" xpointer=
"v249"/>
2441 <term><varname>UseSIP=
</varname></term>
2443 <para>When true (the default), the SIP servers received from the DHCP server will be collected
2444 and made available to client programs.
</para>
2446 <xi:include href=
"version-info.xml" xpointer=
"v244"/>
2451 <term><varname>UseCaptivePortal=
</varname></term>
2453 <para>When true (the default), the captive portal advertised by the DHCP server will be recorded
2454 and made available to client programs and displayed in the
2455 <citerefentry><refentrytitle>networkctl
</refentrytitle><manvolnum>1</manvolnum></citerefentry>
2456 status output per-link.
</para>
2458 <xi:include href=
"version-info.xml" xpointer=
"v254"/>
2463 <term><varname>UseMTU=
</varname></term>
2465 <para>When true, the interface maximum transmission unit from the DHCP server will be used on
2466 the current link. If
<varname>MTUBytes=
</varname> is set, then this setting is ignored.
2467 Defaults to false.
</para>
2469 <para>Note, some drivers will reset the interfaces if the MTU is changed. For such
2470 interfaces, please try to use
<varname>IgnoreCarrierLoss=
</varname> with a short timespan,
2471 e.g.
<literal>3 seconds
</literal>.
</para>
2473 <xi:include href=
"version-info.xml" xpointer=
"v211"/>
2478 <term><varname>UseHostname=
</varname></term>
2480 <para>When true (the default), the hostname received from the DHCP server will be set as the
2481 transient hostname of the system.
</para>
2483 <xi:include href=
"version-info.xml" xpointer=
"v211"/>
2488 <term><varname>UseDomains=
</varname></term>
2490 <para>Takes a boolean, or the special value
<option>route
</option>. When true, the domain name
2491 received from the DHCP server will be used as DNS search domain over this link, similarly to the
2492 effect of the
<option>Domains=
</option> setting. If set to
<option>route
</option>, the domain name
2493 received from the DHCP server will be used for routing DNS queries only, but not for searching,
2494 similarly to the effect of the
<option>Domains=
</option> setting when the argument is prefixed with
2495 <literal>~
</literal>. Defaults to false.
</para>
2497 <para>It is recommended to enable this option only on trusted networks, as setting this
2498 affects resolution of all hostnames, in particular of single-label names. It is generally
2499 safer to use the supplied domain only as routing domain, rather than as search domain, in
2500 order to not have it affect local resolution of single-label names.
</para>
2502 <para>When set to true, this setting corresponds to the
<option>domain
</option> option in
2503 <citerefentry project='man-pages'
><refentrytitle>resolv.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
2506 <xi:include href=
"version-info.xml" xpointer=
"v216"/>
2511 <term><varname>UseRoutes=
</varname></term>
2513 <para>When true (the default), the static routes will be requested from the DHCP server and
2514 added to the routing table with a metric of
1024, and a scope of
<option>global
</option>,
2515 <option>link
</option> or
<option>host
</option>, depending on the route's destination and
2516 gateway. If the destination is on the local host, e.g.,
127.x.x.x, or the same as the link's
2517 own address, the scope will be set to
<option>host
</option>. Otherwise if the gateway is null
2518 (a direct route), a
<option>link
</option> scope will be used. For anything else, scope
2519 defaults to
<option>global
</option>.
</para>
2521 <xi:include href=
"version-info.xml" xpointer=
"v215"/>
2526 <term><varname>RouteMetric=
</varname></term>
2528 <para>Set the routing metric for routes specified by the DHCP server (including the prefix
2529 route added for the specified prefix). Takes an unsigned integer in the range
0…
4294967295.
2530 Defaults to
1024.
</para>
2532 <xi:include href=
"version-info.xml" xpointer=
"v217"/>
2537 <term><varname>RouteTable=
<replaceable>num
</replaceable></varname></term>
2539 <para>The table identifier for DHCP routes. Takes one of predefined names
2540 <literal>default
</literal>,
<literal>main
</literal>, and
<literal>local
</literal>, and names
2541 defined in
<varname>RouteTable=
</varname> in
2542 <citerefentry><refentrytitle>networkd.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
2543 or a number between
1…
4294967295.
</para>
2545 <para>When used in combination with
<varname>VRF=
</varname>, the VRF's routing table is
2546 used when this parameter is not specified.
</para>
2548 <xi:include href=
"version-info.xml" xpointer=
"v232"/>
2553 <term><varname>RouteMTUBytes=
</varname></term>
2555 <para>Specifies the MTU for the DHCP routes. Please see the [Route] section for further
2558 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
2563 <term><varname>QuickAck=
</varname></term>
2565 <para>Takes a boolean. When true, the TCP quick ACK mode is enabled for the routes configured by
2566 the acquired DHCPv4 lease. When unset, the kernel's default will be used.
</para>
2568 <xi:include href=
"version-info.xml" xpointer=
"v253"/>
2573 <term><varname>InitialCongestionWindow=
</varname></term>
2575 <para>As in the [Route] section.
</para>
2577 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
2582 <term><varname>InitialAdvertisedReceiveWindow=
</varname></term>
2584 <para>As in the [Route] section.
</para>
2586 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
2591 <term><varname>UseGateway=
</varname></term>
2593 <para>When true, and the DHCP server provides a Router option, the default gateway based on the
2594 router address will be configured. Defaults to unset, and the value specified with
2595 <varname>UseRoutes=
</varname> will be used.
</para>
2597 <para>Note, when the server provides both the Router and Classless Static Routes option, and
2598 <varname>UseRoutes=
</varname> is enabled, the Router option is always ignored regardless of this
2599 setting. See
<ulink url=
"https://datatracker.ietf.org/doc/html/rfc3442">RFC
3442</ulink>.
</para>
2601 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
2606 <term><varname>UseTimezone=
</varname></term>
2607 <listitem><para>When true, the timezone received from the DHCP server will be set as timezone
2608 of the local system. Defaults to false.
</para>
2610 <xi:include href=
"version-info.xml" xpointer=
"v226"/></listitem>
2614 <term><varname>Use6RD=
</varname></term>
2616 <para>When true, subnets of the received IPv6 prefix are assigned to downstream interfaces
2617 which enables
<varname>DHCPPrefixDelegation=
</varname>. See also
2618 <varname>DHCPPrefixDelegation=
</varname> in the [Network] section, the [DHCPPrefixDelegation]
2619 section, and
<ulink url=
"https://tools.ietf.org/html/rfc5969">RFC
5969</ulink>. Defaults to
2622 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
2627 <term><varname>IPv6OnlyMode=
</varname></term>
2629 <para>When true, the DHCPv4 configuration will be delayed by the timespan provided by the DHCP
2630 server and skip to configure dynamic IPv4 network connectivity if IPv6 connectivity is provided
2631 within the timespan. See
<ulink url=
"https://tools.ietf.org/html/rfc8925">RFC
8925</ulink>.
2632 Defaults to true when
<varname>IPv6AcceptRA=
</varname> is enabled or DHCPv6 client is enabled
2633 (i.e.,
<varname>DHCP=yes
</varname>), and false otherwise.
</para>
2635 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
2640 <term><varname>FallbackLeaseLifetimeSec=
</varname></term>
2642 <para>Allows one to set DHCPv4 lease lifetime when DHCPv4 server does not send the lease
2643 lifetime. Takes one of
<literal>forever
</literal> or
<literal>infinity
</literal>. If
2644 specified, the acquired address never expires. Defaults to unset.
</para>
2646 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
2650 <!-- How to communicate with the server -->
2653 <term><varname>RequestBroadcast=
</varname></term>
2655 <para>Request the server to use broadcast messages before the IP address has been configured.
2656 This is necessary for devices that cannot receive RAW packets, or that cannot receive packets
2657 at all before an IP address has been configured. On the other hand, this must not be enabled
2658 on networks where broadcasts are filtered out.
</para>
2660 <xi:include href=
"version-info.xml" xpointer=
"v216"/>
2665 <term><varname>MaxAttempts=
</varname></term>
2667 <para>Specifies how many times the DHCPv4 client configuration should be attempted. Takes a
2668 number or
<literal>infinity
</literal>. Defaults to
<literal>infinity
</literal>. Note that the
2669 time between retries is increased exponentially, up to approximately one per minute, so the
2670 network will not be overloaded even if this number is high. The default is suitable in most
2671 circumstances.
</para>
2673 <xi:include href=
"version-info.xml" xpointer=
"v243"/>
2678 <term><varname>ListenPort=
</varname></term>
2680 <para>Set the port from which the DHCP client packets originate.
</para>
2682 <xi:include href=
"version-info.xml" xpointer=
"v233"/>
2687 <term><varname>DenyList=
</varname></term>
2689 <para>A whitespace-separated list of IPv4 addresses. Each address can optionally take a
2690 prefix length after
<literal>/
</literal>. DHCP offers from servers in the list are rejected.
2691 Note that if
<varname>AllowList=
</varname> is configured then
<varname>DenyList=
</varname> is
2693 <para>Note that this filters only DHCP offers, so the filtering may not work when
2694 <varname>RapidCommit=
</varname> is enabled. See also
<varname>RapidCommit=
</varname> in the above.
2697 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
2702 <term><varname>AllowList=
</varname></term>
2704 <para>A whitespace-separated list of IPv4 addresses. Each address can optionally take a
2705 prefix length after
<literal>/
</literal>. DHCP offers from servers in the list are accepted.
2707 <para>Note that this filters only DHCP offers, so the filtering may not work when
2708 <varname>RapidCommit=
</varname> is enabled. See also
<varname>RapidCommit=
</varname> in the above.
2711 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
2716 <term><varname>SendRelease=
</varname></term>
2718 <para>When true, the DHCPv4 client sends a DHCP release packet when it stops. Defaults to
2721 <xi:include href=
"version-info.xml" xpointer=
"v243"/>
2726 <term><varname>SendDecline=
</varname></term>
2728 <para>A boolean. When true,
<command>systemd-networkd
</command> performs IPv4 Duplicate
2729 Address Detection to the acquired address by the DHCPv4 client. If duplicate is detected,
2730 the DHCPv4 client rejects the address by sending a
<constant>DHCPDECLINE
</constant> packet to
2731 the DHCP server, and tries to obtain an IP address again. See
2732 <ulink url=
"https://tools.ietf.org/html/rfc5227">RFC
5227</ulink>. Defaults to false.
</para>
2734 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
2739 <term><varname>NetLabel=
</varname></term>
2741 <para>This applies the NetLabel for the addresses received with DHCP, like
2742 <varname>NetLabel=
</varname> in [Address] section applies it to statically configured
2743 addresses. See
<varname>NetLabel=
</varname> in [Address] section for more details.
</para>
2745 <xi:include href=
"version-info.xml" xpointer=
"v252"/>
2750 <term><varname>NFTSet=
</varname></term>
2752 <para>This applies the NFT set for the network configuration received with DHCP, like
2753 <varname>NFTSet=
</varname> in [Address] section applies it to static configuration. See
2754 <varname>NFTSet=
</varname> in [Address] section for more details. For
<literal>address
</literal> or
2755 <literal>prefix
</literal> source types, the type of the element used in the NFT filter must be
2756 <literal>ipv4_addr
</literal>.
</para>
2758 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
2765 <title>[DHCPv6] Section Options
</title>
2767 <para>The [DHCPv6] section configures the DHCPv6 client, if it is enabled with the
2768 <varname>DHCP=
</varname> setting described above, or invoked by the IPv6 Router Advertisement:
2771 <variablelist class='network-directives'
>
2773 <!-- DHCP packet contents -->
2776 <term><varname>MUDURL=
</varname></term>
2777 <term><varname>IAID=
</varname></term>
2778 <term><varname>DUIDType=
</varname></term>
2779 <term><varname>DUIDRawData=
</varname></term>
2780 <term><varname>RequestOptions=
</varname></term>
2782 <para>As in the [DHCPv4] section.
</para>
2784 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
2789 <term><varname>SendOption=
</varname></term>
2791 <para>As in the [DHCPv4] section, however because DHCPv6 uses
16-bit fields to store option
2792 numbers, the option number is an integer in the range
1…
65536.
</para>
2794 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
2799 <term><varname>SendVendorOption=
</varname></term>
2801 <para>Send an arbitrary vendor option in the DHCPv6 request. Takes an enterprise identifier,
2802 DHCP option number, data type, and data separated with a colon
2803 (
<literal><replaceable>enterprise identifier
</replaceable>:
<replaceable>option
</replaceable>:
<replaceable>type
</replaceable>:
<replaceable>value
</replaceable></literal>).
2804 Enterprise identifier is an unsigned integer in the range
1…
4294967294. The option number
2805 must be an integer in the range
1…
254. Data type takes one of
<literal>uint8
</literal>,
2806 <literal>uint16
</literal>,
<literal>uint32
</literal>,
<literal>ipv4address
</literal>,
2807 <literal>ipv6address
</literal>, or
<literal>string
</literal>. Special characters in the data
2808 string may be escaped using
2809 <ulink url=
"https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
2810 escapes
</ulink>. This setting can be specified multiple times. If an empty string is
2811 specified, then all options specified earlier are cleared. Defaults to unset.
</para>
2813 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
2818 <term><varname>UserClass=
</varname></term>
2820 <para>A DHCPv6 client can use User Class option to identify the type or category of user or
2821 applications it represents. The information contained in this option is a string that
2822 represents the user class of which the client is a member. Each class sets an identifying
2823 string of information to be used by the DHCP service to classify clients. Special characters
2824 in the data string may be escaped using
2825 <ulink url=
"https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
2826 escapes
</ulink>. This setting can be specified multiple times. If an empty string is
2827 specified, then all options specified earlier are cleared. Takes a whitespace-separated list
2828 of strings. Note that currently
<constant>NUL
</constant> bytes are not allowed.
</para>
2830 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
2835 <term><varname>VendorClass=
</varname></term>
2837 <para>A DHCPv6 client can use VendorClass option to identify the vendor that manufactured the
2838 hardware on which the client is running. The information contained in the data area of this
2839 option is contained in one or more opaque fields that identify details of the hardware
2840 configuration. Takes a whitespace-separated list of strings.
</para>
2842 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
2847 <term><varname>PrefixDelegationHint=
</varname></term>
2849 <para>Takes an IPv6 address with prefix length in the same format as the
2850 <varname>Address=
</varname> in the [Network] section. The DHCPv6 client will include a prefix
2851 hint in the DHCPv6 solicitation sent to the server. The prefix length must be in the range
2852 1…
128. Defaults to unset.
</para>
2854 <xi:include href=
"version-info.xml" xpointer=
"v244"/>
2859 <term><varname>RapidCommit=
</varname></term>
2861 <para>Takes a boolean. The DHCPv6 client can obtain configuration parameters from a DHCPv6 server
2862 through a rapid two-message exchange (solicit and reply). When the rapid commit option is set by
2863 both the DHCPv6 client and the DHCPv6 server, the two-message exchange is used. Otherwise, the
2864 four-message exchange (solicit, advertise, request, and reply) is used. The two-message exchange
2865 provides faster client configuration. See
2866 <ulink url=
"https://tools.ietf.org/html/rfc3315#section-17.2.1">RFC
3315</ulink> for details.
2867 Defaults to true, and the two-message exchange will be used if the server support it.
</para>
2869 <xi:include href=
"version-info.xml" xpointer=
"v252"/>
2874 <term><varname>SendHostname=
</varname></term>
2876 <para>When true (the default), the machine's hostname (or the value specified with
2877 <varname>Hostname=
</varname>, described below) will be sent to the DHCPv6 server. Note that the
2878 hostname must consist only of
7-bit ASCII lower-case characters and no spaces or dots, and be
2879 formatted as a valid DNS domain name. Otherwise, the hostname is not sent even if this option
2882 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
2887 <term><varname>Hostname=
</varname></term>
2889 <para>Use this value for the hostname which is sent to the DHCPv6 server, instead of machine's
2890 hostname. Note that the specified hostname must consist only of
7-bit ASCII lower-case
2891 characters and no spaces or dots, and be formatted as a valid DNS domain name.
</para>
2893 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
2897 <!-- How to use the DHCP lease -->
2900 <term><varname>UseAddress=
</varname></term>
2902 <para>When true (the default), the IP addresses provided by the DHCPv6 server will be
2905 <xi:include href=
"version-info.xml" xpointer=
"v248"/>
2910 <term><varname>UseCaptivePortal=
</varname></term>
2912 <para>When true (the default), the captive portal advertised by the DHCPv6 server will be recorded
2913 and made available to client programs and displayed in the
2914 <citerefentry><refentrytitle>networkctl
</refentrytitle><manvolnum>1</manvolnum></citerefentry>
2915 status output per-link.
</para>
2917 <xi:include href=
"version-info.xml" xpointer=
"v254"/>
2922 <term><varname>UseDelegatedPrefix=
</varname></term>
2924 <para>When true (the default), the client will request the DHCPv6 server to delegate
2925 prefixes. If the server provides prefixes to be delegated, then subnets of the prefixes are
2926 assigned to the interfaces that have
<varname>DHCPPrefixDelegation=yes
</varname>.
2927 See also the
<varname>DHCPPrefixDelegation=
</varname> setting in the [Network] section,
2928 settings in the [DHCPPrefixDelegation] section, and
2929 <ulink url=
"https://www.rfc-editor.org/rfc/rfc8415.html#section-6.3">RFC
8415</ulink>.
2932 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
2937 <term><varname>UseDNS=
</varname></term>
2938 <term><varname>UseNTP=
</varname></term>
2939 <term><varname>UseHostname=
</varname></term>
2940 <term><varname>UseDomains=
</varname></term>
2941 <term><varname>NetLabel=
</varname></term>
2942 <term><varname>SendRelease=
</varname></term>
2944 <para>As in the [DHCPv4] section.
</para>
2946 <xi:include href=
"version-info.xml" xpointer=
"v243"/>
2951 <term><varname>NFTSet=
</varname></term>
2953 <para>This applies the NFT set for the network configuration received with DHCP, like
2954 <varname>NFTSet=
</varname> in [Address] section applies it to static configuration. See
2955 <varname>NFTSet=
</varname> in [Address] section for more details. For
<literal>address
</literal>
2956 or
<literal>prefix
</literal> source types, the type of the element used in the NFT filter must be
2957 <literal>ipv6_addr
</literal>.
</para>
2959 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
2963 <!-- How to communicate with the server -->
2966 <term><varname>WithoutRA=
</varname></term>
2968 <para>Allows DHCPv6 client to start without router advertisements's
2969 <literal>managed
</literal> or
<literal>other configuration
</literal> flag. Takes one of
2970 <literal>no
</literal>,
<literal>solicit
</literal>, or
2971 <literal>information-request
</literal>. If this is not specified,
2972 <literal>solicit
</literal> is used when
<varname>DHCPPrefixDelegation=
</varname> is enabled
2973 and
<varname>UplinkInterface=:self
</varname> is specified in the [DHCPPrefixDelegation]
2974 section. Otherwise, defaults to
<literal>no
</literal>, and the DHCPv6 client will be started
2975 when an RA is received. See also the
<varname>DHCPv6Client=
</varname> setting in the
2976 [IPv6AcceptRA] section.
</para>
2978 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
2985 <title>[DHCPPrefixDelegation] Section Options
</title>
2986 <para>The [DHCPPrefixDelegation] section configures subnet prefixes of the delegated prefixes
2987 acquired by a DHCPv6 client or by a DHCPv4 client through the
6RD option on another interface.
2988 The settings in this section are used only when the
<varname>DHCPPrefixDelegation=
</varname>
2989 setting in the [Network] section is enabled.
</para>
2991 <variablelist class='network-directives'
>
2993 <term><varname>UplinkInterface=
</varname></term>
2995 <para>Specifies the name or the index of the uplink interface, or one of the special values
2996 <literal>:self
</literal> and
<literal>:auto
</literal>. When
<literal>:self
</literal>, the
2997 interface itself is considered the uplink interface, and
2998 <varname>WithoutRA=solicit
</varname> is implied if the setting is not explicitly specified.
2999 When
<literal>:auto
</literal>, the first link which acquired prefixes to be delegated from
3000 the DHCPv6 or DHCPv4 server is selected. Defaults to
<literal>:auto
</literal>.
</para>
3002 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
3007 <term><varname>SubnetId=
</varname></term>
3009 <para>Configure a specific subnet ID on the interface from a (previously) received prefix
3010 delegation. You can either set
"auto" (the default) or a specific subnet ID (as defined in
3011 <ulink url=
"https://tools.ietf.org/html/rfc4291#section-2.5.4">RFC
4291</ulink>, section
3012 2.5.4), in which case the allowed value is hexadecimal, from
0 to
0x7fffffffffffffff
3015 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
3020 <term><varname>Announce=
</varname></term>
3022 <para>Takes a boolean. When enabled, and
<varname>IPv6SendRA=
</varname> in [Network] section
3023 is enabled, the delegated prefixes are distributed through the IPv6 Router Advertisement.
3024 This setting will be ignored when the
<varname>DHCPPrefixDelegation=
</varname> setting is
3025 enabled on the upstream interface. Defaults to yes.
</para>
3027 <xi:include href=
"version-info.xml" xpointer=
"v247"/>
3032 <term><varname>Assign=
</varname></term>
3034 <para>Takes a boolean. Specifies whether to add an address from the delegated prefixes which
3035 are received from the WAN interface by the DHCPv6 Prefix Delegation. When true (on LAN
3036 interface), the EUI-
64 algorithm will be used by default to form an interface identifier from
3037 the delegated prefixes. See also
<varname>Token=
</varname> setting below. Defaults to yes.
3040 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
3045 <term><varname>Token=
</varname></term>
3047 <para>Specifies an optional address generation mode for assigning an address in each
3048 delegated prefix. This accepts the same syntax as
<varname>Token=
</varname> in the
3049 [IPv6AcceptRA] section. If
<varname>Assign=
</varname> is set to false, then this setting will
3050 be ignored. Defaults to unset, which means the EUI-
64 algorithm will be used.
</para>
3052 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
3057 <term><varname>ManageTemporaryAddress=
</varname></term>
3059 <para>As in the [Address] section, but defaults to true.
</para>
3061 <xi:include href=
"version-info.xml" xpointer=
"v248"/>
3066 <term><varname>RouteMetric=
</varname></term>
3068 <para>The metric of the route to the delegated prefix subnet. Takes an unsigned integer in
3069 the range
0…
4294967295. When set to
0, the kernel's default value is used. Defaults to
256.
3072 <xi:include href=
"version-info.xml" xpointer=
"v249"/>
3077 <term><varname>NetLabel=
</varname></term>
3079 <para>This applies the NetLabel for the addresses received with DHCP, like
3080 <varname>NetLabel=
</varname> in [Address] section applies it to statically configured
3081 addresses. See
<varname>NetLabel=
</varname> in [Address] section for more details.
</para>
3083 <xi:include href=
"version-info.xml" xpointer=
"v252"/>
3088 <term><varname>NFTSet=
</varname></term>
3090 <para>This applies the NFT set for the network configuration received with DHCP, like
3091 <varname>NFTSet=
</varname> in [Address] section applies it to static configuration. See
3092 <varname>NFTSet=
</varname> in [Address] section for more details. For
<literal>address
</literal> or
3093 <literal>prefix
</literal> source types, the type of the element used in the NFT filter must be
3094 <literal>ipv6_addr
</literal>.
</para>
3096 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
3103 <title>[IPv6AcceptRA] Section Options
</title>
3104 <para>The [IPv6AcceptRA] section configures the IPv6 Router Advertisement (RA) client, if it is enabled
3105 with the
<varname>IPv6AcceptRA=
</varname> setting described above:
</para>
3107 <variablelist class='network-directives'
>
3109 <term><varname>Token=
</varname></term>
3111 <para>Specifies an optional address generation mode for the Stateless Address
3112 Autoconfiguration (SLAAC). The following values are supported:
</para>
3116 <term><option>eui64
</option></term>
3119 The EUI-
64 algorithm will be used to generate an address for that prefix. Only
3120 supported by Ethernet or InfiniBand interfaces.
3123 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
3127 <term><option>static:
<replaceable>ADDRESS
</replaceable></option></term>
3130 An IPv6 address must be specified after a colon (
<literal>:
</literal>), and the
3131 lower bits of the supplied address are combined with the upper bits of a prefix
3132 received in a Router Advertisement (RA) message to form a complete address. Note
3133 that if multiple prefixes are received in an RA message, or in multiple RA messages,
3134 addresses will be formed from each of them using the supplied address. This mode
3135 implements SLAAC but uses a static interface identifier instead of an identifier
3136 generated by using the EUI-
64 algorithm. Because the interface identifier is static,
3137 if Duplicate Address Detection detects that the computed address is a duplicate
3138 (in use by another node on the link), then this mode will fail to provide an address
3139 for that prefix. If an IPv6 address without mode is specified, then
3140 <literal>static
</literal> mode is assumed.
3143 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
3147 <term><option>prefixstable[:
<replaceable>ADDRESS
</replaceable>][,
<replaceable>UUID
</replaceable>]
</option></term>
3150 The algorithm specified in
3151 <ulink url=
"https://tools.ietf.org/html/rfc7217">RFC
7217</ulink> will be used to
3152 generate interface identifiers. This mode can optionally take an IPv6 address
3153 separated with a colon (
<literal>:
</literal>). If an IPv6 address is specified,
3154 then an interface identifier is generated only when a prefix received in an RA
3155 message matches the supplied address.
3158 This mode can also optionally take a non-null UUID in the format which
3159 <function>sd_id128_from_string()
</function> accepts, e.g.
3160 <literal>86b123b969ba4b7eb8b3d8605123525a
</literal> or
3161 <literal>86b123b9-
69ba-
4b7e-b8b3-d8605123525a
</literal>. If a UUID is specified, the
3162 value is used as the secret key to generate interface identifiers. If not specified,
3163 then an application specific ID generated with the system's machine-ID will be used
3164 as the secret key. See
3165 <citerefentry><refentrytitle>sd-id128
</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
3166 <citerefentry><refentrytitle>sd_id128_from_string
</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
3168 <citerefentry><refentrytitle>sd_id128_get_machine
</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
3171 Note that the
<literal>prefixstable
</literal> algorithm uses both the interface
3172 name and MAC address as input to the hash to compute the interface identifier, so
3173 if either of those are changed the resulting interface identifier (and address)
3174 will be changed, even if the prefix received in the RA message has not been
3178 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
3183 <para>If no address generation mode is specified (which is the default), or a received
3184 prefix does not match any of the addresses provided in
<literal>prefixstable
</literal>
3185 mode, then the EUI-
64 algorithm will be used for Ethernet or InfiniBand interfaces,
3186 otherwise
<literal>prefixstable
</literal> will be used to form an interface identifier for
3189 <para>This setting can be specified multiple times. If an empty string is assigned, then
3190 the all previous assignments are cleared.
</para>
3193 <programlisting>Token=eui64
3195 Token=static:::
1a:
2b:
3c:
4d
3197 Token=prefixstable:
2002:da8:
1::
</programlisting></para>
3199 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
3204 <term><varname>UseDNS=
</varname></term>
3206 <para>When true (the default), the DNS servers received in the Router Advertisement will be used.
</para>
3208 <para>This corresponds to the
<option>nameserver
</option> option in
<citerefentry
3209 project='man-pages'
><refentrytitle>resolv.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
</para>
3211 <xi:include href=
"version-info.xml" xpointer=
"v231"/>
3216 <term><varname>UseDomains=
</varname></term>
3218 <para>Takes a boolean, or the special value
<literal>route
</literal>. When true, the domain name
3219 received via IPv6 Router Advertisement (RA) will be used as DNS search domain over this link,
3220 similarly to the effect of the
<option>Domains=
</option> setting. If set to
3221 <literal>route
</literal>, the domain name received via IPv6 RA will be used for routing DNS queries
3222 only, but not for searching, similarly to the effect of the
<option>Domains=
</option> setting when
3223 the argument is prefixed with
<literal>~
</literal>. Defaults to false.
</para>
3225 <para>It is recommended to enable this option only on trusted networks, as setting this affects resolution
3226 of all hostnames, in particular of single-label names. It is generally safer to use the supplied domain
3227 only as routing domain, rather than as search domain, in order to not have it affect local resolution of
3228 single-label names.
</para>
3230 <para>When set to true, this setting corresponds to the
<option>domain
</option> option in
<citerefentry
3231 project='man-pages'
><refentrytitle>resolv.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
</para>
3233 <xi:include href=
"version-info.xml" xpointer=
"v231"/>
3238 <term><varname>RouteTable=
<replaceable>num
</replaceable></varname></term>
3240 <para>The table identifier for the routes received in the Router Advertisement. Takes one of
3241 predefined names
<literal>default
</literal>,
<literal>main
</literal>, and
<literal>local
</literal>,
3242 and names defined in
<varname>RouteTable=
</varname> in
3243 <citerefentry><refentrytitle>networkd.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
3244 or a number between
1…
4294967295.
</para>
3246 <para>When used in combination with
<varname>VRF=
</varname>, the VRF's routing table is
3247 used when this parameter is not specified.
</para>
3249 <xi:include href=
"version-info.xml" xpointer=
"v232"/>
3254 <term><varname>RouteMetric=
</varname></term>
3256 <para>Set the routing metric for the routes received in the Router Advertisement. Takes an unsigned
3257 integer in the range
0…
4294967295, or three unsigned integer separated with
<literal>:
</literal>,
3258 in that case the first one is used when the router preference is high, the second is for medium
3259 preference, and the last is for low preference
3260 (
<literal><replaceable>high
</replaceable>:
<replaceable>medium
</replaceable>:
<replaceable>low
</replaceable></literal>).
3261 Defaults to
<literal>512:
1024:
2048</literal>.
</para>
3263 <xi:include href=
"version-info.xml" xpointer=
"v249"/>
3268 <term><varname>QuickAck=
</varname></term>
3270 <para>Takes a boolean. When true, the TCP quick ACK mode is enabled for the routes configured by
3271 the received RAs. When unset, the kernel's default will be used.
</para>
3273 <xi:include href=
"version-info.xml" xpointer=
"v253"/>
3278 <term><varname>UseMTU=
</varname></term>
3280 <para>Takes a boolean. When true, the MTU received in the Router Advertisement will be
3281 used. Defaults to true.
</para>
3283 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
3288 <term><varname>UseHopLimit=
</varname></term>
3290 <para>Takes a boolean. When true, the hop limit received in the Router Advertisement will be set to routes
3291 configured based on the advertisement. See also
<varname>IPv6HopLimit=
</varname>. Defaults to true.
</para>
3293 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
3298 <term><varname>UseICMP6RateLimit=
</varname></term>
3300 <para>Takes a boolean. When true, the ICMP6 rate limit received in the Router Advertisement will be set to ICMP6
3301 rate limit based on the advertisement. Defaults to true.
</para>
3303 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
3308 <term><varname>UseGateway=
</varname></term>
3310 <para>When true (the default), the router address will be configured as the default gateway.
3313 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
3318 <term><varname>UseRoutePrefix=
</varname></term>
3320 <para>When true (the default), the routes corresponding to the route prefixes received in
3321 the Router Advertisement will be configured.
</para>
3323 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
3328 <term><varname>UseCaptivePortal=
</varname></term>
3330 <para>When true (the default), the captive portal received in the Router Advertisement will be recorded
3331 and made available to client programs and displayed in the
3332 <citerefentry><refentrytitle>networkctl
</refentrytitle><manvolnum>1</manvolnum></citerefentry>
3333 status output per-link.
</para>
3335 <xi:include href=
"version-info.xml" xpointer=
"v254"/>
3340 <term><varname>UsePREF64=
</varname></term>
3342 <para>When true, the IPv6 PREF64 (or NAT64) prefixes received in the Router Advertisement will be
3343 recorded and made available to client programs and displayed in the
3344 <citerefentry><refentrytitle>networkctl
</refentrytitle><manvolnum>1</manvolnum></citerefentry>
3345 status output per-link. See
<ulink url=
"https://tools.ietf.org/html/rfc8781">RFC
8781</ulink>.
3346 Defaults to false.
</para>
3348 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
3353 <term><varname>UseAutonomousPrefix=
</varname></term>
3355 <para>When true (the default), the autonomous prefix received in the Router Advertisement will be used and take
3356 precedence over any statically configured ones.
</para>
3358 <xi:include href=
"version-info.xml" xpointer=
"v242"/>
3363 <term><varname>UseOnLinkPrefix=
</varname></term>
3365 <para>When true (the default), the onlink prefix received in the Router Advertisement will be
3366 used and takes precedence over any statically configured ones.
</para>
3368 <xi:include href=
"version-info.xml" xpointer=
"v242"/>
3373 <term><varname>RouterDenyList=
</varname></term>
3375 <para>A whitespace-separated list of IPv6 router addresses. Each address can optionally
3376 take a prefix length after
<literal>/
</literal>. Any information advertised by the listed
3377 router is ignored.
</para>
3379 <xi:include href=
"version-info.xml" xpointer=
"v248"/>
3384 <term><varname>RouterAllowList=
</varname></term>
3386 <para>A whitespace-separated list of IPv6 router addresses. Each address can optionally
3387 take a prefix length after
<literal>/
</literal>. Only information advertised by the listed
3388 router is accepted. Note that if
<varname>RouterAllowList=
</varname> is configured then
3389 <varname>RouterDenyList=
</varname> is ignored.
</para>
3391 <xi:include href=
"version-info.xml" xpointer=
"v248"/>
3396 <term><varname>PrefixDenyList=
</varname></term>
3398 <para>A whitespace-separated list of IPv6 prefixes. Each prefix can optionally take its
3399 prefix length after
<literal>/
</literal>. IPv6 prefixes supplied via router advertisements
3400 in the list are ignored.
</para>
3402 <xi:include href=
"version-info.xml" xpointer=
"v248"/>
3407 <term><varname>PrefixAllowList=
</varname></term>
3409 <para>A whitespace-separated list of IPv6 prefixes. Each prefix can optionally take its
3410 prefix length after
<literal>/
</literal>. IPv6 prefixes supplied via router advertisements
3411 in the list are allowed. Note that if
<varname>PrefixAllowList=
</varname> is configured
3412 then
<varname>PrefixDenyList=
</varname> is ignored.
</para>
3414 <xi:include href=
"version-info.xml" xpointer=
"v248"/>
3419 <term><varname>RouteDenyList=
</varname></term>
3421 <para>A whitespace-separated list of IPv6 route prefixes. Each prefix can optionally take
3422 its prefix length after
<literal>/
</literal>. IPv6 route prefixes supplied via router
3423 advertisements in the list are ignored.
</para>
3425 <xi:include href=
"version-info.xml" xpointer=
"v248"/>
3430 <term><varname>RouteAllowList=
</varname></term>
3432 <para>A whitespace-separated list of IPv6 route prefixes. Each prefix can optionally take
3433 its prefix length after
<literal>/
</literal>. IPv6 route prefixes supplied via router
3434 advertisements in the list are allowed. Note that if
<varname>RouteAllowList=
</varname> is
3435 configured then
<varname>RouteDenyList=
</varname> is ignored.
</para>
3437 <xi:include href=
"version-info.xml" xpointer=
"v248"/>
3442 <term><varname>DHCPv6Client=
</varname></term>
3444 <para>Takes a boolean, or the special value
<literal>always
</literal>. When true, the
3445 DHCPv6 client will be started in
<literal>solicit
</literal> mode if the RA has the
3446 <literal>managed
</literal> flag or
<literal>information-request
</literal> mode if the RA
3447 lacks the
<literal>managed
</literal> flag but has the
3448 <literal>other configuration
</literal> flag. If set to
<literal>always
</literal>, the
3449 DHCPv6 client will be started in
<literal>solicit
</literal> mode when an RA is received,
3450 even if neither the
<literal>managed
</literal> nor the
3451 <literal>other configuration
</literal> flag is set in the RA. This will be ignored when
3452 <varname>WithoutRA=
</varname> in the [DHCPv6] section is enabled, or
3453 <varname>UplinkInterface=:self
</varname> in the [DHCPPrefixDelegation] section is
3454 specified. Defaults to true.
</para>
3456 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
3461 <term><varname>NetLabel=
</varname></term>
3463 <para>This applies the NetLabel for the addresses received with RA, like
3464 <varname>NetLabel=
</varname> in [Address] section applies it to statically configured
3465 addresses. See
<varname>NetLabel=
</varname> in [Address] section for more details.
</para>
3467 <xi:include href=
"version-info.xml" xpointer=
"v252"/>
3472 <term><varname>NFTSet=
</varname></term>
3474 <para>This applies the NFT set for the network configuration received with RA, like
3475 <varname>NFTSet=
</varname> in [Address] section applies it to static configuration. See
3476 <varname>NFTSet=
</varname> in [Address] section for more details. For
<literal>address
</literal> or
3477 <literal>prefix
</literal> source types, the type of the element used in the NFT filter must be
3478 <literal>ipv6_addr
</literal>.
</para>
3480 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
3487 <title>[DHCPServer] Section Options
</title>
3488 <para>The [DHCPServer] section contains settings for the DHCP server, if enabled via the
3489 <varname>DHCPServer=
</varname> option described above:
</para>
3491 <variablelist class='network-directives'
>
3494 <term><varname>ServerAddress=
</varname></term>
3496 <para>Specifies the server address for the DHCP server. Takes an IPv4 address with prefix length
3497 separated with a slash, e.g.
<literal>192.168.0.1/
24</literal>. Defaults to unset, and one of
3498 static IPv4 addresses configured in [Network] or [Address] section will be automatically selected.
3499 This setting may be useful when the interface on which the DHCP server is running has multiple
3500 static IPv4 addresses.
</para>
3501 <para>This implies
<varname>Address=
</varname> in [Network] or [Address] section with the same
3502 address and prefix length. That is,
3503 <programlisting>[Network]
3505 Address=
192.168.0.1/
24
3506 Address=
192.168.0.2/
24
3508 ServerAddress=
192.168.0.1/
24</programlisting>
3510 <programlisting>[Network]
3513 Address=
192.168.0.1/
24
3515 Address=
192.168.0.2/
24
3517 ServerAddress=
192.168.0.1/
24</programlisting>
3518 are equivalent to the following.
3519 <programlisting>[Network]
3521 Address=
192.168.0.2/
24
3523 ServerAddress=
192.168.0.1/
24</programlisting>
3525 <para>Since version
255, like the
<varname>Address=
</varname> setting in [Network] or [Address]
3526 section, this also supports a null address, e.g.
<literal>0.0.0.0/
24</literal>, and an unused
3527 address will be automatically selected. For more details about the automatic address selection,
3528 see
<varname>Address=
</varname> setting in [Network] section in the above.
</para>
3530 <xi:include href=
"version-info.xml" xpointer=
"v249"/>
3535 <term><varname>PoolOffset=
</varname></term>
3536 <term><varname>PoolSize=
</varname></term>
3538 <listitem><para>Configures the pool of addresses to hand out. The pool
3539 is a contiguous sequence of IP addresses in the subnet configured for
3540 the server address, which does not include the subnet nor the broadcast
3541 address.
<varname>PoolOffset=
</varname> takes the offset of the pool
3542 from the start of subnet, or zero to use the default value.
3543 <varname>PoolSize=
</varname> takes the number of IP addresses in the
3544 pool or zero to use the default value. By default, the pool starts at
3545 the first address after the subnet address and takes up the rest of
3546 the subnet, excluding the broadcast address. If the pool includes
3547 the server address (the default), this is reserved and not handed
3548 out to clients.
</para>
3550 <xi:include href=
"version-info.xml" xpointer=
"v226"/></listitem>
3554 <term><varname>DefaultLeaseTimeSec=
</varname></term>
3555 <term><varname>MaxLeaseTimeSec=
</varname></term>
3557 <listitem><para>Control the default and maximum DHCP lease
3558 time to pass to clients. These settings take time values in seconds or
3559 another common time unit, depending on the suffix. The default
3560 lease time is used for clients that did not ask for a specific
3561 lease time. If a client asks for a lease time longer than the
3562 maximum lease time, it is automatically shortened to the
3563 specified time. The default lease time defaults to
1h, the
3564 maximum lease time to
12h. Shorter lease times are beneficial
3565 if the configuration data in DHCP leases changes frequently
3566 and clients shall learn the new settings with shorter
3567 latencies. Longer lease times reduce the generated DHCP
3568 network traffic.
</para>
3570 <xi:include href=
"version-info.xml" xpointer=
"v226"/></listitem>
3574 <term><varname>UplinkInterface=
</varname></term>
3575 <listitem><para>Specifies the name or the index of the uplink interface, or one of the special
3576 values
<literal>:none
</literal> and
<literal>:auto
</literal>. When emitting DNS, NTP, or SIP
3577 servers is enabled but no servers are specified, the servers configured in the uplink interface
3578 will be emitted. When
<literal>:auto
</literal>, the link which has a default gateway with the
3579 highest priority will be automatically selected. When
<literal>:none
</literal>, no uplink
3580 interface will be selected. Defaults to
<literal>:auto
</literal>.
</para>
3582 <xi:include href=
"version-info.xml" xpointer=
"v249"/></listitem>
3586 <term><varname>EmitDNS=
</varname></term>
3587 <term><varname>DNS=
</varname></term>
3589 <listitem><para><varname>EmitDNS=
</varname> takes a boolean. Configures whether the DHCP leases
3590 handed out to clients shall contain DNS server information. Defaults to
<literal>yes
</literal>.
3591 The DNS servers to pass to clients may be configured with the
<varname>DNS=
</varname> option,
3592 which takes a list of IPv4 addresses, or special value
<literal>_server_address
</literal> which
3593 will be converted to the address used by the DHCP server.
</para>
3595 <para>If the
<varname>EmitDNS=
</varname> option is enabled but no servers configured, the
3596 servers are automatically propagated from an
"uplink" interface that has appropriate servers
3597 set. The
"uplink" interface is determined by the default route of the system with the highest
3598 priority. Note that this information is acquired at the time the lease is handed out, and does
3599 not take uplink interfaces into account that acquire DNS server information at a later point.
3600 If no suitable uplink interface is found the DNS server data from
3601 <filename>/etc/resolv.conf
</filename> is used. Also, note that the leases are not refreshed if
3602 the uplink network configuration changes. To ensure clients regularly acquire the most current
3603 uplink DNS server information, it is thus advisable to shorten the DHCP lease time via
3604 <varname>MaxLeaseTimeSec=
</varname> described above.
</para>
3606 <para>This setting can be specified multiple times. If an empty string is specified, then all
3607 DNS servers specified earlier are cleared.
</para>
3609 <xi:include href=
"version-info.xml" xpointer=
"v226"/></listitem>
3613 <term><varname>EmitNTP=
</varname></term>
3614 <term><varname>NTP=
</varname></term>
3615 <term><varname>EmitSIP=
</varname></term>
3616 <term><varname>SIP=
</varname></term>
3617 <term><varname>EmitPOP3=
</varname></term>
3618 <term><varname>POP3=
</varname></term>
3619 <term><varname>EmitSMTP=
</varname></term>
3620 <term><varname>SMTP=
</varname></term>
3621 <term><varname>EmitLPR=
</varname></term>
3622 <term><varname>LPR=
</varname></term>
3624 <listitem><para>Similar to the
<varname>EmitDNS=
</varname> and
<varname>DNS=
</varname> settings
3625 described above, these settings configure whether and what server information for the indicate
3626 protocol shall be emitted as part of the DHCP lease. The same syntax, propagation semantics and
3627 defaults apply as for
<varname>EmitDNS=
</varname> and
<varname>DNS=
</varname>.
</para>
3629 <xi:include href=
"version-info.xml" xpointer=
"v226"/></listitem>
3633 <term><varname>EmitRouter=
</varname></term>
3634 <term><varname>Router=
</varname></term>
3636 <listitem><para>The
<varname>EmitRouter=
</varname> setting takes a boolean value, and configures
3637 whether the DHCP lease should contain the router option. The
<varname>Router=
</varname> setting
3638 takes an IPv4 address, and configures the router address to be emitted. When the
3639 <varname>Router=
</varname> setting is not specified, then the server address will be used for
3640 the router option. When the
<varname>EmitRouter=
</varname> setting is disabled, the
3641 <varname>Router=
</varname> setting will be ignored. The
<varname>EmitRouter=
</varname> setting
3642 defaults to true, and the
<varname>Router=
</varname> setting defaults to unset.
3645 <xi:include href=
"version-info.xml" xpointer=
"v230"/></listitem>
3649 <term><varname>EmitTimezone=
</varname></term>
3650 <term><varname>Timezone=
</varname></term>
3652 <listitem><para>Takes a boolean. Configures whether the DHCP leases handed out
3653 to clients shall contain timezone information. Defaults to
<literal>yes
</literal>. The
3654 <varname>Timezone=
</varname> setting takes a timezone string
3655 (such as
<literal>Europe/Berlin
</literal> or
3656 <literal>UTC
</literal>) to pass to clients. If no explicit
3657 timezone is set, the system timezone of the local host is
3658 propagated, as determined by the
3659 <filename>/etc/localtime
</filename> symlink.
</para>
3661 <xi:include href=
"version-info.xml" xpointer=
"v226"/></listitem>
3665 <term><varname>BootServerAddress=
</varname></term>
3668 <para>Takes an IPv4 address of the boot server used by e.g. PXE boot systems. When specified, this
3669 address is sent in the
<option>siaddr
</option> field of the DHCP message header. See
<ulink
3670 url=
"https://www.rfc-editor.org/rfc/rfc2131.html">RFC
2131</ulink> for more details. Defaults to
3673 <xi:include href=
"version-info.xml" xpointer=
"v251"/>
3678 <term><varname>BootServerName=
</varname></term>
3681 <para>Takes a name of the boot server used by e.g. PXE boot systems. When specified, this name is
3682 sent in the DHCP option
66 (
"TFTP server name"). See
<ulink
3683 url=
"https://www.rfc-editor.org/rfc/rfc2132.html">RFC
2132</ulink> for more details. Defaults to
3686 <para>Note that typically setting one of
<varname>BootServerName=
</varname> or
3687 <varname>BootServerAddress=
</varname> is sufficient, but both can be set too, if desired.
</para>
3689 <xi:include href=
"version-info.xml" xpointer=
"v251"/>
3694 <term><varname>BootFilename=
</varname></term>
3697 <para>Takes a path or URL to a file loaded by e.g. a PXE boot loader. When specified, this path is
3698 sent in the DHCP option
67 (
"Bootfile name"). See
<ulink
3699 url=
"https://www.rfc-editor.org/rfc/rfc2132.html">RFC
2132</ulink> for more details. Defaults to
3702 <xi:include href=
"version-info.xml" xpointer=
"v251"/>
3707 <term><varname>IPv6OnlyPreferredSec=
</varname></term>
3710 <para>Takes a timespan. Controls the
3711 <ulink url=
"https://tools.ietf.org/html/rfc8925">RFC
8925</ulink> IPv6-Only Preferred option.
3712 Specifies the DHCPv4 option to indicate that a host supports an IPv6-only mode and is willing to
3713 forgo obtaining an IPv4 address if the network provides IPv6 connectivity. Defaults to unset, and
3714 not send the option. The minimum allowed value is
300 seconds.
</para>
3716 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
3721 <term><varname>SendOption=
</varname></term>
3723 <para>Send a raw option with value via DHCPv4 server. Takes a DHCP option number, data type
3724 and data (
<literal><replaceable>option
</replaceable>:
<replaceable>type
</replaceable>:
<replaceable>value
</replaceable></literal>).
3725 The option number is an integer in the range
1…
254. The type takes one of
<literal>uint8
</literal>,
3726 <literal>uint16
</literal>,
<literal>uint32
</literal>,
<literal>ipv4address
</literal>,
<literal>ipv6address
</literal>, or
3727 <literal>string
</literal>. Special characters in the data string may be escaped using
3728 <ulink url=
"https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
3729 escapes
</ulink>. This setting can be specified multiple times. If an empty string is specified,
3730 then all options specified earlier are cleared. Defaults to unset.
</para>
3732 <xi:include href=
"version-info.xml" xpointer=
"v244"/>
3737 <term><varname>SendVendorOption=
</varname></term>
3739 <para>Send a vendor option with value via DHCPv4 server. Takes a DHCP option number, data type
3740 and data (
<literal><replaceable>option
</replaceable>:
<replaceable>type
</replaceable>:
<replaceable>value
</replaceable></literal>).
3741 The option number is an integer in the range
1…
254. The type takes one of
<literal>uint8
</literal>,
3742 <literal>uint16
</literal>,
<literal>uint32
</literal>,
<literal>ipv4address
</literal>, or
3743 <literal>string
</literal>. Special characters in the data string may be escaped using
3744 <ulink url=
"https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
3745 escapes
</ulink>. This setting can be specified multiple times. If an empty string is specified,
3746 then all options specified earlier are cleared. Defaults to unset.
</para>
3748 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
3752 <term><varname>BindToInterface=
</varname></term>
3754 <para>Takes a boolean value. When
<literal>yes
</literal>, DHCP server socket will be bound
3755 to its network interface and all socket communication will be restricted to this interface.
3756 Defaults to
<literal>yes
</literal>, except if
<varname>RelayTarget=
</varname> is used (see below),
3757 in which case it defaults to
<literal>no
</literal>.
</para>
3759 <xi:include href=
"version-info.xml" xpointer=
"v249"/>
3763 <term><varname>RelayTarget=
</varname></term>
3765 <para>Takes an IPv4 address, which must be in the format described in
3766 <citerefentry project='man-pages'
><refentrytitle>inet_pton
</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
3767 Turns this DHCP server into a DHCP relay agent. See
<ulink url=
"https://tools.ietf.org/html/rfc1542">RFC
1542</ulink>.
3768 The address is the address of DHCP server or another relay agent to forward DHCP messages to and from.
</para>
3770 <xi:include href=
"version-info.xml" xpointer=
"v249"/>
3774 <term><varname>RelayAgentCircuitId=
</varname></term>
3776 <para>Specifies value for Agent Circuit ID suboption of Relay Agent Information option.
3777 Takes a string, which must be in the format
<literal>string:
<replaceable>value
</replaceable></literal>,
3778 where
<literal><replaceable>value
</replaceable></literal> should be replaced with the value of the suboption.
3779 Defaults to unset (means no Agent Circuit ID suboption is generated).
3780 Ignored if
<varname>RelayTarget=
</varname> is not specified.
</para>
3782 <xi:include href=
"version-info.xml" xpointer=
"v249"/>
3786 <term><varname>RelayAgentRemoteId=
</varname></term>
3788 <para>Specifies value for Agent Remote ID suboption of Relay Agent Information option.
3789 Takes a string, which must be in the format
<literal>string:
<replaceable>value
</replaceable></literal>,
3790 where
<literal><replaceable>value
</replaceable></literal> should be replaced with the value of the suboption.
3791 Defaults to unset (means no Agent Remote ID suboption is generated).
3792 Ignored if
<varname>RelayTarget=
</varname> is not specified.
</para>
3794 <xi:include href=
"version-info.xml" xpointer=
"v249"/>
3799 <term><varname>RapidCommit=
</varname></term>
3801 <para>Takes a boolean. When true, the server supports
3802 <ulink url=
"https://datatracker.ietf.org/doc/html/rfc4039">RFC
4039</ulink>. When a client sends
3803 a DHCPDISCOVER message with the Rapid Commit option to the server, then the server will reply with
3804 a DHCPACK message to the client, instead of DHCPOFFER. Defaults to true.
</para>
3806 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
3814 <title>[DHCPServerStaticLease] Section Options
</title>
3815 <para>The
<literal>[DHCPServerStaticLease]
</literal> section configures a static DHCP lease to assign a
3816 fixed IPv4 address to a specific device based on its MAC address. This section can be specified multiple
3819 <variablelist class='network-directives'
>
3821 <term><varname>MACAddress=
</varname></term>
3823 <listitem><para>The hardware address of a device to match. This key is mandatory.
</para>
3825 <xi:include href=
"version-info.xml" xpointer=
"v249"/></listitem>
3829 <term><varname>Address=
</varname></term>
3831 <listitem><para>The IPv4 address that should be assigned to the device that was matched with
3832 <varname>MACAddress=
</varname>. This key is mandatory.
</para>
3834 <xi:include href=
"version-info.xml" xpointer=
"v249"/></listitem>
3840 <title>[IPv6SendRA] Section Options
</title>
3841 <para>The [IPv6SendRA] section contains settings for sending IPv6 Router Advertisements and whether
3842 to act as a router, if enabled via the
<varname>IPv6SendRA=
</varname> option described above. IPv6
3843 network prefixes or routes are defined with one or more [IPv6Prefix] or [IPv6RoutePrefix] sections.
3846 <variablelist class='network-directives'
>
3849 <term><varname>Managed=
</varname></term>
3850 <term><varname>OtherInformation=
</varname></term>
3852 <listitem><para>Takes a boolean. Controls whether a DHCPv6 server is used to acquire IPv6
3853 addresses on the network link when
<varname>Managed=
</varname>
3854 is set to
<literal>true
</literal> or if only additional network
3855 information can be obtained via DHCPv6 for the network link when
3856 <varname>OtherInformation=
</varname> is set to
3857 <literal>true
</literal>. Both settings default to
3858 <literal>false
</literal>, which means that a DHCPv6 server is not being
3861 <xi:include href=
"version-info.xml" xpointer=
"v235"/></listitem>
3865 <term><varname>RouterLifetimeSec=
</varname></term>
3867 <listitem><para>Takes a timespan. Configures the IPv6 router lifetime in seconds. The value must be
0
3868 seconds, or between
4 seconds and
9000 seconds. When set to
0, the host is not acting as a router.
3869 Defaults to
1800 seconds (
30 minutes).
</para>
3871 <xi:include href=
"version-info.xml" xpointer=
"v235"/>
3876 <term><varname>RetransmitSec=
</varname></term>
3878 <listitem><para>Takes a timespan. Configures the retransmit time, used by clients to retransmit Neighbor
3879 Solicitation messages on address resolution and the Neighbor Unreachability Detection algorithm.
3880 An integer the default unit of seconds, in the range
0…
4294967295 msec. Defaults to
0.
</para>
3882 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
3887 <term><varname>RouterPreference=
</varname></term>
3889 <listitem><para>Configures IPv6 router preference if
3890 <varname>RouterLifetimeSec=
</varname> is non-zero. Valid values are
3891 <literal>high
</literal>,
<literal>medium
</literal> and
3892 <literal>low
</literal>, with
<literal>normal
</literal> and
3893 <literal>default
</literal> added as synonyms for
3894 <literal>medium
</literal> just to make configuration easier. See
3895 <ulink url=
"https://tools.ietf.org/html/rfc4191">RFC
4191</ulink>
3896 for details. Defaults to
<literal>medium
</literal>.
</para>
3898 <xi:include href=
"version-info.xml" xpointer=
"v235"/></listitem>
3902 <term><varname>HopLimit=
</varname></term>
3904 <para>Configures hop limit. Takes an integer in the range
0…
255. See also
3905 <varname>IPv6HopLimit=
</varname>.
</para>
3907 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
3912 <term><varname>UplinkInterface=
</varname></term>
3913 <listitem><para>Specifies the name or the index of the uplink interface, or one of the special
3914 values
<literal>:none
</literal> and
<literal>:auto
</literal>. When emitting DNS servers or
3915 search domains is enabled but no servers are specified, the servers configured in the uplink
3916 interface will be emitted. When
<literal>:auto
</literal>, the value specified to the same
3917 setting in the [DHCPPrefixDelegation] section will be used if
3918 <varname>DHCPPrefixDelegation=
</varname> is enabled, otherwise the link which has a default
3919 gateway with the highest priority will be automatically selected. When
<literal>:none
</literal>,
3920 no uplink interface will be selected. Defaults to
<literal>:auto
</literal>.
</para>
3922 <xi:include href=
"version-info.xml" xpointer=
"v250"/></listitem>
3926 <term><varname>EmitDNS=
</varname></term>
3927 <term><varname>DNS=
</varname></term>
3929 <listitem><para><varname>DNS=
</varname> specifies a list of recursive DNS server IPv6 addresses
3930 that are distributed via Router Advertisement messages when
<varname>EmitDNS=
</varname> is true.
3931 <varname>DNS=
</varname> also takes special value
<literal>_link_local
</literal>; in that case
3932 the IPv6 link-local address is distributed. If
<varname>DNS=
</varname> is empty, DNS servers are
3933 read from the [Network] section. If the [Network] section does not contain any DNS servers
3934 either, DNS servers from the uplink interface specified in
<varname>UplinkInterface=
</varname>
3935 will be used. When
<varname>EmitDNS=
</varname> is false, no DNS server information is sent in
3936 Router Advertisement messages.
<varname>EmitDNS=
</varname> defaults to true.
</para>
3938 <xi:include href=
"version-info.xml" xpointer=
"v235"/></listitem>
3942 <term><varname>EmitDomains=
</varname></term>
3943 <term><varname>Domains=
</varname></term>
3945 <listitem><para>A list of DNS search domains distributed via Router Advertisement messages when
3946 <varname>EmitDomains=
</varname> is true. If
<varname>Domains=
</varname> is empty, DNS search
3947 domains are read from the [Network] section. If the [Network] section does not contain any DNS
3948 search domains either, DNS search domains from the uplink interface specified in
3949 <varname>UplinkInterface=
</varname> will be used. When
<varname>EmitDomains=
</varname> is false,
3950 no DNS search domain information is sent in Router Advertisement messages.
3951 <varname>EmitDomains=
</varname> defaults to true.
</para>
3953 <xi:include href=
"version-info.xml" xpointer=
"v235"/></listitem>
3957 <term><varname>DNSLifetimeSec=
</varname></term>
3959 <listitem><para>Lifetime in seconds for the DNS server addresses listed in
3960 <varname>DNS=
</varname> and search domains listed in
<varname>Domains=
</varname>. Defaults to
3961 3600 seconds (one hour).
</para>
3963 <xi:include href=
"version-info.xml" xpointer=
"v235"/></listitem>
3967 <term><varname>HomeAgent=
</varname></term>
3969 <listitem><para>Takes a boolean. Specifies that IPv6 router advertisements which indicates to hosts that
3970 the router acts as a Home Agent and includes a Home Agent Option. Defaults to false. See
3971 <ulink url=
"https://tools.ietf.org/html/rfc6275">RFC
6275</ulink> for further details.
</para>
3973 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
3978 <term><varname>HomeAgentLifetimeSec=
</varname></term>
3980 <listitem><para>Takes a timespan. Specifies the lifetime of the Home Agent. An integer the default unit of seconds,
3981 in the range
1…
65535. Defaults to the value set to
<varname>RouterLifetimeSec=
</varname>.
</para>
3983 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
3988 <term><varname>HomeAgentPreference=
</varname></term>
3990 <listitem><para>Configures IPv6 Home Agent preference. Takes an integer in the range
0…
65535.
3991 Defaults to
0.
</para>
3993 <xi:include href=
"version-info.xml" xpointer=
"v255"/>
4001 <title>[IPv6Prefix] Section Options
</title>
4002 <para>One or more [IPv6Prefix] sections contain the IPv6 prefixes that are announced via Router
4003 Advertisements. See
<ulink url=
"https://tools.ietf.org/html/rfc4861">RFC
4861</ulink> for further
4006 <variablelist class='network-directives'
>
4009 <term><varname>AddressAutoconfiguration=
</varname></term>
4010 <term><varname>OnLink=
</varname></term>
4012 <listitem><para>Takes a boolean to specify whether IPv6 addresses can be
4013 autoconfigured with this prefix and whether the prefix can be used for
4014 onlink determination. Both settings default to
<literal>true
</literal>
4015 in order to ease configuration.
4018 <xi:include href=
"version-info.xml" xpointer=
"v235"/></listitem>
4022 <term><varname>Prefix=
</varname></term>
4024 <listitem><para>The IPv6 prefix that is to be distributed to hosts. Similarly to configuring static
4025 IPv6 addresses, the setting is configured as an IPv6 prefix and its prefix length, separated by a
4026 <literal>/
</literal> character. Use multiple [IPv6Prefix] sections to configure multiple IPv6
4027 prefixes since prefix lifetimes, address autoconfiguration and onlink status may differ from one
4028 prefix to another.
</para>
4030 <xi:include href=
"version-info.xml" xpointer=
"v235"/></listitem>
4034 <term><varname>PreferredLifetimeSec=
</varname></term>
4035 <term><varname>ValidLifetimeSec=
</varname></term>
4037 <listitem><para>Preferred and valid lifetimes for the prefix measured in seconds.
4038 <varname>PreferredLifetimeSec=
</varname> defaults to
1800 seconds (
30 minutes) and
4039 <varname>ValidLifetimeSec=
</varname> defaults to
3600 seconds (one hour).
</para>
4041 <xi:include href=
"version-info.xml" xpointer=
"v235"/></listitem>
4045 <term><varname>Assign=
</varname></term>
4046 <listitem><para>Takes a boolean. When true, adds an address from the prefix. Default to false.
4049 <xi:include href=
"version-info.xml" xpointer=
"v246"/></listitem>
4053 <term><varname>Token=
</varname></term>
4055 <para>Specifies an optional address generation mode for assigning an address in each
4056 prefix. This accepts the same syntax as
<varname>Token=
</varname> in the [IPv6AcceptRA]
4057 section. If
<varname>Assign=
</varname> is set to false, then this setting will be ignored.
4058 Defaults to unset, which means the EUI-
64 algorithm will be used.
</para>
4060 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
4065 <term><varname>RouteMetric=
</varname></term>
4067 <para>The metric of the prefix route. Takes an unsigned integer in the range
0…
4294967295.
4068 When unset or set to
0, the kernel's default value is used. This setting is ignored when
4069 <varname>Assign=
</varname> is false.
</para>
4071 <xi:include href=
"version-info.xml" xpointer=
"v249"/>
4078 <title>[IPv6RoutePrefix] Section Options
</title>
4079 <para>One or more [IPv6RoutePrefix] sections contain the IPv6
4080 prefix routes that are announced via Router Advertisements. See
4081 <ulink url=
"https://tools.ietf.org/html/rfc4191">RFC
4191</ulink>
4082 for further details.
</para>
4084 <variablelist class='network-directives'
>
4087 <term><varname>Route=
</varname></term>
4089 <listitem><para>The IPv6 route that is to be distributed to hosts. Similarly to configuring static
4090 IPv6 routes, the setting is configured as an IPv6 prefix routes and its prefix route length,
4091 separated by a
<literal>/
</literal> character. Use multiple [IPv6RoutePrefix] sections to configure
4092 multiple IPv6 prefix routes.
</para>
4094 <xi:include href=
"version-info.xml" xpointer=
"v244"/></listitem>
4098 <term><varname>LifetimeSec=
</varname></term>
4100 <listitem><para>Lifetime for the route prefix measured in seconds.
4101 <varname>LifetimeSec=
</varname> defaults to
3600 seconds (one hour).
</para>
4103 <xi:include href=
"version-info.xml" xpointer=
"v244"/></listitem>
4110 <title>[IPv6PREF64Prefix] Section Options
</title>
4111 <para>One or more [IPv6PREF64Prefix] sections contain the IPv6 PREF64 (or NAT64) prefixes that are announced via Router
4112 Advertisements. See
<ulink url=
"https://tools.ietf.org/html/rfc8781">RFC
8781</ulink> for further
4115 <variablelist class='network-directives'
>
4118 <term><varname>Prefix=
</varname></term>
4120 <listitem><para>The IPv6 PREF64 (or NAT64) prefix that is to be distributed to hosts. The setting holds
4121 an IPv6 prefix that should be set up for NAT64 translation (PLAT) to allow
464XLAT on the network segment.
4122 Use multiple [IPv6PREF64Prefix] sections to configure multiple IPv6 prefixes since prefix lifetime may differ
4123 from one prefix to another. The prefix is an address with a prefix length, separated by a slash
4124 <literal>/
</literal> character. Valid NAT64 prefix length are
96,
64,
56,
48,
40, and
32 bits.
</para>
4126 <xi:include href=
"version-info.xml" xpointer=
"v255"/></listitem></varlistentry>
4129 <term><varname>LifetimeSec=
</varname></term>
4130 <listitem><para>Lifetime for the prefix measured in seconds. Should be greater than or equal to
<varname>RouterLifetimeSec=
</varname>.
4131 <varname>LifetimeSec=
</varname> defaults to
1800 seconds.
</para>
4133 <xi:include href=
"version-info.xml" xpointer=
"v255"/></listitem>
4139 <title>[Bridge] Section Options
</title>
4140 <para>The [Bridge] section accepts the following keys:
</para>
4142 <variablelist class='network-directives'
>
4144 <term><varname>UnicastFlood=
</varname></term>
4146 <para>Takes a boolean. Controls whether the bridge should flood
4147 traffic for which an FDB entry is missing and the destination
4148 is unknown through this port. When unset, the kernel's default will be used.
4151 <xi:include href=
"version-info.xml" xpointer=
"v223"/>
4155 <term><varname>MulticastFlood=
</varname></term>
4157 <para>Takes a boolean. Controls whether the bridge should flood
4158 traffic for which an MDB entry is missing and the destination
4159 is unknown through this port. When unset, the kernel's default will be used.
4162 <xi:include href=
"version-info.xml" xpointer=
"v242"/>
4166 <term><varname>MulticastToUnicast=
</varname></term>
4168 <para>Takes a boolean. Multicast to unicast works on top of the multicast snooping feature of
4169 the bridge. Which means unicast copies are only delivered to hosts which are interested in it.
4170 When unset, the kernel's default will be used.
4173 <xi:include href=
"version-info.xml" xpointer=
"v240"/>
4177 <term><varname>NeighborSuppression=
</varname></term>
4179 <para>Takes a boolean. Configures whether ARP and ND neighbor suppression is enabled for
4180 this port. When unset, the kernel's default will be used.
4183 <xi:include href=
"version-info.xml" xpointer=
"v242"/>
4187 <term><varname>Learning=
</varname></term>
4189 <para>Takes a boolean. Configures whether MAC address learning is enabled for
4190 this port. When unset, the kernel's default will be used.
4193 <xi:include href=
"version-info.xml" xpointer=
"v242"/>
4197 <term><varname>HairPin=
</varname></term>
4199 <para>Takes a boolean. Configures whether traffic may be sent back out of the port on which it
4200 was received. When this flag is false, then the bridge will not forward traffic back out of the
4201 receiving port. When unset, the kernel's default will be used.
</para>
4203 <xi:include href=
"version-info.xml" xpointer=
"v223"/>
4207 <term><varname>Isolated=
</varname></term>
4209 <para>Takes a boolean. Configures whether this port is isolated or not. Within a bridge,
4210 isolated ports can only communicate with non-isolated ports. When set to true, this port can only
4211 communicate with other ports whose Isolated setting is false. When set to false, this port
4212 can communicate with any other ports. When unset, the kernel's default will be used.
</para>
4214 <xi:include href=
"version-info.xml" xpointer=
"v251"/>
4218 <term><varname>UseBPDU=
</varname></term>
4220 <para>Takes a boolean. Configures whether STP Bridge Protocol Data Units will be
4221 processed by the bridge port. When unset, the kernel's default will be used.
</para>
4223 <xi:include href=
"version-info.xml" xpointer=
"v223"/>
4227 <term><varname>FastLeave=
</varname></term>
4229 <para>Takes a boolean. This flag allows the bridge to immediately stop multicast
4230 traffic on a port that receives an IGMP Leave message. It is only used with
4231 IGMP snooping if enabled on the bridge. When unset, the kernel's default will be used.
</para>
4233 <xi:include href=
"version-info.xml" xpointer=
"v223"/>
4237 <term><varname>AllowPortToBeRoot=
</varname></term>
4239 <para>Takes a boolean. Configures whether a given port is allowed to
4240 become a root port. Only used when STP is enabled on the bridge.
4241 When unset, the kernel's default will be used.
</para>
4243 <xi:include href=
"version-info.xml" xpointer=
"v223"/>
4247 <term><varname>ProxyARP=
</varname></term>
4249 <para>Takes a boolean. Configures whether proxy ARP to be enabled on this port.
4250 When unset, the kernel's default will be used.
</para>
4252 <xi:include href=
"version-info.xml" xpointer=
"v243"/>
4256 <term><varname>ProxyARPWiFi=
</varname></term>
4258 <para>Takes a boolean. Configures whether proxy ARP to be enabled on this port
4259 which meets extended requirements by IEEE
802.11 and Hotspot
2.0 specifications.
4260 When unset, the kernel's default will be used.
</para>
4262 <xi:include href=
"version-info.xml" xpointer=
"v243"/>
4266 <term><varname>MulticastRouter=
</varname></term>
4268 <para>Configures this port for having multicast routers attached. A port with a multicast
4269 router will receive all multicast traffic. Takes one of
<literal>no
</literal>
4270 to disable multicast routers on this port,
<literal>query
</literal> to let the system detect
4271 the presence of routers,
<literal>permanent
</literal> to permanently enable multicast traffic
4272 forwarding on this port, or
<literal>temporary
</literal> to enable multicast routers temporarily
4273 on this port, not depending on incoming queries. When unset, the kernel's default will be used.
</para>
4275 <xi:include href=
"version-info.xml" xpointer=
"v243"/>
4279 <term><varname>Cost=
</varname></term>
4281 <para>Sets the
"cost" of sending packets of this interface.
4282 Each port in a bridge may have a different speed and the cost
4283 is used to decide which link to use. Faster interfaces
4284 should have lower costs. It is an integer value between
1 and
4287 <xi:include href=
"version-info.xml" xpointer=
"v218"/>
4291 <term><varname>Priority=
</varname></term>
4293 <para>Sets the
"priority" of sending packets on this interface.
4294 Each port in a bridge may have a different priority which is used
4295 to decide which link to use. Lower value means higher priority.
4296 It is an integer value between
0 to
63. Networkd does not set any
4297 default, meaning the kernel default value of
32 is used.
</para>
4299 <xi:include href=
"version-info.xml" xpointer=
"v234"/>
4306 <title>[BridgeFDB] Section Options
</title>
4308 <para>The [BridgeFDB] section manages the forwarding database table of a port and accepts the following
4309 keys. Specify several [BridgeFDB] sections to configure several static MAC table entries.
</para>
4311 <variablelist class='network-directives'
>
4313 <term><varname>MACAddress=
</varname></term>
4315 <para>As in the [Network] section. This key is mandatory.
</para>
4317 <xi:include href=
"version-info.xml" xpointer=
"v219"/>
4321 <term><varname>Destination=
</varname></term>
4323 <para>Takes an IP address of the destination VXLAN tunnel endpoint.
</para>
4325 <xi:include href=
"version-info.xml" xpointer=
"v243"/>
4329 <term><varname>VLANId=
</varname></term>
4331 <para>The VLAN ID for the new static MAC table entry. If
4332 omitted, no VLAN ID information is appended to the new static MAC
4335 <xi:include href=
"version-info.xml" xpointer=
"v219"/>
4339 <term><varname>VNI=
</varname></term>
4341 <para>The VXLAN Network Identifier (or VXLAN Segment ID) to use to connect to
4342 the remote VXLAN tunnel endpoint. Takes a number in the range
1…
16777215.
4343 Defaults to unset.
</para>
4345 <xi:include href=
"version-info.xml" xpointer=
"v243"/>
4349 <term><varname>AssociatedWith=
</varname></term>
4351 <para>Specifies where the address is associated with. Takes one of
<literal>use
</literal>,
4352 <literal>self
</literal>,
<literal>master
</literal> or
<literal>router
</literal>.
4353 <literal>use
</literal> means the address is in use. User space can use this option to
4354 indicate to the kernel that the fdb entry is in use.
<literal>self
</literal> means
4355 the address is associated with the port drivers fdb. Usually hardware.
<literal>master
</literal>
4356 means the address is associated with master devices fdb.
<literal>router
</literal> means
4357 the destination address is associated with a router. Note that it's valid if the referenced
4358 device is a VXLAN type device and has route shortcircuit enabled. Defaults to
<literal>self
</literal>.
</para>
4360 <xi:include href=
"version-info.xml" xpointer=
"v243"/>
4364 <term><varname>OutgoingInterface=
</varname></term>
4366 <para>Specifies the name or index of the outgoing interface for the VXLAN device driver to
4367 reach the remote VXLAN tunnel endpoint. Defaults to unset.
</para>
4369 <xi:include href=
"version-info.xml" xpointer=
"v249"/>
4376 <title>[BridgeMDB] Section Options
</title>
4377 <para>The [BridgeMDB] section manages the multicast membership entries forwarding database table of a port and accepts the following
4378 keys. Specify several [BridgeMDB] sections to configure several permanent multicast membership entries.
</para>
4380 <variablelist class='network-directives'
>
4382 <term><varname>MulticastGroupAddress=
</varname></term>
4384 <para>Specifies the IPv4 or IPv6 multicast group address to add. This setting is mandatory.
</para>
4386 <xi:include href=
"version-info.xml" xpointer=
"v247"/>
4390 <term><varname>VLANId=
</varname></term>
4392 <para>The VLAN ID for the new entry. Valid ranges are
0 (no VLAN) to
4094. Optional, defaults to
0.
</para>
4394 <xi:include href=
"version-info.xml" xpointer=
"v247"/>
4401 <title>[LLDP] Section Options
</title>
4402 <para>The [LLDP] section manages the Link Layer Discovery Protocol (LLDP) and accepts the following
4405 <variablelist class='network-directives'
>
4407 <term><varname>MUDURL=
</varname></term>
4409 <para>When configured, the specified Manufacturer Usage Descriptions (MUD) URL will be sent in
4410 LLDP packets. The syntax and semantics are the same as for
<varname>MUDURL=
</varname> in the
4411 [DHCPv4] section described above.
</para>
4413 <para>The MUD URLs received via LLDP packets are saved and can be read using the
4414 <function>sd_lldp_neighbor_get_mud_url()
</function> function.
</para>
4416 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
4423 <title>[CAN] Section Options
</title>
4424 <para>The [CAN] section manages the Controller Area Network (CAN bus) and accepts the
4425 following keys:
</para>
4426 <variablelist class='network-directives'
>
4428 <term><varname>BitRate=
</varname></term>
4430 <para>The bitrate of CAN device in bits per second. The usual SI prefixes (K, M) with the base of
1000 can
4431 be used here. Takes a number in the range
1…
4294967295.
</para>
4433 <xi:include href=
"version-info.xml" xpointer=
"v239"/>
4437 <term><varname>SamplePoint=
</varname></term>
4439 <para>Optional sample point in percent with one decimal (e.g.
<literal>75%
</literal>,
4440 <literal>87.5%
</literal>) or permille (e.g.
<literal>875‰
</literal>). This will be ignored when
4441 <varname>BitRate=
</varname> is unspecified.
</para>
4443 <xi:include href=
"version-info.xml" xpointer=
"v239"/>
4447 <term><varname>TimeQuantaNSec=
</varname></term>
4448 <term><varname>PropagationSegment=
</varname></term>
4449 <term><varname>PhaseBufferSegment1=
</varname></term>
4450 <term><varname>PhaseBufferSegment2=
</varname></term>
4451 <term><varname>SyncJumpWidth=
</varname></term>
4453 <para>Specifies the time quanta, propagation segment, phase buffer segment
1 and
2, and the
4454 synchronization jump width, which allow one to define the CAN bit-timing in a hardware
4455 independent format as proposed by the Bosch CAN
2.0 Specification.
4456 <varname>TimeQuantaNSec=
</varname> takes a timespan in nanoseconds.
4457 <varname>PropagationSegment=
</varname>,
<varname>PhaseBufferSegment1=
</varname>,
4458 <varname>PhaseBufferSegment2=
</varname>, and
<varname>SyncJumpWidth=
</varname> take number
4459 of time quantum specified in
<varname>TimeQuantaNSec=
</varname> and must be an unsigned
4460 integer in the range
0…
4294967295. These settings except for
4461 <varname>SyncJumpWidth=
</varname> will be ignored when
<varname>BitRate=
</varname> is
4464 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
4468 <term><varname>DataBitRate=
</varname></term>
4469 <term><varname>DataSamplePoint=
</varname></term>
4471 <para>The bitrate and sample point for the data phase, if CAN-FD is used. These settings are
4472 analogous to the
<varname>BitRate=
</varname> and
<varname>SamplePoint=
</varname> keys.
</para>
4474 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
4478 <term><varname>DataTimeQuantaNSec=
</varname></term>
4479 <term><varname>DataPropagationSegment=
</varname></term>
4480 <term><varname>DataPhaseBufferSegment1=
</varname></term>
4481 <term><varname>DataPhaseBufferSegment2=
</varname></term>
4482 <term><varname>DataSyncJumpWidth=
</varname></term>
4484 <para>Specifies the time quanta, propagation segment, phase buffer segment
1 and
2, and the
4485 synchronization jump width for the data phase, if CAN-FD is used. These settings are
4486 analogous to the
<varname>TimeQuantaNSec=
</varname> or related settings.
</para>
4488 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
4492 <term><varname>FDMode=
</varname></term>
4494 <para>Takes a boolean. When
<literal>yes
</literal>, CAN-FD mode is enabled for the interface.
4495 Note, that a bitrate and optional sample point should also be set for the CAN-FD data phase using
4496 the
<varname>DataBitRate=
</varname> and
<varname>DataSamplePoint=
</varname> keys, or
4497 <varname>DataTimeQuanta=
</varname> and related settings.
</para>
4499 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
4503 <term><varname>FDNonISO=
</varname></term>
4505 <para>Takes a boolean. When
<literal>yes
</literal>, non-ISO CAN-FD mode is enabled for the
4506 interface. When unset, the kernel's default will be used.
</para>
4508 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
4512 <term><varname>RestartSec=
</varname></term>
4514 <para>Automatic restart delay time. If set to a non-zero value, a restart of the CAN controller will be
4515 triggered automatically in case of a bus-off condition after the specified delay time. Subsecond delays can
4516 be specified using decimals (e.g.
<literal>0.1s
</literal>) or a
<literal>ms
</literal> or
4517 <literal>us
</literal> postfix. Using
<literal>infinity
</literal> or
<literal>0</literal> will turn the
4518 automatic restart off. By default automatic restart is disabled.
</para>
4520 <xi:include href=
"version-info.xml" xpointer=
"v239"/>
4524 <term><varname>Termination=
</varname></term>
4526 <para>Takes a boolean or a termination resistor value in ohm in the range
0…
65535. When
4527 <literal>yes
</literal>, the termination resistor is set to
120 ohm. When
4528 <literal>no
</literal> or
<literal>0</literal> is set, the termination resistor is disabled.
4529 When unset, the kernel's default will be used.
</para>
4531 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
4535 <term><varname>TripleSampling=
</varname></term>
4537 <para>Takes a boolean. When
<literal>yes
</literal>, three samples (instead of one) are used to determine
4538 the value of a received bit by majority rule. When unset, the kernel's default will be used.
</para>
4540 <xi:include href=
"version-info.xml" xpointer=
"v242"/>
4544 <term><varname>BusErrorReporting=
</varname></term>
4546 <para>Takes a boolean. When
<literal>yes
</literal>, reporting of CAN bus errors is activated
4547 (those include single bit, frame format, and bit stuffing errors, unable to send dominant bit,
4548 unable to send recessive bit, bus overload, active error announcement, error occurred on
4549 transmission). When unset, the kernel's default will be used. Note: in case of a CAN bus with a
4550 single CAN device, sending a CAN frame may result in a huge number of CAN bus errors.
</para>
4552 <xi:include href=
"version-info.xml" xpointer=
"v248"/>
4556 <term><varname>ListenOnly=
</varname></term>
4558 <para>Takes a boolean. When
<literal>yes
</literal>, listen-only mode is enabled. When the
4559 interface is in listen-only mode, the interface neither transmit CAN frames nor send ACK
4560 bit. Listen-only mode is important to debug CAN networks without interfering with the
4561 communication or acknowledge the CAN frame. When unset, the kernel's default will be used.
4564 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
4568 <term><varname>Loopback=
</varname></term>
4570 <para>Takes a boolean. When
<literal>yes
</literal>, loopback mode is enabled. When the
4571 loopback mode is enabled, the interface treats messages transmitted by itself as received
4572 messages. The loopback mode is important to debug CAN networks. When unset, the kernel's
4573 default will be used.
</para>
4575 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
4579 <term><varname>OneShot=
</varname></term>
4581 <para>Takes a boolean. When
<literal>yes
</literal>, one-shot mode is enabled. When unset,
4582 the kernel's default will be used.
</para>
4584 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
4588 <term><varname>PresumeAck=
</varname></term>
4590 <para>Takes a boolean. When
<literal>yes
</literal>, the interface will ignore missing CAN
4591 ACKs. When unset, the kernel's default will be used.
</para>
4593 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
4597 <term><varname>ClassicDataLengthCode=
</varname></term>
4599 <para>Takes a boolean. When
<literal>yes
</literal>, the interface will handle the
4bit data
4600 length code (DLC). When unset, the kernel's default will be used.
</para>
4602 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
4609 <title>[IPoIB] Section Options
</title>
4610 <para>The [IPoIB] section manages the IP over Infiniband and accepts the following keys:
</para>
4612 <variablelist class='network-directives'
>
4613 <xi:include href=
"systemd.netdev.xml" xpointer=
"ipoib_mode" />
4614 <xi:include href=
"systemd.netdev.xml" xpointer=
"ipoib_umcast" />
4619 <title>[QDisc] Section Options
</title>
4620 <para>The [QDisc] section manages the traffic control queueing discipline (qdisc).
</para>
4622 <variablelist class='network-directives'
>
4624 <term><varname>Parent=
</varname></term>
4626 <para>Specifies the parent Queueing Discipline (qdisc). Takes one of
<literal>clsact
</literal>
4627 or
<literal>ingress
</literal>. This is mandatory.
</para>
4629 <xi:include href=
"version-info.xml" xpointer=
"v244"/>
4633 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
4638 <title>[NetworkEmulator] Section Options
</title>
4639 <para>The [NetworkEmulator] section manages the queueing discipline (qdisc) of the network emulator. It
4640 can be used to configure the kernel packet scheduler and simulate packet delay and loss for UDP or TCP
4641 applications, or limit the bandwidth usage of a particular service to simulate internet connections.
4644 <variablelist class='network-directives'
>
4645 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
4646 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
4649 <term><varname>DelaySec=
</varname></term>
4651 <para>Specifies the fixed amount of delay to be added to all packets going out of the
4652 interface. Defaults to unset.
</para>
4654 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
4659 <term><varname>DelayJitterSec=
</varname></term>
4661 <para>Specifies the chosen delay to be added to the packets outgoing to the network
4662 interface. Defaults to unset.
</para>
4664 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
4669 <term><varname>PacketLimit=
</varname></term>
4671 <para>Specifies the maximum number of packets the qdisc may hold queued at a time.
4672 An unsigned integer in the range
0…
4294967294. Defaults to
1000.
</para>
4674 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
4679 <term><varname>LossRate=
</varname></term>
4681 <para>Specifies an independent loss probability to be added to the packets outgoing from the
4682 network interface. Takes a percentage value, suffixed with
"%". Defaults to unset.
</para>
4684 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
4689 <term><varname>DuplicateRate=
</varname></term>
4691 <para>Specifies that the chosen percent of packets is duplicated before queuing them.
4692 Takes a percentage value, suffixed with
"%". Defaults to unset.
</para>
4694 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
4701 <title>[TokenBucketFilter] Section Options
</title>
4702 <para>The [TokenBucketFilter] section manages the queueing discipline (qdisc) of token bucket filter
4705 <variablelist class='network-directives'
>
4706 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
4707 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
4710 <term><varname>LatencySec=
</varname></term>
4712 <para>Specifies the latency parameter, which specifies the maximum amount of time a
4713 packet can sit in the Token Bucket Filter (TBF). Defaults to unset.
</para>
4715 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
4720 <term><varname>LimitBytes=
</varname></term>
4722 <para>Takes the number of bytes that can be queued waiting for tokens to become available.
4723 When the size is suffixed with K, M, or G, it is parsed as Kilobytes, Megabytes, or Gigabytes,
4724 respectively, to the base of
1024. Defaults to unset.
</para>
4726 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
4731 <term><varname>BurstBytes=
</varname></term>
4733 <para>Specifies the size of the bucket. This is the maximum amount of bytes that tokens
4734 can be available for instantaneous transfer. When the size is suffixed with K, M, or G, it is
4735 parsed as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of
1024. Defaults to
4738 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
4743 <term><varname>Rate=
</varname></term>
4745 <para>Specifies the device specific bandwidth. When suffixed with K, M, or G, the specified
4746 bandwidth is parsed as Kilobits, Megabits, or Gigabits, respectively, to the base of
1000.
4747 Defaults to unset.
</para>
4749 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
4754 <term><varname>MPUBytes=
</varname></term>
4756 <para>The Minimum Packet Unit (MPU) determines the minimal token usage (specified in bytes)
4757 for a packet. When suffixed with K, M, or G, the specified size is parsed as Kilobytes,
4758 Megabytes, or Gigabytes, respectively, to the base of
1024. Defaults to zero.
</para>
4760 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
4765 <term><varname>PeakRate=
</varname></term>
4767 <para>Takes the maximum depletion rate of the bucket. When suffixed with K, M, or G, the
4768 specified size is parsed as Kilobits, Megabits, or Gigabits, respectively, to the base of
4769 1000. Defaults to unset.
</para>
4771 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
4776 <term><varname>MTUBytes=
</varname></term>
4778 <para>Specifies the size of the peakrate bucket. When suffixed with K, M, or G, the specified
4779 size is parsed as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of
1024.
4780 Defaults to unset.
</para>
4782 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
4789 <title>[PIE] Section Options
</title>
4790 <para>The [PIE] section manages the queueing discipline (qdisc) of Proportional Integral
4791 controller-Enhanced (PIE).
</para>
4793 <variablelist class='network-directives'
>
4794 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
4795 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
4798 <term><varname>PacketLimit=
</varname></term>
4800 <para>Specifies the hard limit on the queue size in number of packets. When this limit is reached,
4801 incoming packets are dropped. An unsigned integer in the range
1…
4294967294. Defaults to unset and
4802 kernel's default is used.
</para>
4804 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
4811 <title>[FlowQueuePIE] Section Options
</title>
4812 <para>The
<literal>[FlowQueuePIE]
</literal> section manages the queueing discipline
4813 (qdisc) of Flow Queue Proportional Integral controller-Enhanced (fq_pie).
</para>
4815 <variablelist class='network-directives'
>
4816 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
4817 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
4820 <term><varname>PacketLimit=
</varname></term>
4822 <para>Specifies the hard limit on the queue size in number of packets. When this limit is reached,
4823 incoming packets are dropped. An unsigned integer ranges
1 to
4294967294. Defaults to unset and
4824 kernel's default is used.
</para>
4826 <xi:include href=
"version-info.xml" xpointer=
"v247"/>
4833 <title>[StochasticFairBlue] Section Options
</title>
4834 <para>The [StochasticFairBlue] section manages the queueing discipline (qdisc) of stochastic fair blue
4837 <variablelist class='network-directives'
>
4838 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
4839 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
4842 <term><varname>PacketLimit=
</varname></term>
4844 <para>Specifies the hard limit on the queue size in number of packets. When this limit is reached,
4845 incoming packets are dropped. An unsigned integer in the range
0…
4294967294. Defaults to unset and
4846 kernel's default is used.
</para>
4848 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
4855 <title>[StochasticFairnessQueueing] Section Options
</title>
4856 <para>The [StochasticFairnessQueueing] section manages the queueing discipline (qdisc) of stochastic
4857 fairness queueing (sfq).
</para>
4859 <variablelist class='network-directives'
>
4860 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
4861 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
4864 <term><varname>PerturbPeriodSec=
</varname></term>
4866 <para>Specifies the interval in seconds for queue algorithm perturbation. Defaults to unset.
</para>
4868 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
4875 <title>[BFIFO] Section Options
</title>
4876 <para>The [BFIFO] section manages the queueing discipline (qdisc) of Byte limited Packet First In First
4879 <variablelist class='network-directives'
>
4880 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
4881 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
4884 <term><varname>LimitBytes=
</varname></term>
4886 <para>Specifies the hard limit in bytes on the FIFO buffer size. The size limit prevents overflow
4887 in case the kernel is unable to dequeue packets as quickly as it receives them. When this limit is
4888 reached, incoming packets are dropped. When suffixed with K, M, or G, the specified size is parsed
4889 as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of
1024. Defaults to unset and
4890 kernel default is used.
</para>
4892 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
4899 <title>[PFIFO] Section Options
</title>
4900 <para>The [PFIFO] section manages the queueing discipline (qdisc) of Packet First In First Out
4903 <variablelist class='network-directives'
>
4904 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
4905 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
4908 <term><varname>PacketLimit=
</varname></term>
4910 <para>Specifies the hard limit on the number of packets in the FIFO queue. The size limit prevents
4911 overflow in case the kernel is unable to dequeue packets as quickly as it receives them. When this
4912 limit is reached, incoming packets are dropped. An unsigned integer in the range
4913 0…
4294967294. Defaults to unset and kernel's default is used.
</para>
4915 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
4922 <title>[PFIFOHeadDrop] Section Options
</title>
4923 <para>The [PFIFOHeadDrop] section manages the queueing discipline (qdisc) of Packet First In First Out
4924 Head Drop (pfifo_head_drop).
</para>
4926 <variablelist class='network-directives'
>
4927 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
4928 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
4931 <term><varname>PacketLimit=
</varname></term>
4933 <para>As in [PFIFO] section.
</para>
4935 <xi:include href=
"version-info.xml" xpointer=
"v246"/></listitem>
4941 <title>[PFIFOFast] Section Options
</title>
4942 <para>The [PFIFOFast] section manages the queueing discipline (qdisc) of Packet First In First Out Fast
4943 (pfifo_fast).
</para>
4945 <variablelist class='network-directives'
>
4946 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
4947 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
4952 <title>[CAKE] Section Options
</title>
4953 <para>The [CAKE] section manages the queueing discipline (qdisc) of Common Applications Kept Enhanced
4956 <variablelist class='network-directives'
>
4957 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
4958 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
4961 <term><varname>Bandwidth=
</varname></term>
4963 <para>Specifies the shaper bandwidth. When suffixed with K, M, or G, the specified size is
4964 parsed as Kilobits, Megabits, or Gigabits, respectively, to the base of
1000. Defaults to
4965 unset and kernel's default is used.
</para>
4967 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
4972 <term><varname>AutoRateIngress=
</varname></term>
4974 <para>Takes a boolean value. Enables automatic capacity estimation based on traffic arriving
4975 at this qdisc. This is most likely to be useful with cellular links, which tend to change
4976 quality randomly. If this setting is enabled, the
<varname>Bandwidth=
</varname> setting is
4977 used as an initial estimate. Defaults to unset, and the kernel's default is used.
</para>
4979 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
4984 <term><varname>OverheadBytes=
</varname></term>
4986 <para>Specifies that bytes to be addeded to the size of each packet. Bytes may be negative.
4987 Takes an integer in the range -
64…
256. Defaults to unset and kernel's default is used.
4990 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
4995 <term><varname>MPUBytes=
</varname></term>
4997 <para>Rounds each packet (including overhead) up to the specified bytes. Takes an integer in
4998 the range
1…
256. Defaults to unset and kernel's default is used.
</para>
5000 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
5005 <term><varname>CompensationMode=
</varname></term>
5007 <para>Takes one of
<literal>none
</literal>,
<literal>atm
</literal>, or
<literal>ptm
</literal>.
5008 Specifies the compensation mode for overhead calculation. When
<literal>none
</literal>, no
5009 compensation is taken into account. When
<literal>atm
</literal>, enables the compensation for
5010 ATM cell framing, which is normally found on ADSL links. When
<literal>ptm
</literal>, enables
5011 the compensation for PTM encoding, which is normally found on VDSL2 links and uses a
64b/
65b
5012 encoding scheme. Defaults to unset and the kernel's default is used.
</para>
5014 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
5019 <term><varname>UseRawPacketSize=
</varname></term>
5021 <para>Takes a boolean value. When true, the packet size reported by the Linux kernel will be
5022 used, instead of the underlying IP packet size. Defaults to unset, and the kernel's default
5025 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
5030 <term><varname>FlowIsolationMode=
</varname></term>
5032 <para>CAKE places packets from different flows into different queues, then packets from each
5033 queue are delivered fairly. This specifies whether the fairness is based on source address,
5034 destination address, individual flows, or any combination of those. The available values are:
5039 <term><option>none
</option></term>
5041 The flow isolation is disabled, and all traffic passes through a single queue.
5044 <xi:include href=
"version-info.xml" xpointer=
"v250"/></listitem>
5047 <term><option>src-host
</option></term>
5049 Flows are defined only by source address. Equivalent to the
<literal>srchost
</literal>
5050 option for
<command>tc qdisc
</command> command. See also
5051 <citerefentry project='man-pages'
><refentrytitle>tc-cake
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
5054 <xi:include href=
"version-info.xml" xpointer=
"v250"/></listitem>
5057 <term><option>dst-host
</option></term>
5059 Flows are defined only by destination address. Equivalent to the
5060 <literal>dsthost
</literal> option for
<command>tc qdisc
</command> command. See also
5061 <citerefentry project='man-pages'
><refentrytitle>tc-cake
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
5064 <xi:include href=
"version-info.xml" xpointer=
"v250"/></listitem>
5067 <term><option>hosts
</option></term>
5069 Flows are defined by source-destination host pairs. Equivalent to the same option for
5070 <command>tc qdisc
</command> command. See also
5071 <citerefentry project='man-pages'
><refentrytitle>tc-cake
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
5074 <xi:include href=
"version-info.xml" xpointer=
"v250"/></listitem>
5077 <term><option>flows
</option></term>
5079 Flows are defined by the entire
5-tuple of source address, destination address,
5080 transport protocol, source port and destination port. Equivalent to the same option for
5081 <command>tc qdisc
</command> command. See also
5082 <citerefentry project='man-pages'
><refentrytitle>tc-cake
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
5085 <xi:include href=
"version-info.xml" xpointer=
"v250"/></listitem>
5088 <term><option>dual-src-host
</option></term>
5090 Flows are defined by the
5-tuple (see
<literal>flows
</literal> in the above), and
5091 fairness is applied first over source addresses, then over individual flows. Equivalent
5092 to the
<literal>dual-srchost
</literal> option for
<command>tc qdisc
</command> command.
5094 <citerefentry project='man-pages'
><refentrytitle>tc-cake
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
5097 <xi:include href=
"version-info.xml" xpointer=
"v250"/></listitem>
5100 <term><option>dual-dst-host
</option></term>
5102 Flows are defined by the
5-tuple (see
<literal>flows
</literal> in the above), and
5103 fairness is applied first over destination addresses, then over individual flows.
5104 Equivalent to the
<literal>dual-dsthost
</literal> option for
5105 <command>tc qdisc
</command> command. See also
5106 <citerefentry project='man-pages'
><refentrytitle>tc-cake
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
5109 <xi:include href=
"version-info.xml" xpointer=
"v250"/></listitem>
5112 <term><option>triple
</option></term>
5114 Flows are defined by the
5-tuple (see
<literal>flows
</literal>), and fairness is
5115 applied over source and destination addresses, and also over individual flows.
5116 Equivalent to the
<literal>triple-isolate
</literal> option for
5117 <command>tc qdisc
</command> command. See also
5118 <citerefentry project='man-pages'
><refentrytitle>tc-cake
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
5121 <xi:include href=
"version-info.xml" xpointer=
"v250"/></listitem>
5125 <para>Defaults to unset and the kernel's default is used.
</para>
5127 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
5132 <term><varname>NAT=
</varname></term>
5134 <para>Takes a boolean value. When true, CAKE performs a NAT lookup before applying
5135 flow-isolation rules, to determine the true addresses and port numbers of the packet, to
5136 improve fairness between hosts inside the NAT. This has no practical effect when
5137 <varname>FlowIsolationMode=
</varname> is
<literal>none
</literal> or
<literal>flows
</literal>,
5138 or if NAT is performed on a different host. Defaults to unset, and the kernel's default is
5141 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
5146 <term><varname>PriorityQueueingPreset=
</varname></term>
5148 <para>CAKE divides traffic into
<literal>tins
</literal>, and each tin has its own independent
5149 set of flow-isolation queues, bandwidth threshold, and priority. This specifies the preset of
5150 tin profiles. The available values are:
</para>
5154 <term><option>besteffort
</option></term>
5156 Disables priority queueing by placing all traffic in one tin.
5159 <xi:include href=
"version-info.xml" xpointer=
"v250"/></listitem>
5162 <term><option>precedence
</option></term>
5164 Enables priority queueing based on the legacy interpretation of TOS
5165 <literal>Precedence
</literal> field. Use of this preset on the modern Internet is
5169 <xi:include href=
"version-info.xml" xpointer=
"v250"/></listitem>
5172 <term><option>diffserv8
</option></term>
5174 Enables priority queueing based on the Differentiated Service
5175 (
<literal>DiffServ
</literal>) field with eight tins: Background Traffic, High
5176 Throughput, Best Effort, Video Streaming, Low Latency Transactions, Interactive Shell,
5177 Minimum Latency, and Network Control.
5180 <xi:include href=
"version-info.xml" xpointer=
"v250"/></listitem>
5183 <term><option>diffserv4
</option></term>
5185 Enables priority queueing based on the Differentiated Service
5186 (
<literal>DiffServ
</literal>) field with four tins: Background Traffic, Best Effort,
5187 Streaming Media, and Latency Sensitive.
5190 <xi:include href=
"version-info.xml" xpointer=
"v250"/></listitem>
5193 <term><option>diffserv3
</option></term>
5195 Enables priority queueing based on the Differentiated Service
5196 (
<literal>DiffServ
</literal>) field with three tins: Background Traffic, Best Effort,
5197 and Latency Sensitive.
5200 <xi:include href=
"version-info.xml" xpointer=
"v250"/></listitem>
5204 <para>Defaults to unset, and the kernel's default is used.
</para>
5206 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
5211 <term><varname>FirewallMark=
</varname></term>
5213 <para>Takes an integer in the range
1…
4294967295. When specified, firewall-mark-based
5214 overriding of CAKE's tin selection is enabled. Defaults to unset, and the kernel's default is
5217 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
5222 <term><varname>Wash=
</varname></term>
5224 <para>Takes a boolean value. When true, CAKE clears the DSCP fields, except for ECN bits, of
5225 any packet passing through CAKE. Defaults to unset, and the kernel's default is used.
</para>
5227 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
5232 <term><varname>SplitGSO=
</varname></term>
5234 <para>Takes a boolean value. When true, CAKE will split General Segmentation Offload (GSO)
5235 super-packets into their on-the-wire components and dequeue them individually. Defaults to
5236 unset, and the kernel's default is used.
</para>
5238 <xi:include href=
"version-info.xml" xpointer=
"v250"/>
5243 <term><varname>RTTSec=
</varname></term>
5245 <para>Specifies the RTT for the filter. Takes a timespan. Typical values are e.g.
100us for
5246 extremely high-performance
10GigE+ networks like datacentre,
1ms for non-WiFi LAN connections,
5247 100ms for typical internet connections. Defaults to unset, and the kernel's default will be used.
5250 <xi:include href=
"version-info.xml" xpointer=
"v253"/>
5255 <term><varname>AckFilter=
</varname></term>
5257 <para>Takes a boolean value, or special value
<literal>aggressive
</literal>. If enabled, ACKs in
5258 each flow are queued and redundant ACKs to the upstream are dropped. If yes, the filter will always
5259 keep at least two redundant ACKs in the queue, while in
<literal>aggressive
</literal> mode, it will
5260 filter down to a single ACK. This may improve download throughput on links with very asymmetrical
5261 rate limits. Defaults to unset, and the kernel's default will be used.
</para>
5263 <xi:include href=
"version-info.xml" xpointer=
"v253"/>
5271 <title>[ControlledDelay] Section Options
</title>
5272 <para>The [ControlledDelay] section manages the queueing discipline (qdisc) of
5273 controlled delay (CoDel).
</para>
5275 <variablelist class='network-directives'
>
5276 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
5277 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
5280 <term><varname>PacketLimit=
</varname></term>
5282 <para>Specifies the hard limit on the queue size in number of packets. When this limit is reached,
5283 incoming packets are dropped. An unsigned integer in the range
0…
4294967294. Defaults to unset and
5284 kernel's default is used.
</para>
5286 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
5291 <term><varname>TargetSec=
</varname></term>
5293 <para>Takes a timespan. Specifies the acceptable minimum standing/persistent queue delay.
5294 Defaults to unset and kernel's default is used.
</para>
5296 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
5301 <term><varname>IntervalSec=
</varname></term>
5303 <para>Takes a timespan. This is used to ensure that the measured minimum delay does not
5304 become too stale. Defaults to unset and kernel's default is used.
</para>
5306 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
5311 <term><varname>ECN=
</varname></term>
5313 <para>Takes a boolean. This can be used to mark packets instead of dropping them. Defaults to
5314 unset and kernel's default is used.
</para>
5316 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
5321 <term><varname>CEThresholdSec=
</varname></term>
5323 <para>Takes a timespan. This sets a threshold above which all packets are marked with ECN
5324 Congestion Experienced (CE). Defaults to unset and kernel's default is used.
</para>
5326 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
5333 <title>[DeficitRoundRobinScheduler] Section Options
</title>
5334 <para>The [DeficitRoundRobinScheduler] section manages the queueing discipline (qdisc) of Deficit Round
5335 Robin Scheduler (DRR).
</para>
5337 <variablelist class='network-directives'
>
5338 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
5339 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
5344 <title>[DeficitRoundRobinSchedulerClass] Section Options
</title>
5345 <para>The [DeficitRoundRobinSchedulerClass] section manages the traffic control class of Deficit Round
5346 Robin Scheduler (DRR).
</para>
5348 <variablelist class='network-directives'
>
5349 <xi:include href=
"tc.xml" xpointer=
"tclass-parent" />
5350 <xi:include href=
"tc.xml" xpointer=
"tclass-classid" />
5353 <term><varname>QuantumBytes=
</varname></term>
5355 <para>Specifies the amount of bytes a flow is allowed to dequeue before the scheduler moves
5356 to the next class. When suffixed with K, M, or G, the specified size is parsed as Kilobytes,
5357 Megabytes, or Gigabytes, respectively, to the base of
1024. Defaults to the MTU of the
5360 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5368 <title>[EnhancedTransmissionSelection] Section Options
</title>
5369 <para>The [EnhancedTransmissionSelection] section manages the queueing discipline (qdisc) of Enhanced
5370 Transmission Selection (ETS).
</para>
5372 <variablelist class='network-directives'
>
5373 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
5374 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
5377 <term><varname>Bands=
</varname></term>
5379 <para>Specifies the number of bands. An unsigned integer in the range
1…
16. This value has to be at
5380 least large enough to cover the strict bands specified through the
<varname>StrictBands=
</varname>
5381 and bandwidth-sharing bands specified in
<varname>QuantumBytes=
</varname>.
</para>
5383 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5388 <term><varname>StrictBands=
</varname></term>
5390 <para>Specifies the number of bands that should be created in strict mode. An unsigned integer in
5391 the range
1…
16.
</para>
5393 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5398 <term><varname>QuantumBytes=
</varname></term>
5400 <para>Specifies the white-space separated list of quantum used in band-sharing bands. When
5401 suffixed with K, M, or G, the specified size is parsed as Kilobytes, Megabytes, or Gigabytes,
5402 respectively, to the base of
1024. This setting can be specified multiple times. If an empty
5403 string is assigned, then the all previous assignments are cleared.
</para>
5405 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5410 <term><varname>PriorityMap=
</varname></term>
5412 <para>The priority map maps the priority of a packet to a band. The argument is a whitespace
5413 separated list of numbers. The first number indicates which band the packets with priority
0 should
5414 be put to, the second is for priority
1, and so on. There can be up to
16 numbers in the list. If
5415 there are fewer, the default band that traffic with one of the unmentioned priorities goes to is
5416 the last one. Each band number must be in the range
0…
255. This setting can be specified multiple
5417 times. If an empty string is assigned, then the all previous assignments are cleared.
</para>
5419 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5426 <title>[GenericRandomEarlyDetection] Section Options
</title>
5427 <para>The [GenericRandomEarlyDetection] section manages the queueing discipline (qdisc) of Generic Random
5428 Early Detection (GRED).
</para>
5430 <variablelist class='network-directives'
>
5431 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
5432 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
5435 <term><varname>VirtualQueues=
</varname></term>
5437 <para>Specifies the number of virtual queues. Takes an integer in the range
1…
16. Defaults to unset
5438 and kernel's default is used.
</para>
5440 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5445 <term><varname>DefaultVirtualQueue=
</varname></term>
5447 <para>Specifies the number of default virtual queue. This must be less than
<varname>VirtualQueue=
</varname>.
5448 Defaults to unset and kernel's default is used.
</para>
5450 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5455 <term><varname>GenericRIO=
</varname></term>
5457 <para>Takes a boolean. It turns on the RIO-like buffering scheme. Defaults to
5458 unset and kernel's default is used.
</para>
5460 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5467 <title>[FairQueueingControlledDelay] Section Options
</title>
5468 <para>The [FairQueueingControlledDelay] section manages the queueing discipline (qdisc) of fair queuing
5469 controlled delay (FQ-CoDel).
</para>
5471 <variablelist class='network-directives'
>
5472 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
5473 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
5476 <term><varname>PacketLimit=
</varname></term>
5478 <para>Specifies the hard limit on the real queue size. When this limit is reached, incoming packets are
5479 dropped. Defaults to unset and kernel's default is used.
</para>
5481 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
5486 <term><varname>MemoryLimitBytes=
</varname></term>
5488 <para>Specifies the limit on the total number of bytes that can be queued in this FQ-CoDel instance.
5489 When suffixed with K, M, or G, the specified size is parsed as Kilobytes, Megabytes, or Gigabytes,
5490 respectively, to the base of
1024. Defaults to unset and kernel's default is used.
</para>
5492 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5497 <term><varname>Flows=
</varname></term>
5499 <para>Specifies the number of flows into which the incoming packets are classified.
5500 Defaults to unset and kernel's default is used.
</para>
5502 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
5507 <term><varname>TargetSec=
</varname></term>
5509 <para>Takes a timespan. Specifies the acceptable minimum standing/persistent queue delay.
5510 Defaults to unset and kernel's default is used.
</para>
5512 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
5517 <term><varname>IntervalSec=
</varname></term>
5519 <para>Takes a timespan. This is used to ensure that the measured minimum delay does not
5520 become too stale. Defaults to unset and kernel's default is used.
</para>
5522 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
5527 <term><varname>QuantumBytes=
</varname></term>
5529 <para>Specifies the number of bytes used as the
"deficit" in the fair queuing algorithm timespan.
5530 When suffixed with K, M, or G, the specified size is parsed as Kilobytes, Megabytes, or Gigabytes,
5531 respectively, to the base of
1024. Defaults to unset and kernel's default is used.
</para>
5533 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5538 <term><varname>ECN=
</varname></term>
5540 <para>Takes a boolean. This can be used to mark packets instead of dropping them. Defaults to
5541 unset and kernel's default is used.
</para>
5543 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
5548 <term><varname>CEThresholdSec=
</varname></term>
5550 <para>Takes a timespan. This sets a threshold above which all packets are marked with ECN
5551 Congestion Experienced (CE). Defaults to unset and kernel's default is used.
</para>
5553 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
5560 <title>[FairQueueing] Section Options
</title>
5561 <para>The [FairQueueing] section manages the queueing discipline (qdisc) of fair queue traffic policing
5564 <variablelist class='network-directives'
>
5565 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
5566 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
5569 <term><varname>PacketLimit=
</varname></term>
5571 <para>Specifies the hard limit on the real queue size. When this limit is reached, incoming packets are
5572 dropped. Defaults to unset and kernel's default is used.
</para>
5574 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
5579 <term><varname>FlowLimit=
</varname></term>
5581 <para>Specifies the hard limit on the maximum number of packets queued per flow. Defaults to
5582 unset and kernel's default is used.
</para>
5584 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
5589 <term><varname>QuantumBytes=
</varname></term>
5591 <para>Specifies the credit per dequeue RR round, i.e. the amount of bytes a flow is allowed
5592 to dequeue at once. When suffixed with K, M, or G, the specified size is parsed as Kilobytes,
5593 Megabytes, or Gigabytes, respectively, to the base of
1024. Defaults to unset and kernel's
5594 default is used.
</para>
5596 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5601 <term><varname>InitialQuantumBytes=
</varname></term>
5603 <para>Specifies the initial sending rate credit, i.e. the amount of bytes a new flow is
5604 allowed to dequeue initially. When suffixed with K, M, or G, the specified size is parsed as
5605 Kilobytes, Megabytes, or Gigabytes, respectively, to the base of
1024. Defaults to unset and
5606 kernel's default is used.
</para>
5608 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
5613 <term><varname>MaximumRate=
</varname></term>
5615 <para>Specifies the maximum sending rate of a flow. When suffixed with K, M, or G, the
5616 specified size is parsed as Kilobits, Megabits, or Gigabits, respectively, to the base of
5617 1000. Defaults to unset and kernel's default is used.
</para>
5619 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
5624 <term><varname>Buckets=
</varname></term>
5626 <para>Specifies the size of the hash table used for flow lookups. Defaults to unset and
5627 kernel's default is used.
</para>
5629 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
5634 <term><varname>OrphanMask=
</varname></term>
5636 <para>Takes an unsigned integer. For packets not owned by a socket, fq is able to mask a part
5637 of hash and reduce number of buckets associated with the traffic. Defaults to unset and
5638 kernel's default is used.
</para>
5640 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
5645 <term><varname>Pacing=
</varname></term>
5647 <para>Takes a boolean, and enables or disables flow pacing. Defaults to unset and kernel's
5648 default is used.
</para>
5650 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
5655 <term><varname>CEThresholdSec=
</varname></term>
5657 <para>Takes a timespan. This sets a threshold above which all packets are marked with ECN
5658 Congestion Experienced (CE). Defaults to unset and kernel's default is used.
</para>
5660 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
5667 <title>[TrivialLinkEqualizer] Section Options
</title>
5668 <para>The [TrivialLinkEqualizer] section manages the queueing discipline (qdisc) of trivial link
5669 equalizer (teql).
</para>
5671 <variablelist class='network-directives'
>
5672 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
5673 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
5676 <term><varname>Id=
</varname></term>
5678 <para>Specifies the interface ID
<literal>N
</literal> of teql. Defaults to
<literal>0</literal>.
5679 Note that when teql is used, currently, the module
<constant>sch_teql
</constant> with
5680 <constant>max_equalizers=N+
1</constant> option must be loaded before
5681 <command>systemd-networkd
</command> is started.
</para>
5683 <xi:include href=
"version-info.xml" xpointer=
"v245"/>
5690 <title>[HierarchyTokenBucket] Section Options
</title>
5691 <para>The [HierarchyTokenBucket] section manages the queueing discipline (qdisc) of hierarchy token
5692 bucket (htb).
</para>
5694 <variablelist class='network-directives'
>
5695 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
5696 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
5699 <term><varname>DefaultClass=
</varname></term>
5701 <para>Takes the minor id in hexadecimal of the default class. Unclassified traffic gets sent
5702 to the class. Defaults to unset.
</para>
5704 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5709 <term><varname>RateToQuantum=
</varname></term>
5711 <para>Takes an unsigned integer. The DRR quantums are calculated by dividing the value
5712 configured in
<varname>Rate=
</varname> by
<varname>RateToQuantum=
</varname>.
</para>
5714 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5721 <title>[HierarchyTokenBucketClass] Section Options
</title>
5722 <para>The [HierarchyTokenBucketClass] section manages the traffic control class of hierarchy token bucket
5725 <variablelist class='network-directives'
>
5726 <xi:include href=
"tc.xml" xpointer=
"tclass-parent" />
5727 <xi:include href=
"tc.xml" xpointer=
"tclass-classid" />
5730 <term><varname>Priority=
</varname></term>
5732 <para>Specifies the priority of the class. In the round-robin process, classes with the lowest
5733 priority field are tried for packets first.
</para>
5735 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5740 <term><varname>QuantumBytes=
</varname></term>
5742 <para>Specifies how many bytes to serve from leaf at once. When suffixed with K, M, or G, the
5743 specified size is parsed as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of
5746 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5751 <term><varname>MTUBytes=
</varname></term>
5753 <para>Specifies the maximum packet size we create. When suffixed with K, M, or G, the specified
5754 size is parsed as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of
1024.
</para>
5756 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5761 <term><varname>OverheadBytes=
</varname></term>
5763 <para>Takes an unsigned integer which specifies per-packet size overhead used in rate
5764 computations. When suffixed with K, M, or G, the specified size is parsed as Kilobytes,
5765 Megabytes, or Gigabytes, respectively, to the base of
1024.
</para>
5767 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5772 <term><varname>Rate=
</varname></term>
5774 <para>Specifies the maximum rate this class and all its children are guaranteed. When suffixed
5775 with K, M, or G, the specified size is parsed as Kilobits, Megabits, or Gigabits, respectively,
5776 to the base of
1000. This setting is mandatory.
</para>
5778 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5783 <term><varname>CeilRate=
</varname></term>
5785 <para>Specifies the maximum rate at which a class can send, if its parent has bandwidth to spare.
5786 When suffixed with K, M, or G, the specified size is parsed as Kilobits, Megabits, or Gigabits,
5787 respectively, to the base of
1000. When unset, the value specified with
<varname>Rate=
</varname>
5790 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5795 <term><varname>BufferBytes=
</varname></term>
5797 <para>Specifies the maximum bytes burst which can be accumulated during idle period. When suffixed
5798 with K, M, or G, the specified size is parsed as Kilobytes, Megabytes, or Gigabytes, respectively,
5799 to the base of
1024.
</para>
5801 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5806 <term><varname>CeilBufferBytes=
</varname></term>
5808 <para>Specifies the maximum bytes burst for ceil which can be accumulated during idle period.
5809 When suffixed with K, M, or G, the specified size is parsed as Kilobytes, Megabytes, or Gigabytes,
5810 respectively, to the base of
1024.
</para>
5812 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5819 <title>[HeavyHitterFilter] Section Options
</title>
5820 <para>The [HeavyHitterFilter] section manages the queueing discipline (qdisc) of Heavy Hitter Filter
5823 <variablelist class='network-directives'
>
5824 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
5825 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
5828 <term><varname>PacketLimit=
</varname></term>
5830 <para>Specifies the hard limit on the queue size in number of packets. When this limit is reached,
5831 incoming packets are dropped. An unsigned integer in the range
0…
4294967294. Defaults to unset and
5832 kernel's default is used.
</para>
5834 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5841 <title>[QuickFairQueueing] Section Options
</title>
5842 <para>The [QuickFairQueueing] section manages the queueing discipline (qdisc) of Quick Fair Queueing
5845 <variablelist class='network-directives'
>
5846 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
5847 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
5852 <title>[QuickFairQueueingClass] Section Options
</title>
5853 <para>The [QuickFairQueueingClass] section manages the traffic control class of Quick Fair Queueing
5856 <variablelist class='network-directives'
>
5857 <xi:include href=
"tc.xml" xpointer=
"tclass-parent" />
5858 <xi:include href=
"tc.xml" xpointer=
"tclass-classid" />
5861 <term><varname>Weight=
</varname></term>
5863 <para>Specifies the weight of the class. Takes an integer in the range
1…
1023. Defaults to
5864 unset in which case the kernel default is used.
</para>
5866 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5871 <term><varname>MaxPacketBytes=
</varname></term>
5873 <para>Specifies the maximum packet size in bytes for the class. When suffixed with K, M, or G, the
5874 specified size is parsed as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of
5875 1024. When unset, the kernel default is used.
</para>
5877 <xi:include href=
"version-info.xml" xpointer=
"v246"/>
5884 <title>[BridgeVLAN] Section Options
</title>
5886 The [BridgeVLAN] section manages the VLAN ID configurations of a bridge master or port, and accepts the
5887 following keys. To make the settings in this section take an effect,
5888 <varname>VLANFiltering=
</varname> option has to be enabled on the bridge master, see the [Bridge]
5890 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
5891 If at least one valid settings specified in this section in a .network file for an interface, all
5892 assigned VLAN IDs on the interface that are not configured in the .network file will be removed. If
5893 VLAN IDs on an interface need to be managed by other tools, then the settings in this section cannot
5894 be used in the matching .network file.
5897 <variablelist class='network-directives'
>
5899 <term><varname>VLAN=
</varname></term>
5901 <para>The VLAN ID allowed on the port. This can be either a single ID or a range M-N. Takes an
5902 integer in the range
1…
4094. This setting can be specified multiple times. If an empty string is
5903 assigned, then the all previous assignments are cleared.
</para>
5905 <xi:include href=
"version-info.xml" xpointer=
"v231"/>
5909 <term><varname>EgressUntagged=
</varname></term>
5911 <para>The VLAN ID specified here will be used to untag frames on egress. Configuring
5912 <varname>EgressUntagged=
</varname> implicates the use of
<varname>VLAN=
</varname> above and will
5913 enable the VLAN ID for ingress as well. This can be either a single ID or a range M-N. This
5914 setting can be specified multiple times. If an empty string is assigned, then the all previous
5915 assignments are cleared.
</para>
5917 <xi:include href=
"version-info.xml" xpointer=
"v231"/>
5921 <term><varname>PVID=
</varname></term>
5923 <para>The port VLAN ID specified here is assigned to all untagged frames at ingress. Takes an
5924 VLAN ID or negative boolean value (e.g.
<literal>no
</literal>). When false, the currently
5925 assigned port VLAN ID will be dropped. Configuring
<varname>PVID=
</varname> implicates the use of
5926 <varname>VLAN=
</varname> setting in the above and will enable the VLAN ID for ingress as well.
5927 Defaults to unset, and will keep the assigned port VLAN ID if exists.
</para>
5929 <xi:include href=
"version-info.xml" xpointer=
"v231"/>
5936 <title>Examples
</title>
5938 <title>Static network configuration
</title>
5940 <programlisting># /etc/systemd/network/
50-static.network
5945 Address=
192.168.0.15/
24
5946 Gateway=
192.168.0.1</programlisting>
5948 <para>This brings interface
<literal>enp2s0
</literal> up with a static address. The
5949 specified gateway will be used for a default route.
</para>
5953 <title>DHCP on ethernet links
</title>
5955 <programlisting># /etc/systemd/network/
80-dhcp.network
5960 DHCP=yes
</programlisting>
5962 <para>This will enable DHCPv4 and DHCPv6 on all interfaces with names starting with
5963 <literal>en
</literal> (i.e. ethernet interfaces).
</para>
5967 <title>IPv6 Prefix Delegation (DHCPv6 PD)
</title>
5969 <programlisting># /etc/systemd/network/
55-dhcpv6-pd-upstream.network
5976 # The below setting is optional, to also assign an address in the delegated prefix
5977 # to the upstream interface. If not necessary, then comment out the line below and
5978 # the [DHCPPrefixDelegation] section.
5979 DHCPPrefixDelegation=yes
5981 # If the upstream network provides Router Advertisement with Managed bit set,
5982 # then comment out the line below and WithoutRA= setting in the [DHCPv6] section.
5988 [DHCPPrefixDelegation]
5989 UplinkInterface=:self
5991 Announce=no
</programlisting>
5993 <programlisting># /etc/systemd/network/
55-dhcpv6-pd-downstream.network
5998 DHCPPrefixDelegation=yes
6001 # It is expected that the host is acting as a router. So, usually it is not
6002 # necessary to receive Router Advertisement from other hosts in the downstream network.
6005 [DHCPPrefixDelegation]
6006 UplinkInterface=enp1s0
6008 Announce=yes
</programlisting>
6010 <para>This will enable DHCPv6-PD on the interface enp1s0 as an upstream interface where the
6011 DHCPv6 client is running and enp2s0 as a downstream interface where the prefix is delegated to.
6012 The delegated prefixes are distributed by IPv6 Router Advertisement on the downstream network.
6017 <title>IPv6 Prefix Delegation (DHCPv4
6RD)
</title>
6019 <programlisting># /etc/systemd/network/
55-dhcpv4-
6rd-upstream.network
6026 # When DHCPv4-
6RD is used, the upstream network does not support IPv6.
6027 # Hence, it is not necessary to wait for Router Advertisement, which is enabled by default.
6031 Use6RD=yes
</programlisting>
6033 <programlisting># /etc/systemd/network/
55-dhcpv4-
6rd-downstream.network
6038 DHCPPrefixDelegation=yes
6041 # It is expected that the host is acting as a router. So, usually it is not
6042 # necessary to receive Router Advertisement from other hosts in the downstream network.
6045 [DHCPPrefixDelegation]
6046 UplinkInterface=enp1s0
6048 Announce=yes
</programlisting>
6050 <para>This will enable DHCPv4-
6RD on the interface enp1s0 as an upstream interface where the
6051 DHCPv4 client is running and enp2s0 as a downstream interface where the prefix is delegated to.
6052 The delegated prefixes are distributed by IPv6 Router Advertisement on the downstream network.
6057 <title>A bridge with two enslaved links
</title>
6059 <programlisting># /etc/systemd/network/
25-bridge-static.netdev
6062 Kind=bridge
</programlisting>
6064 <programlisting># /etc/systemd/network/
25-bridge-static.network
6069 Address=
192.168.0.15/
24
6071 DNS=
192.168.0.1</programlisting>
6073 <programlisting># /etc/systemd/network/
25-bridge-slave-interface-
1.network
6078 Bridge=bridge0
</programlisting>
6080 <programlisting># /etc/systemd/network/
25-bridge-slave-interface-
2.network
6085 Bridge=bridge0
</programlisting>
6087 <para>This creates a bridge and attaches devices
<literal>enp2s0
</literal> and
6088 <literal>wlp3s0
</literal> to it. The bridge will have the specified static address
6089 and network assigned, and a default route via the specified gateway will be
6090 added. The specified DNS server will be added to the global list of DNS resolvers.
6095 <title>Bridge port with VLAN forwarding
</title>
6098 # /etc/systemd/network/
25-bridge-slave-interface-
1.network
6114 EgressUntagged=
300-
400</programlisting>
6116 <para>This overrides the configuration specified in the previous example for the
6117 interface
<literal>enp2s0
</literal>, and enables VLAN on that bridge port. VLAN IDs
6118 1-
32,
42,
100-
400 will be allowed. Packets tagged with VLAN IDs
42,
300-
400 will be
6119 untagged when they leave on this interface. Untagged packets which arrive on this
6120 interface will be assigned VLAN ID
42.
</para>
6124 <title>Various tunnels
</title>
6126 <programlisting>/etc/systemd/network/
25-tunnels.network
6137 <programlisting>/etc/systemd/network/
25-tunnel-ipip.netdev
6143 <programlisting>/etc/systemd/network/
25-tunnel-sit.netdev
6149 <programlisting>/etc/systemd/network/
25-tunnel-gre.netdev
6155 <programlisting>/etc/systemd/network/
25-tunnel-vti.netdev
6161 <para>This will bring interface
<literal>ens1
</literal> up and create an IPIP tunnel,
6162 a SIT tunnel, a GRE tunnel, and a VTI tunnel using it.
</para>
6166 <title>A bond device
</title>
6168 <programlisting># /etc/systemd/network/
30-bond1.network
6176 <programlisting># /etc/systemd/network/
30-bond1.netdev
6182 <programlisting># /etc/systemd/network/
30-bond1-dev1.network
6184 MACAddress=
52:
54:
00:e9:
64:
41
6190 <programlisting># /etc/systemd/network/
30-bond1-dev2.network
6192 MACAddress=
52:
54:
00:e9:
64:
42
6198 <para>This will create a bond device
<literal>bond1
</literal> and enslave the two
6199 devices with MAC addresses
52:
54:
00:e9:
64:
41 and
52:
54:
00:e9:
64:
42 to it. IPv6 DHCP
6200 will be used to acquire an address.
</para>
6204 <title>Virtual Routing and Forwarding (VRF)
</title>
6205 <para>Add the
<literal>bond1
</literal> interface to the VRF master interface
6206 <literal>vrf1
</literal>. This will redirect routes generated on this interface to be
6207 within the routing table defined during VRF creation. For kernels before
4.8 traffic
6208 won't be redirected towards the VRFs routing table unless specific ip-rules are added.
6210 <programlisting># /etc/systemd/network/
25-vrf.network
6220 <title>MacVTap
</title>
6221 <para>This brings up a network interface
<literal>macvtap-test
</literal>
6222 and attaches it to
<literal>enp0s25
</literal>.
</para>
6223 <programlisting># /usr/lib/systemd/network/
25-macvtap.network
6228 MACVTAP=macvtap-test
6233 <title>A Xfrm interface with physical underlying device.
</title>
6235 <programlisting># /etc/systemd/network/
27-xfrm.netdev
6241 InterfaceId=
7</programlisting>
6243 <programlisting># /etc/systemd/network/
27-eth0.network
6248 Xfrm=xfrm0
</programlisting>
6250 <para>This creates a
<literal>xfrm0
</literal> interface and binds it to the
<literal>eth0
</literal> device.
6251 This allows hardware based ipsec offloading to the
<literal>eth0
</literal> nic.
6252 If offloading is not needed, xfrm interfaces can be assigned to the
<literal>lo
</literal> device.
6258 <title>See Also
</title>
6259 <para><simplelist type=
"inline">
6260 <member><citerefentry><refentrytitle>systemd
</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
6261 <member><citerefentry><refentrytitle>systemd-networkd.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
6262 <member><citerefentry><refentrytitle>systemd.link
</refentrytitle><manvolnum>5</manvolnum></citerefentry></member>
6263 <member><citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry></member>
6264 <member><citerefentry><refentrytitle>systemd-network-generator.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
6265 <member><citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
6266 </simplelist></para>